taffybar: init with-packages wrapper

This provides a wrapper around taffybar, in a fashion similar to how
package xmonad.
This commit is contained in:
Charles Strahan 2015-06-30 11:11:43 -04:00
parent 32b9ca3219
commit 433a13d12a
2 changed files with 19 additions and 0 deletions

View 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"
'';
}

View file

@ -12668,6 +12668,10 @@ let
enableXft = true;
};
taffybar = callPackage ../applications/window-managers/taffybar {
inherit (haskellPackages) ghcWithPackages;
};
tagainijisho = callPackage ../applications/office/tagainijisho {};
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {