haskell-packages: factor package set construction in new file

Closes https://github.com/NixOS/nixpkgs/pull/24850.
This commit is contained in:
Benno Fünfstück
2017-04-21 16:25:53 +02:00
committed by Peter Simons
parent 6e50b4532c
commit 5f33eb493f
3 changed files with 114 additions and 96 deletions
+1
View File
@@ -1,6 +1,7 @@
{ pkgs }:
rec {
makePackageSet = pkgs.callPackage ./make-package-set.nix {};
overrideCabal = drv: f: (drv.override (args: args // {
mkDerivation = drv: (args.mkDerivation drv).override f;