hnix-store/default.nix

15 lines
445 B
Nix
Raw Normal View History

2019-03-10 02:32:01 +03:00
{ pkgs ? import <nixpkgs> {} }: let
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
2019-03-10 02:32:01 +03:00
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;
inherit pkgs;
}