a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
37 lines
741 B
Nix
37 lines
741 B
Nix
{ lib, 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 lib; {
|
|
description = "JSON manipulation and transformation tool";
|
|
homepage = "https://github.com/ldn-softdev/jtc";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|