Merge pull request #277749 from NickCao/quicktun
quicktun: fix cross compilation, add missing runHook
This commit is contained in:
commit
68a2a95239
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user