taffybar: restore ability to override ghcWithPackages arg
This commit is contained in:
parent
80969cc4ec
commit
c46059f732
|
@ -1,7 +1,7 @@
|
||||||
{ lib, stdenv, haskellPackages, makeWrapper, packages ? (x: []) }:
|
{ lib, stdenv, ghcWithPackages, taffybar, makeWrapper, packages ? (x: []) }:
|
||||||
|
|
||||||
let
|
let
|
||||||
taffybarEnv = haskellPackages.ghc.withPackages (self: [
|
taffybarEnv = ghcWithPackages (self: [
|
||||||
self.taffybar
|
self.taffybar
|
||||||
] ++ packages self);
|
] ++ packages self);
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
|
@ -15,5 +15,14 @@ in stdenv.mkDerivation {
|
||||||
--set NIX_GHC "${taffybarEnv}/bin/ghc"
|
--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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26320,7 +26320,9 @@ in
|
||||||
# customConfig = builtins.readFile ./tabbed.config.h;
|
# 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 {};
|
tagainijisho = callPackage ../applications/office/tagainijisho {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue