3
0
Fork 0
forked from mirrors/nixpkgs

wiki-js: use installPhase & get rid of buildCommand

With this change it's also possible to override and add custom patches.
This commit is contained in:
Maximilian Bosch 2021-03-27 21:04:53 +01:00
parent de98a184f5
commit f3f1e16027
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -9,9 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-lEHelZTFZxcds7t3TCMcd9b3rKdml54A0/V7gcQIyPA=";
};
buildCommand = ''
sourceRoot = ".";
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir $out
tar xzvf $src -C $out
cp -r . $out
runHook postInstall
'';
passthru.tests = { inherit (nixosTests) wiki-js; };