haskell.lib.compose.triggerRebuild: don't discard old postUnpack
This commit is contained in:
parent
f061cfd767
commit
43b6f6d3c6
1 changed files with 6 additions and 1 deletions
|
@ -354,7 +354,12 @@ rec {
|
||||||
/* Add a dummy command to trigger a build despite an equivalent
|
/* Add a dummy command to trigger a build despite an equivalent
|
||||||
earlier build that is present in the store or cache.
|
earlier build that is present in the store or cache.
|
||||||
*/
|
*/
|
||||||
triggerRebuild = i: overrideCabal (drv: { postUnpack = ": trigger rebuild ${toString i}"; });
|
triggerRebuild = i: overrideCabal (drv: {
|
||||||
|
postUnpack = drv.postUnpack or "" + ''
|
||||||
|
|
||||||
|
# trigger rebuild ${toString i}
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
/* Override the sources for the package and optionally the version.
|
/* Override the sources for the package and optionally the version.
|
||||||
This also takes of removing editedCabalFile.
|
This also takes of removing editedCabalFile.
|
||||||
|
|
Loading…
Reference in a new issue