at 17.09-beta 904 B view raw
1{ stdenv, lib, fetchFromGitHub, emscripten }: 2 3let version = "0.9.4"; in 4 5stdenv.mkDerivation { 6 name = "jsonnet-${version}"; 7 8 src = fetchFromGitHub { 9 rev = "v${version}"; 10 owner = "google"; 11 repo = "jsonnet"; 12 sha256 = "1bh9x8d3mxnic31b6gh4drn5l6qpyqfgsn2l48sv0jknhinm1a7l"; 13 }; 14 15 buildInputs = [ emscripten ]; 16 17 enableParallelBuilding = true; 18 19 makeFlags = [''EM_CACHE=$(TMPDIR)/.em_cache'' ''all'']; 20 21 installPhase = '' 22 mkdir -p $out/bin $out/lib $out/share/ 23 cp jsonnet $out/bin/ 24 cp libjsonnet.so $out/lib/ 25 cp -a doc $out/share/doc 26 cp -a include $out/include 27 ''; 28 29 meta = { 30 description = "Purely-functional configuration language that helps you define JSON data"; 31 maintainers = with lib.maintainers; [ benley copumpkin ]; 32 license = lib.licenses.asl20; 33 homepage = https://github.com/google/jsonnet; 34 platforms = lib.platforms.unix; 35 }; 36}