diff --git a/nix/configurations/vanadium/home/xmobar.nix b/nix/configurations/vanadium/home/xmobar.nix index 2be6e14a..29bb0f4f 100644 --- a/nix/configurations/vanadium/home/xmobar.nix +++ b/nix/configurations/vanadium/home/xmobar.nix @@ -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}"; };