callCabal2nix: Fixed indentation
This commit is contained in:
parent
24b47526ce
commit
934c8c7a93
@ -85,13 +85,13 @@ let
|
|||||||
|
|
||||||
# Creates a Haskell package from a source package by calling cabal2nix on the source.
|
# Creates a Haskell package from a source package by calling cabal2nix on the source.
|
||||||
callCabal2nix = name: src: args:
|
callCabal2nix = name: src: args:
|
||||||
let
|
let
|
||||||
# Filter out files other than the cabal file. This ensures
|
# Filter out files other than the cabal file. This ensures
|
||||||
# that we don't create new derivations even when the cabal
|
# that we don't create new derivations even when the cabal
|
||||||
# file hasn't changed.
|
# file hasn't changed.
|
||||||
justCabal = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src;
|
justCabal = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src;
|
||||||
drv = self.callPackage (haskellSrc2nix { inherit name; src = justCabal; }) args;
|
drv = self.callPackage (haskellSrc2nix { inherit name; src = justCabal; }) args;
|
||||||
in overrideCabal drv (drv': { inherit src; }); # Restore the desired src.
|
in overrideCabal drv (drv': { inherit src; }); # Restore the desired src.
|
||||||
|
|
||||||
ghcWithPackages = selectFrom: withPackages (selectFrom self);
|
ghcWithPackages = selectFrom: withPackages (selectFrom self);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user