diff --git a/pkgs/servers/web-apps/wiki-js/default.nix b/pkgs/servers/web-apps/wiki-js/default.nix index 23d96bc39ef7..362230da8dd2 100644 --- a/pkgs/servers/web-apps/wiki-js/default.nix +++ b/pkgs/servers/web-apps/wiki-js/default.nix @@ -9,6 +9,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-beP9k1msJjg9IQbU/CmzTodjMvUnWrLYcw0EleR1OJk="; }; + # Unpack the tarball into a subdir. All the contents are copied into `$out`. + # Unpacking into the parent directory would also copy `env-vars` into `$out` + # in the `installPhase` which ultimately means that the package retains + # references to build tools and the tarball. + preUnpack = '' + mkdir source + cd source + ''; + sourceRoot = "."; dontBuild = true;