nixpkgs/pkgs/applications/window-managers/taffybar/default.nix

21 lines
515 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, 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 = {
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.unix;
license = lib.licenses.bsd3;
};
}