mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
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`.
This commit is contained in:
parent
5fc1c2ac56
commit
49976f8bb4
@ -415,7 +415,7 @@ final: prev: {
|
||||
)
|
||||
else
|
||||
final.evalPackages.fetchgit { inherit url rev sha256; };
|
||||
} // final.buildPackages.lib.optionalAttrs (subdir != null) { postUnpack = "sourceRoot+=/${subdir}; echo source root reset to $sourceRoot"; };
|
||||
} // final.buildPackages.lib.optionalAttrs (subdir != null && subdir != ".") { postUnpack = "sourceRoot+=/${subdir}; echo source root reset to $sourceRoot"; };
|
||||
};
|
||||
|
||||
cacheMap = builtins.map repoToAttr cache;
|
||||
|
Loading…
Reference in New Issue
Block a user