1ae14203fc
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
20 lines
515 B
Nix
20 lines
515 B
Nix
{ lib, 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 = lib.platforms.unix;
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|