2021-05-06 19:54:22 +02:00
|
|
|
{ lib, stdenv, haskellPackages, makeWrapper, packages ? (x: []) }:
|
2015-06-30 17:11:43 +02:00
|
|
|
|
|
|
|
let
|
2021-05-06 19:54:22 +02:00
|
|
|
taffybarEnv = haskellPackages.ghc.withPackages (self: [
|
|
|
|
self.taffybar
|
|
|
|
] ++ packages self);
|
2015-06-30 17:11:43 +02:00
|
|
|
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
|
|
|
|
2021-05-06 19:54:22 +02:00
|
|
|
inherit (haskellPackages.taffybar) meta;
|
2015-06-30 17:11:43 +02:00
|
|
|
}
|