default.nix (669B)
1 { lib, stdenv, fetchgit }: 2 3 stdenv.mkDerivation rec { 4 pname = "json2tsv"; 5 version = "1.0"; 6 7 src = fetchgit { 8 url = "git://git.codemadness.org/json2tsv"; 9 rev = version; 10 hash = "sha256-xYF+qYyjz0kzOnez1pMwJKnlx0UCYlXZJEpjwdSqhhk="; 11 }; 12 13 postPatch = '' 14 substituteInPlace jaq --replace "json2tsv" "$out/bin/json2tsv" 15 ''; 16 17 makeFlags = [ "RANLIB:=$(RANLIB)" ]; 18 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 meta = with lib; { 22 description = "JSON to TSV converter"; 23 homepage = "https://git.codemadness.org/json2tsv/file/README.html"; 24 license = licenses.isc; 25 maintainers = [ maintainers.sikmir ]; 26 platforms = platforms.unix; 27 }; 28 }