on iko/ghcjs-patch-master help sign in
Make stack more like cabal (#1486)

When comparing `cabalProject` and `stackProject` with `nix-diff` source repository packages sometimes show up differently because an unnecessary `postUnpack` hook is added for `stackProject`.

commit49976f8bb435a915101d0f66bb16fe885defb713 authorHamish Mackenzie <Hamish.K.Mackenzie@gmail.com> dateFri 27 May 2022, 18:30 (4 years ago) parent5fc1c2a
1 file changed+1−1
overlays/haskell.nix+1−1
overlays/haskell.nix+1−1
@@ -415,7 +415,7 @@ final: prev: {
415415 )
416416 else
417417 final.evalPackages.fetchgit { inherit url rev sha256; };
418− } // final.buildPackages.lib.optionalAttrs (subdir != null) { postUnpack = "sourceRoot+=/${subdir}; echo source root reset to $sourceRoot"; };
418+ } // final.buildPackages.lib.optionalAttrs (subdir != null && subdir != ".") { postUnpack = "sourceRoot+=/${subdir}; echo source root reset to $sourceRoot"; };
419419 };
420420
421421 cacheMap = builtins.map repoToAttr cache;