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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
848 B
Nix
Raw Normal View History

2023-07-01 10:16:08 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, curl, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "fastgron";
version = "0.7.7";
2023-07-01 10:16:08 +00:00
src = fetchFromGitHub {
owner = "adamritter";
repo = "fastgron";
rev = "v${finalAttrs.version}";
hash = "sha256-dAfFSQ/UbAovQQr5AnCsyQtq1JkdQjvlG/SbuFnTx0E=";
2023-07-01 10:16:08 +00:00
};
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;
};
})