mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
20 lines
498 B
Nix
20 lines
498 B
Nix
{ lib, stdenv, haskellPackages, makeWrapper, packages ? (x: []) }:
|
|
|
|
let
|
|
taffybarEnv = haskellPackages.ghc.withPackages (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"
|
|
'';
|
|
|
|
inherit (haskellPackages.taffybar) meta;
|
|
}
|