xmobar: wrap ghc completely and not expose it to home.packages

This commit is contained in:
Primrose 2025-08-08 09:07:26 +02:00
parent 65a12ca27d
commit 8e2659463d
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,15 +1,15 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = let home.packages = let
inherit (pkgs) lib;
wrapped-xmobar = pkgs.symlinkJoin { wrapped-xmobar = pkgs.symlinkJoin {
name = "xmobar"; name = "xmobar";
paths = with pkgs; [ paths = [pkgs.xmobar];
# Xmobar wants ghc buildInputs = [pkgs.makeWrapper];
(haskellPackages.ghcWithPackages (self: [ postBuild = ''
self.xmobar wrapProgram $out/bin/xmobar \
])) --prefix PATH : "${lib.makeBinPath [pkgs.ghc]}"
# The executable '';
xmobar
];
}; };
in [ in [
wrapped-xmobar wrapped-xmobar