3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/taffybar/default.nix

21 lines
524 B
Nix
Raw Normal View History

{ stdenv, ghcWithPackages, makeWrapper, packages ? (x: []) }:
let
taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self);
in stdenv.mkDerivation {
2018-07-19 20:49:33 +01:00
name = "taffybar-with-packages-${taffybarEnv.version}";
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
mkdir -p $out/bin
makeWrapper ${taffybarEnv}/bin/taffybar $out/bin/taffybar \
--set NIX_GHC "${taffybarEnv}/bin/ghc"
'';
meta = {
platforms = stdenv.lib.platforms.unix;
2018-08-04 15:50:29 +01:00
license = stdenv.lib.licenses.bsd3;
};
}