1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

taffybar: restore ability to override ghcWithPackages arg

This commit is contained in:
Rodney Lorrimar 2021-05-12 22:15:17 +10:00
parent 80969cc4ec
commit c46059f732
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143
2 changed files with 15 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{ lib, stdenv, haskellPackages, makeWrapper, packages ? (x: []) }:
{ lib, stdenv, ghcWithPackages, taffybar, makeWrapper, packages ? (x: []) }:
let
taffybarEnv = haskellPackages.ghc.withPackages (self: [
taffybarEnv = ghcWithPackages (self: [
self.taffybar
] ++ packages self);
in stdenv.mkDerivation {
@ -15,5 +15,14 @@ in stdenv.mkDerivation {
--set NIX_GHC "${taffybarEnv}/bin/ghc"
'';
inherit (haskellPackages.taffybar) meta;
# Trivial derivation
preferLocalBuild = true;
allowSubstitutes = false;
# For hacking purposes
passthru.env = taffybarEnv;
buildInputs = [ taffybarEnv ];
shellHook = "eval $(egrep ^export ${taffybarEnv}/bin/ghc)";
inherit (taffybar) meta;
}

View file

@ -26320,7 +26320,9 @@ in
# customConfig = builtins.readFile ./tabbed.config.h;
};
taffybar = callPackage ../applications/window-managers/taffybar {};
taffybar = callPackage ../applications/window-managers/taffybar {
inherit (haskellPackages) ghcWithPackages taffybar;
};
tagainijisho = callPackage ../applications/office/tagainijisho {};