mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
commit
705476eae4
27
pkgs/development/tools/json2tsv/default.nix
Normal file
27
pkgs/development/tools/json2tsv/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user