diff options
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/jsonnet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/jsonnet/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/jsonnet/default.nix b/nixpkgs/pkgs/development/compilers/jsonnet/default.nix new file mode 100644 index 000000000000..6104ffc7aaa3 --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/jsonnet/default.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "jsonnet-${version}"; + version = "0.12.1"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "google"; + repo = "jsonnet"; + sha256 = "13a0sf1k8ivxhc28w0d0axzr0sj3jccl9sjq6l0dkyzrnmbxzmkb"; + }; + + enableParallelBuilding = true; + + makeFlags = [ + "jsonnet" + "libjsonnet.so" + ]; + + installPhase = '' + mkdir -p $out/bin $out/lib $out/include + cp jsonnet $out/bin/ + cp libjsonnet*.so $out/lib/ + cp -a include/*.h $out/include/ + ''; + + meta = { + description = "Purely-functional configuration language that helps you define JSON data"; + maintainers = with lib.maintainers; [ benley copumpkin ]; + license = lib.licenses.asl20; + homepage = https://github.com/google/jsonnet; + platforms = lib.platforms.unix; + }; +} |