2015-06-30 17:11:43 +02:00
|
|
|
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages ? (x: []) }:
|
|
|
|
|
|
|
|
let
|
|
|
|
taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self);
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "taffybar-with-packages";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2015-06-30 17:11:43 +02:00
|
|
|
}
|