mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
28 lines
674 B
Nix
28 lines
674 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "json2tsv";
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://codemadness.org/releases/json2tsv/json2tsv-${version}.tar.gz";
|
|
hash = "sha256-7r5+YoZVivCqDbfFUqTB/x41DrZi7GZRVcJhGZCpw0o=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace jaq --replace "json2tsv" "$out/bin/json2tsv"
|
|
'';
|
|
|
|
makeFlags = [ "RANLIB:=$(RANLIB)" ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "JSON to TSV converter";
|
|
homepage = "https://codemadness.org/json2tsv.html";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|