diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-06-30 11:11:43 -0400 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-06-30 11:11:43 -0400 |
commit | 433a13d12aa4f97bb003ea5561758ff5858d632a (patch) | |
tree | 9a69cc81ba9fd8750a790f658cb8bc8804de5d37 /pkgs/applications/window-managers/taffybar/default.nix | |
parent | 32b9ca3219e38b4a0b8d01156ac93c4c92413b08 (diff) |
taffybar: init with-packages wrapper
This provides a wrapper around taffybar, in a fashion similar to how package xmonad.
Diffstat (limited to 'pkgs/applications/window-managers/taffybar/default.nix')
-rw-r--r-- | pkgs/applications/window-managers/taffybar/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/taffybar/default.nix b/pkgs/applications/window-managers/taffybar/default.nix new file mode 100644 index 0000000000000..66e880197bb54 --- /dev/null +++ b/pkgs/applications/window-managers/taffybar/default.nix @@ -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" + ''; +} |