taffybar: init with-packages wrapper
This provides a wrapper around taffybar, in a fashion similar to how package xmonad.
This commit is contained in:
parent
32b9ca3219
commit
433a13d12a
15
pkgs/applications/window-managers/taffybar/default.nix
Normal file
15
pkgs/applications/window-managers/taffybar/default.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages ? (x: []) }:
|
||||||
|
|
||||||
|
let
|
||||||
|
taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self);
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
name = "taffybar-with-packages";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
buildCommand = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper ${taffybarEnv}/bin/taffybar $out/bin/taffybar \
|
||||||
|
--set NIX_GHC "${taffybarEnv}/bin/ghc"
|
||||||
|
'';
|
||||||
|
}
|
@ -12668,6 +12668,10 @@ let
|
|||||||
enableXft = true;
|
enableXft = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
taffybar = callPackage ../applications/window-managers/taffybar {
|
||||||
|
inherit (haskellPackages) ghcWithPackages;
|
||||||
|
};
|
||||||
|
|
||||||
tagainijisho = callPackage ../applications/office/tagainijisho {};
|
tagainijisho = callPackage ../applications/office/tagainijisho {};
|
||||||
|
|
||||||
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user