callCabal2nix: Revert "Don't rebuild unchanged cabal file"
This reverts commit 24b47526ce38e3ccb073c776b32c0ea220f3c0f2 since it broke callCabal2nix, apparently. See https://github.com/NixOS/nixpkgs/issues/24245 for details.
This commit is contained in:
parent
db5f0cdd50
commit
50cce50143
@ -84,14 +84,7 @@ let
|
||||
callHackage = name: version: self.callPackage (hackage2nix name version);
|
||||
|
||||
# Creates a Haskell package from a source package by calling cabal2nix on the source.
|
||||
callCabal2nix = name: src: args:
|
||||
let
|
||||
# Filter out files other than the cabal file. This ensures
|
||||
# that we don't create new derivations even when the cabal
|
||||
# file hasn't changed.
|
||||
justCabal = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src;
|
||||
drv = self.callPackage (haskellSrc2nix { inherit name; src = justCabal; }) args;
|
||||
in overrideCabal drv (drv': { inherit src; }); # Restore the desired src.
|
||||
callCabal2nix = name: src: self.callPackage (haskellSrc2nix { inherit src name; });
|
||||
|
||||
ghcWithPackages = selectFrom: withPackages (selectFrom self);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user