fix hasekllPackages overlay

This commit is contained in:
GTrunSec 2021-06-24 22:58:26 -07:00
parent e3b7c07daf
commit f1117f27ec
No known key found for this signature in database
GPG Key ID: 2368FAFA4ABDD2A0
2 changed files with 11 additions and 12 deletions

View File

@ -52,7 +52,6 @@
nur.overlay nur.overlay
agenix.overlay agenix.overlay
nvfetcher.overlay nvfetcher.overlay
(final: prev: { nvfetcher-bin = nvfetcher.defaultPackage.${final.system}; })
./pkgs/default.nix ./pkgs/default.nix
]; ];
}; };

View File

@ -14,15 +14,15 @@ channels: final: prev: {
starship; starship;
haskellPackages = prev.haskellPackages.override { haskellPackages = prev.haskellPackages.override
overrides = hfinal: hprev: (old: {
let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version; overrides = prev.lib.composeExtensions (old.overrides or (_: _: { })) (hfinal: hprev:
in let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version;
{ in
# same for haskell packages, matching ghc versions {
inherit (channels.latest.haskell.packages."ghc${version}") # same for haskell packages, matching ghc versions
haskell-language-server; inherit (channels.latest.haskell.packages."ghc${version}")
}; haskell-language-server;
}; });
});
} }