1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/development/compilers/jsonnet/default.nix
Ryan Mulligan d339605831 jsonnet: 0.9.5 -> 0.10.0 (#37455)
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet -h` got 0 exit code
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet --help` got 0 exit code
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet -v` and found version 0.10.0
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet --version` and found version 0.10.0
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet -h` and found version 0.10.0
- ran `/nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0/bin/jsonnet --help` and found version 0.10.0
- found 0.10.0 with grep in /nix/store/348mi6qinpcnhrk0l8zy9m9lk43xqpml-jsonnet-0.10.0
- directory tree listing: https://gist.github.com/9a4279146abdaa645fdcd5481889e783
2018-03-20 11:18:38 -04:00

38 lines
926 B
Nix

{ stdenv, lib, fetchFromGitHub, emscripten }:
let version = "0.10.0"; in
stdenv.mkDerivation {
name = "jsonnet-${version}";
version = version;
src = fetchFromGitHub {
rev = "v${version}";
owner = "google";
repo = "jsonnet";
sha256 = "0xj540140r89qrdh3h4kzlz4x8c576ynq9i1x82zzl3d7fxbk5f0";
};
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 = with lib.maintainers; [ benley copumpkin ];
license = lib.licenses.asl20;
homepage = https://github.com/google/jsonnet;
platforms = lib.platforms.unix;
};
}