2018-10-07 17:04:59 -07:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2015-11-28 18:54:05 -08:00
|
|
|
|
2018-10-07 17:04:59 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2015-11-28 18:54:05 -08:00
|
|
|
name = "jsonnet-${version}";
|
2018-10-07 17:04:59 -07:00
|
|
|
version = "0.11.2";
|
2015-11-28 18:54:05 -08:00
|
|
|
|
2016-07-19 04:56:24 -07:00
|
|
|
src = fetchFromGitHub {
|
2015-11-28 18:54:05 -08:00
|
|
|
rev = "v${version}";
|
|
|
|
owner = "google";
|
|
|
|
repo = "jsonnet";
|
2018-07-22 12:22:57 -07:00
|
|
|
sha256 = "05rl5i4g36k2ikxv4sw726mha1qf5bb66wiqpi0s09wj9azm7vym";
|
2015-11-28 18:54:05 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-07 17:04:59 -07:00
|
|
|
makeFlags = [
|
|
|
|
"jsonnet"
|
|
|
|
"libjsonnet.so"
|
|
|
|
];
|
2015-11-28 18:54:05 -08:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-10-07 17:04:59 -07:00
|
|
|
mkdir -p $out/bin $out/lib $out/include
|
2015-11-28 18:54:05 -08:00
|
|
|
cp jsonnet $out/bin/
|
2018-10-06 11:56:21 -07:00
|
|
|
cp libjsonnet*.so $out/lib/
|
2018-10-07 17:04:59 -07:00
|
|
|
cp -a include/*.h $out/include/
|
2015-11-28 18:54:05 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Purely-functional configuration language that helps you define JSON data";
|
2016-08-09 12:39:33 -07:00
|
|
|
maintainers = with lib.maintainers; [ benley copumpkin ];
|
2015-11-29 08:34:10 -08:00
|
|
|
license = lib.licenses.asl20;
|
2015-11-28 18:54:05 -08:00
|
|
|
homepage = https://github.com/google/jsonnet;
|
2016-05-28 11:39:45 -07:00
|
|
|
platforms = lib.platforms.unix;
|
2015-11-28 18:54:05 -08:00
|
|
|
};
|
|
|
|
}
|