1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/applications/window-managers/taffybar/default.nix

20 lines
498 B
Nix
Raw Normal View History

{ lib, stdenv, haskellPackages, makeWrapper, packages ? (x: []) }:
let
taffybarEnv = haskellPackages.ghc.withPackages (self: [
self.taffybar
] ++ packages self);
in stdenv.mkDerivation {
2018-07-19 20:49:33 +01:00
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;
}