json2tsv: init at 1.0

This commit is contained in:
Nikolay Korotkiy 2022-09-02 16:21:15 +03:00
parent 937266ba55
commit 0b92da79ce
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
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

@ -18833,6 +18833,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 { };