From f3f1e1602777c7fb25101faf35279e13bf9fa9b6 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 27 Mar 2021 21:04:53 +0100 Subject: [PATCH] wiki-js: use `installPhase` & get rid of `buildCommand` With this change it's also possible to override and add custom patches. --- pkgs/servers/web-apps/wiki-js/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/wiki-js/default.nix b/pkgs/servers/web-apps/wiki-js/default.nix index 7e1117e660f..705c4989e07 100644 --- a/pkgs/servers/web-apps/wiki-js/default.nix +++ b/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; };