Merge pull request #277749 from NickCao/quicktun

quicktun: fix cross compilation, add missing runHook
This commit is contained in:
Rick van Schijndel 2023-12-31 20:55:08 +01:00 committed by GitHub
commit 68a2a95239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,11 +15,22 @@ stdenv.mkDerivation {
buildInputs = [ libsodium ];
buildPhase = "bash build.sh";
postPatch = ''
substituteInPlace build.sh \
--replace "cc=\"cc\"" "cc=\"$CC\""
'';
buildPhase = ''
runHook preBuild
bash build.sh
runHook postBuild
'';
installPhase = ''
runHook preInstall
rm out/quicktun*tgz
install -vD out/quicktun* -t $out/bin
runHook postInstall
'';
passthru.tests.quicktun = nixosTests.quicktun;