Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / gojq / default.nix
blobb2d80e1916dc05859bb534fc58e806040a3d0a1b
1 { lib, buildGoModule, fetchFromGitHub, testers, gojq }:
3 buildGoModule rec {
4   pname = "gojq";
5   version = "0.12.13";
7   src = fetchFromGitHub {
8     owner = "itchyny";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-tlnj0CCsPZRQjIZCvNPjN0JD6oqRDvdWOCYR3tYMPUA=";
12   };
14   vendorHash = "sha256-DVJZ35C+6SuhaaGDM3u+3fB1497qaW6oTByAUPVwhJI=";
16   ldflags = [ "-s" "-w" ];
18   passthru.tests.version = testers.testVersion {
19     package = gojq;
20   };
22   meta = with lib; {
23     description = "Pure Go implementation of jq";
24     homepage = "https://github.com/itchyny/gojq";
25     changelog = "https://github.com/itchyny/gojq/blob/v${version}/CHANGELOG.md";
26     license = licenses.mit;
27     maintainers = with maintainers; [ aaronjheng ];
28     mainProgram = "gojq";
29   };