Skip to content

Commit

Permalink
callCabal2nix: Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Mar 17, 2017
1 parent 24b4752 commit 934c8c7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkgs/development/haskell-modules/default.nix
Expand Up @@ -85,13 +85,13 @@ let

# 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.
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.

ghcWithPackages = selectFrom: withPackages (selectFrom self);

Expand Down

0 comments on commit 934c8c7

Please sign in to comment.