mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 21:57:52 +03:00
quicktun: fix cross compilation, add missing runHook
This commit is contained in:
parent
2961883989
commit
cbe3324993
@ -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