From 9837a7001496458e79725d3bf402b3691b7f8af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 11 Aug 2025 21:01:08 +0200 Subject: [PATCH] xmobar: bring libnotify into scope --- nix/configurations/vanadium/home/xmobar.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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}"; };