summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/default.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2017-03-17 04:32:34 -0400
committerWill Fancher <elvishjerricco@gmail.com>2017-03-17 04:32:34 -0400
commit934c8c7a93126090f786f9d061190cf84e7d4473 (patch)
tree27134e45f0b881beae9108c9fcae2cdc2a33bd60 /pkgs/development/haskell-modules/default.nix
parent24b47526ce38e3ccb073c776b32c0ea220f3c0f2 (diff)
downloadnixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar.gz
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar.bz2
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar.lz
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar.xz
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.tar.zst
nixpkgs-934c8c7a93126090f786f9d061190cf84e7d4473.zip
callCabal2nix: Fixed indentation
Diffstat (limited to 'pkgs/development/haskell-modules/default.nix')
-rw-r--r--pkgs/development/haskell-modules/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix
index 6d15d596624..7205f777bcf 100644
--- a/pkgs/development/haskell-modules/default.nix
+++ b/pkgs/development/haskell-modules/default.nix
@@ -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);