doc: add missing phase hooks

This commit is contained in:
Pol Dellaiera 2025-04-19 22:02:30 +02:00
parent 540ddbcf2f
commit 47f000d991
9 changed files with 110 additions and 7 deletions

View file

@ -106,12 +106,16 @@ stdenv.mkDerivation rec {
configurePhase = generated.configure;
installPhase = ''
runHook preInstall
# This is a special function that invokes swiftpm to find the location
# of the binaries it produced.
binPath="$(swiftpmBinPath)"
# Now perform any installation steps.
mkdir -p $out/bin
cp $binPath/myproject $out/bin/
runHook postInstall
'';
}
```