about summary refs log tree commit diff
path: root/pkgs/development/compilers/jsonnet
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2015-11-28 18:54:05 -0800
committerBenjamin Staffin <benley@gmail.com>2015-11-29 04:13:00 -0800
commit99b8c7cff096356a0e1fc7c47dcecb28ac905d92 (patch)
tree41afe901d321e45fd3b59d6f0fe339fa42dfb0ad /pkgs/development/compilers/jsonnet
parenta936b602b58bffc2e0a903085fcbbb5df88850ea (diff)
jsonnet: init at 0.8.5
Diffstat (limited to 'pkgs/development/compilers/jsonnet')
-rw-r--r--pkgs/development/compilers/jsonnet/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/compilers/jsonnet/default.nix b/pkgs/development/compilers/jsonnet/default.nix
new file mode 100644
index 0000000000000..b200df8d76780
--- /dev/null
+++ b/pkgs/development/compilers/jsonnet/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, lib, fetchFromGitHub, emscripten }:
+
+let version = "0.8.5"; in
+
+stdenv.mkDerivation {
+  name = "jsonnet-${version}";
+
+  srcs = fetchFromGitHub {
+    rev = "v${version}";
+    owner = "google";
+    repo = "jsonnet";
+    sha256 = "14raml69zfr38r4qghdgy129vdq2vq1ivl3a2y02isfpijxcajxn";
+  };
+
+  buildInputs = [ emscripten ];
+
+  enableParallelBuilding = true;
+
+  makeFlags = [''EM_CACHE=$(TMPDIR)/.em_cache'' ''all''];
+
+  installPhase = ''
+    mkdir -p $out/bin $out/lib $out/share/
+    cp jsonnet $out/bin/
+    cp libjsonnet.so $out/lib/
+    cp -a doc $out/share/doc
+    cp -a include $out/include
+  '';
+
+  meta = {
+    description = "Purely-functional configuration language that helps you define JSON data";
+    maintainers = [ lib.maintainers.benley ];
+    license = lib.licenses.apache;
+    homepage = https://github.com/google/jsonnet;
+  };
+}