diff options
author | Benjamin Staffin <benley@gmail.com> | 2018-10-07 20:04:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 20:04:59 -0400 |
commit | 641cb61ef78c63222a6543e54dd9edb476529044 (patch) | |
tree | efcff2bef32d67d1cb84e95bb219c95fea67bf47 /pkgs/development/compilers | |
parent | fc3120ce90f2636e4c59c52ac9e9f3a4fcc47810 (diff) | |
download | nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar.gz nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar.bz2 nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar.lz nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar.xz nixlib-641cb61ef78c63222a6543e54dd9edb476529044.tar.zst nixlib-641cb61ef78c63222a6543e54dd9edb476529044.zip |
jsonnet: skip building the website (#47981)
The emscripten build of jsonnet is only used in the interactive demo found on jsonnet.org, and I don't think we need to include the whole website in our package. This reduces the transitive closure from ~100mb to ~32mb, and the build duration from ~8 minutes to ~20 seconds on my machine.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/jsonnet/default.nix | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/pkgs/development/compilers/jsonnet/default.nix b/pkgs/development/compilers/jsonnet/default.nix index f363c6fdb5ee..15eec4134acf 100644 --- a/pkgs/development/compilers/jsonnet/default.nix +++ b/pkgs/development/compilers/jsonnet/default.nix @@ -1,12 +1,8 @@ -{ stdenv, lib, fetchFromGitHub, emscripten -, enableJsonnetJs ? !stdenv.isDarwin -}: +{ stdenv, lib, fetchFromGitHub }: -let version = "0.11.2"; in - -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "jsonnet-${version}"; - version = version; + version = "0.11.2"; src = fetchFromGitHub { rev = "v${version}"; @@ -15,19 +11,18 @@ stdenv.mkDerivation { sha256 = "05rl5i4g36k2ikxv4sw726mha1qf5bb66wiqpi0s09wj9azm7vym"; }; - buildInputs = if enableJsonnetJs then [ emscripten ] else [ ]; - enableParallelBuilding = true; - makeFlags = [''EM_CACHE=$(TMPDIR)/.em_cache''] ++ - (if enableJsonnetJs then ["all"] else ["jsonnet" "libjsonnet.so" "libjsonnet++.so"]); + makeFlags = [ + "jsonnet" + "libjsonnet.so" + ]; installPhase = '' - mkdir -p $out/bin $out/lib $out/share/ + mkdir -p $out/bin $out/lib $out/include cp jsonnet $out/bin/ cp libjsonnet*.so $out/lib/ - cp -a doc $out/share/doc - cp -a include $out/include + cp -a include/*.h $out/include/ ''; meta = { |