mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
xmobar: wrap ghc completely and not expose it to home.packages
This commit is contained in:
parent
65a12ca27d
commit
8e2659463d
1 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue