Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "json2tsv"; 9 version = "1.2"; 10 11 src = fetchurl { 12 url = "https://codemadness.org/releases/json2tsv/json2tsv-${version}.tar.gz"; 13 hash = "sha256-ET5aeuspXn+BNfIxytkACR+Zrr1smDFvdh03fptQ/YQ="; 14 }; 15 16 postPatch = '' 17 substituteInPlace jaq --replace "json2tsv" "$out/bin/json2tsv" 18 ''; 19 20 makeFlags = [ "RANLIB:=$(RANLIB)" ]; 21 22 installFlags = [ "PREFIX=$(out)" ]; 23 24 meta = with lib; { 25 description = "JSON to TSV converter"; 26 homepage = "https://codemadness.org/json2tsv.html"; 27 license = licenses.isc; 28 maintainers = with maintainers; [ sikmir ]; 29 platforms = platforms.unix; 30 }; 31}