depot/third_party/nixpkgs/pkgs/development/tools/jtc/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
743 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "jtc";
version = "1.75d";
src = fetchFromGitHub {
owner = "ldn-softdev";
repo = pname;
rev = version;
sha256 = "0vgb5hcgml0vmdal494231jq6dlr0qgssqhnrgsvqqjapy8xhnpw";
};
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;
};
}