nixpkgs/pkgs/development/tools/jtc/default.nix

38 lines
758 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2019-10-10 04:00:00 +02:00
stdenv.mkDerivation rec {
pname = "jtc";
version = "1.76";
2019-10-10 04:00:00 +02:00
src = fetchFromGitHub {
owner = "ldn-softdev";
repo = pname;
rev = version;
sha256 = "sha256-VATRlOOV4wBInLOm9J0Dp2vhtL5mb0Yxdl/ya0JiqEU=";
2019-10-10 04:00:00 +02:00
};
buildPhase = ''
runHook preBuild
$CXX -o jtc -Wall -std=gnu++14 -Ofast -pthread -lpthread jtc.cpp
2019-10-10 04:00:00 +02:00
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin jtc
runHook postInstall
'';
meta = with lib; {
2019-10-10 04:00:00 +02:00
description = "JSON manipulation and transformation tool";
homepage = "https://github.com/ldn-softdev/jtc";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}