wiki-js: use `installPhase` & get rid of `buildCommand`

With this change it's also possible to override and add custom patches.
wip/yesman
Maximilian Bosch 3 years ago
parent de98a184f5
commit f3f1e16027
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 11
      pkgs/servers/web-apps/wiki-js/default.nix

@ -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…
Cancel
Save