diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-10-10 23:19:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-10 23:19:12 -0500 |
commit | 67223bc752bbf24370f905c9e5d82bff9e15dd3c (patch) | |
tree | e09c0f4f9ffb9853f2252eb627b15797614b8766 /pkgs/development | |
parent | 1f9882cb294074387487743effd5b220074f6523 (diff) | |
parent | 0fdd8bc09d3567c6951543f4c5efa30d2e017f92 (diff) | |
download | nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar.gz nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar.bz2 nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar.lz nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar.xz nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.tar.zst nixpkgs-67223bc752bbf24370f905c9e5d82bff9e15dd3c.zip |
Merge pull request #70889 from marsam/init-jtc
jtc: init at 1.74
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/jtc/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/jtc/default.nix b/pkgs/development/tools/jtc/default.nix new file mode 100644 index 00000000000..4dcc15089fe --- /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; + }; +} |