mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
manual: Use a postPatch
instead of a patchPhase
This commit is contained in:
parent
ee6c2bd2eb
commit
45991097c5
1 changed files with 1 additions and 5 deletions
|
@ -37,12 +37,8 @@ let
|
|||
helloCheckpoint = prepareCheckpointBuild pkgs.hello;
|
||||
changedHello = pkgs.hello.overrideAttrs (_: {
|
||||
doCheck = false;
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/Hello, world!/Hello, Nix!/g' src/hello.c
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
});
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue