mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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
|
||||
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;
|
||||
}
|
||||
|
@ -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 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user