Skip to content

Commit

Permalink
Run pre/postPatch hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Sep 9, 2024
1 parent 97b0b0a commit 5d5da2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/logwatch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ stdenvNoCC.mkDerivation {

patchPhase =
''
runHook prePatch
# Fix paths
substituteInPlace install_logwatch.sh \
--replace-fail "/usr/share" "$out/usr/share" \
Expand All @@ -74,6 +76,9 @@ stdenvNoCC.mkDerivation {
-e "s|^my \$Version = '.*';|my \$Version = '${rev}';|" \
-e "s|^my \$VDate = '.*';|my \$VDate = '${date}';|" \
scripts/logwatch.pl
''
+ ''
runHook postPatch
'';

dontConfigure = true;
Expand Down

0 comments on commit 5d5da2e

Please sign in to comment.