mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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:
parent
de98a184f5
commit
f3f1e16027
@ -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; };
|
||||
|
Loading…
Reference in New Issue
Block a user