xmobar: bring libnotify into scope

This commit is contained in:
Primrose 2025-08-11 21:01:08 +02:00
parent 33f7ecd792
commit 9837a70014
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -2,13 +2,17 @@
home.packages = let home.packages = let
inherit (pkgs) lib; inherit (pkgs) lib;
ghc = pkgs.haskellPackages.ghc.withPackages (haskellPackages: [
haskellPackages.xmobar
]);
wrapped-xmobar = pkgs.symlinkJoin { wrapped-xmobar = pkgs.symlinkJoin {
name = "xmobar"; name = "xmobar";
paths = [pkgs.xmobar]; paths = [pkgs.xmobar];
buildInputs = [pkgs.makeWrapper]; buildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/xmobar \ wrapProgram $out/bin/xmobar \
--prefix PATH : "${lib.makeBinPath [pkgs.ghc]}" --prefix PATH : "${lib.makeBinPath [ghc pkgs.libnotify]}"
''; '';
}; };
in [ in [
@ -19,6 +23,8 @@
"xmobar" = { "xmobar" = {
# Xmobar uses the directory to compile too, # Xmobar uses the directory to compile too,
# Linking the entire folder directly would make the directory not writable # Linking the entire folder directly would make the directory not writable
#
# We need to clean up the xmobar executable so it recompiles
recursive = true; recursive = true;
source = "${./xmobar}"; source = "${./xmobar}";
}; };