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