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, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = let
|
home.packages = let
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
wrapped-xmobar = pkgs.symlinkJoin {
|
wrapped-xmobar = pkgs.symlinkJoin {
|
||||||
name = "xmobar";
|
name = "xmobar";
|
||||||
paths = with pkgs; [
|
paths = [pkgs.xmobar];
|
||||||
# Xmobar wants ghc
|
buildInputs = [pkgs.makeWrapper];
|
||||||
(haskellPackages.ghcWithPackages (self: [
|
postBuild = ''
|
||||||
self.xmobar
|
wrapProgram $out/bin/xmobar \
|
||||||
]))
|
--prefix PATH : "${lib.makeBinPath [pkgs.ghc]}"
|
||||||
# The executable
|
'';
|
||||||
xmobar
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
wrapped-xmobar
|
wrapped-xmobar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue