587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
31 lines
878 B
Nix
31 lines
878 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, curl, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fastgron";
|
|
version = "0.7.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamritter";
|
|
repo = "fastgron";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-dAfFSQ/UbAovQQr5AnCsyQtq1JkdQjvlG/SbuFnTx0E=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "fastgron";
|
|
homepage = "https://github.com/adamritter/fastgron";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zowoq ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|