10 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 sha256 = "sha256-FtVJE9alEl56Uik+nCpJMV5DMVVmRCnE1xMAiWdK39Y=";
29 buildInputs = [ gtest ];
33 "-DUSE_SYSTEM_GTEST=ON"
34 "-DBUILD_STATIC_LIBS=${if stdenv.hostPlatform.isStatic then "ON" else "OFF"}"
36 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
37 "-DBUILD_SHARED_BINARIES=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
40 # https://github.com/google/jsonnet/issues/778
42 ./fix-cpp-unresolved-symbols.patch
45 enableParallelBuilding = true;
47 # Upstream writes documentation in html, not in markdown/rst, so no
48 # other output formats, sorry.
50 jekyll build --source ../doc --destination ./html
54 mkdir -p $out/share/doc/jsonnet
55 cp -r ./html $out/share/doc/jsonnet
59 description = "Purely-functional configuration language that helps you define JSON data";
60 maintainers = with lib.maintainers; [
64 license = lib.licenses.asl20;
65 homepage = "https://github.com/google/jsonnet";
66 platforms = lib.platforms.unix;