diff options
author | Aristid Breitkreuz <aristidb@gmail.com> | 2015-11-29 17:18:10 +0100 |
---|---|---|
committer | Aristid Breitkreuz <aristidb@gmail.com> | 2015-11-29 17:18:10 +0100 |
commit | 780f6788b6ff0edae4c2f0b0e2275d0dc3712197 (patch) | |
tree | 28bfeb10898d318a6c86c1bc8733bc0ecdbf6458 /pkgs/development | |
parent | a9056371a0a62da46ff88183a6535635ed085dec (diff) | |
parent | 99b8c7cff096356a0e1fc7c47dcecb28ac905d92 (diff) | |
download | nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar.gz nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar.bz2 nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar.lz nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar.xz nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.tar.zst nixpkgs-780f6788b6ff0edae4c2f0b0e2275d0dc3712197.zip |
Merge pull request #11341 from benley/jsonnet-0.8.5
jsonnet: init at 0.8.5
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/jsonnet/default.nix | 35 |
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 00000000000..b200df8d767 --- /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; + }; +} |