From 8e2659463d32f8a050d0bdd14e47c2fa47134f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Fri, 8 Aug 2025 09:07:26 +0200 Subject: [PATCH] xmobar: wrap ghc completely and not expose it to home.packages --- nix/configurations/vanadium/home/xmobar.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nix/configurations/vanadium/home/xmobar.nix b/nix/configurations/vanadium/home/xmobar.nix index f1e21c1e..2be6e14a 100644 --- a/nix/configurations/vanadium/home/xmobar.nix +++ b/nix/configurations/vanadium/home/xmobar.nix @@ -1,15 +1,15 @@ {pkgs, ...}: { home.packages = let + inherit (pkgs) lib; + wrapped-xmobar = pkgs.symlinkJoin { name = "xmobar"; - paths = with pkgs; [ - # Xmobar wants ghc - (haskellPackages.ghcWithPackages (self: [ - self.xmobar - ])) - # The executable - xmobar - ]; + paths = [pkgs.xmobar]; + buildInputs = [pkgs.makeWrapper]; + postBuild = '' + wrapProgram $out/bin/xmobar \ + --prefix PATH : "${lib.makeBinPath [pkgs.ghc]}" + ''; }; in [ wrapped-xmobar