1 { lib, stdenv, fetchFromGitHub, fetchpatch }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-VATRlOOV4wBInLOm9J0Dp2vhtL5mb0Yxdl/ya0JiqEU=";
15 # Fix building with Clang. Removing with next release.
17 url = "https://github.com/ldn-softdev/jtc/commit/92a5116e5524c0b6d2f539db7b5cc9fdd7c5b8ab.patch";
18 sha256 = "sha256-AAvDH0XsT8/CAguG611/odg0m1HR+veC0jbAw6KLHLM=";
25 $CXX -o jtc -Wall -std=gnu++14 -Ofast -pthread -lpthread jtc.cpp
33 install -Dm755 -t $out/bin jtc
39 description = "JSON manipulation and transformation tool";
41 homepage = "https://github.com/ldn-softdev/jtc";
42 license = licenses.mit;
44 platforms = platforms.all;