nixpkgs-suyu/pkgs/applications/window-managers/taffybar/default.nix
Pascal Wittmann c8967313b1
taffybar: add license
see issue #43716
2018-08-04 16:50:29 +02:00

20 lines
524 B
Nix

{ stdenv, ghcWithPackages, makeWrapper, packages ? (x: []) }:
let
taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self);
in stdenv.mkDerivation {
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;
license = stdenv.lib.licenses.bsd3;
};
}