forked from mirrors/nixpkgs
d339605831
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
38 lines
926 B
Nix
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;
|
|
};
|
|
}
|