From 0fdd8bc09d3567c6951543f4c5efa30d2e017f92 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 9 Oct 2019 21:00:00 -0500 Subject: [PATCH] jtc: init at 1.74 --- pkgs/development/tools/jtc/default.nix | 37 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/jtc/default.nix diff --git a/pkgs/development/tools/jtc/default.nix b/pkgs/development/tools/jtc/default.nix new file mode 100644 index 000000000000..4dcc15089fe0 --- /dev/null +++ b/pkgs/development/tools/jtc/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "jtc"; + version = "1.74"; + + src = fetchFromGitHub { + owner = "ldn-softdev"; + repo = pname; + rev = version; + sha256 = "04hzamgs4k0x58cf4dw0a46kyw79yvcd5vazbklbjl6ap3rmnrx3"; + }; + + buildPhase = '' + runHook preBuild + + $CXX -o jtc -Wall -std=gnu++14 -Ofast jtc.cpp + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm755 -t $out/bin jtc + + runHook postInstall + ''; + + meta = with stdenv.lib; { + description = "JSON manipulation and transformation tool"; + homepage = "https://github.com/ldn-softdev/jtc"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 48340f82257b..c9157eb4a88a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4140,6 +4140,8 @@ in jsduck = callPackage ../development/tools/jsduck { }; + jtc = callPackage ../development/tools/jtc { }; + jumpapp = callPackage ../tools/X11/jumpapp {}; jucipp = callPackage ../applications/editors/jucipp { };