git.iko.soy/typeable/nixpkgs
on master help sign in
wiki-js: use `installPhase` & get rid of `buildCommand`

With this change it's also possible to override and add custom patches.

commitf3f1e1602777c7fb25101faf35279e13bf9fa9b6 authorMaximilian Bosch <maximilian@mbosch.me> dateSat 27 Mar 2021, 21:04 (6 years ago) parentde98a18
1 file changed+9−2
pkgs/servers/web-apps/wiki-js/default.nix+9−2
pkgs/servers/web-apps/wiki-js/default.nix+9−2
@@ -9,9 +9,16 @@ stdenv.mkDerivation rec {
99 sha256 = "sha256-lEHelZTFZxcds7t3TCMcd9b3rKdml54A0/V7gcQIyPA=";
1010 };
1111
12− buildCommand = ''
12+ sourceRoot = ".";
13+
14+ dontBuild = true;
15+ installPhase = ''
16+ runHook preInstall
17+
1318 mkdir $out
14− tar xzvf $src -C $out
19+ cp -r . $out
20+
21+ runHook postInstall
1522 '';
1623
1724 passthru.tests = { inherit (nixosTests) wiki-js; };