mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
32 lines
704 B
Nix
32 lines
704 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "json2tsv";
|
|
version = "1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://codemadness.org/releases/json2tsv/json2tsv-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-ET5aeuspXn+BNfIxytkACR+Zrr1smDFvdh03fptQ/YQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace jaq --replace "json2tsv" "$out/bin/json2tsv"
|
|
'';
|
|
|
|
makeFlags = [ "RANLIB:=$(RANLIB)" ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = {
|
|
description = "JSON to TSV converter";
|
|
homepage = "https://codemadness.org/json2tsv.html";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|