mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-28 22:57:04 +03:00
17 lines
535 B
Nix
17 lines
535 B
Nix
{ pkgs ? import <nixpkgs> {} }: let
|
|
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
|
|
overrideHaskellPackages = orig: {
|
|
buildHaskellPackages =
|
|
orig.buildHaskellPackages.override overrideHaskellPackages;
|
|
overrides = if orig ? overrides
|
|
then pkgs.lib.composeExtensions orig.overrides overlay
|
|
else overlay;
|
|
};
|
|
in {
|
|
haskellPackages =
|
|
pkgs.haskellPackages.override overrideHaskellPackages;
|
|
haskell865Packages =
|
|
pkgs.haskell.packages.ghc865.override overrideHaskellPackages;
|
|
inherit pkgs;
|
|
}
|