2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, ghcWithPackages, makeWrapper, packages ? (x: []) }:
|
2015-06-30 17:11:43 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self);
|
|
|
|
in stdenv.mkDerivation {
|
2018-07-19 21:49:33 +02:00
|
|
|
name = "taffybar-with-packages-${taffybarEnv.version}";
|
2015-06-30 17:11:43 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${taffybarEnv}/bin/taffybar $out/bin/taffybar \
|
|
|
|
--set NIX_GHC "${taffybarEnv}/bin/ghc"
|
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-08-04 16:50:29 +02:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2015-06-30 17:11:43 +02:00
|
|
|
}
|