Merge pull request #189460 from sikmir/json2tsv

json2tsv: init at 1.0
This commit is contained in:
Ivv 2022-09-11 02:27:20 +02:00 committed by GitHub
commit 705476eae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "json2tsv";
version = "1.0";
src = fetchurl {
url = "https://codemadness.org/releases/json2tsv/json2tsv-${version}.tar.gz";
hash = "sha256-BOamDWszYDqKGdKOlAOLY7F9ScZaBJXNdhz38iYW3ps=";
};
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;
};
}

View File

@ -18954,6 +18954,8 @@ with pkgs;
json2hcl = callPackage ../development/tools/json2hcl { };
json2tsv = callPackage ../development/tools/json2tsv { };
json2yaml = haskell.lib.compose.justStaticExecutables haskellPackages.json2yaml;
json-glib = callPackage ../development/libraries/json-glib { };