1 { lib, stdenv, ghcWithPackages, taffybar, makeWrapper, packages ? (x: []) }:
4 taffybarEnv = ghcWithPackages (self: [
7 in stdenv.mkDerivation {
8 pname = "taffybar-with-packages";
9 inherit (taffybar) version;
11 nativeBuildInputs = [ makeWrapper ];
15 makeWrapper ${taffybarEnv}/bin/taffybar $out/bin/taffybar \
16 --set NIX_GHC "${taffybarEnv}/bin/ghc"
20 preferLocalBuild = true;
21 allowSubstitutes = false;
23 # For hacking purposes
24 passthru.env = taffybarEnv;
25 buildInputs = [ taffybarEnv ];
26 shellHook = "eval $(egrep ^export ${taffybarEnv}/bin/ghc)";
28 inherit (taffybar) meta;