3
0
Fork 0
forked from mirrors/nixpkgs

bundlerApp: avoid unecessary rebuilds when gemdir changes

Because the gemdir was referenced on the derivation, it would cause the
whole gemdir to get added to the store, which would in turn force the
derivation to be rebuilt whenever unrelated folder files would change.
This commit is contained in:
zimbatm 2019-09-13 11:05:41 +02:00 committed by Alyssa Ross
parent 1987bddea8
commit cef857e8b7

View file

@ -36,7 +36,7 @@
let
basicEnv = (callPackage ../bundled-common {}) args;
cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" ] // {
cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // {
inherit preferLocalBuild allowSubstitutes; # pass the defaults
buildInputs = buildInputs ++ lib.optional (scripts != []) makeWrapper;