9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
30 lines
848 B
Nix
30 lines
848 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, curl, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fastgron";
|
|
version = "0.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamritter";
|
|
repo = "fastgron";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-sGTJ98YEvy+pOFVLLIcvgUq5Pn4r1CYL9YEchZhoBeQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/adamritter/fastgron/releases/tag/${finalAttrs.src.rev}";
|
|
description = "High-performance JSON to GRON (greppable, flattened JSON) converter";
|
|
homepage = "https://github.com/adamritter/fastgron";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zowoq ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|