haskell.lib.compose.triggerRebuild: don't discard old postUnpack

This commit is contained in:
sternenseemann 2023-12-14 19:01:34 +01:00
parent f061cfd767
commit 43b6f6d3c6

View file

@ -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.