evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / go / gojq / package.nix
blob8a573665b4b82aa37a1d0f6728f2cd23f74815f4
1 { lib, buildGoModule, fetchFromGitHub, testers, gojq }:
3 buildGoModule rec {
4   pname = "gojq";
5   version = "0.12.16";
7   src = fetchFromGitHub {
8     owner = "itchyny";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-lCNh0J0vVvSJaNE9fu3X83YRZlWHOI4rQwmrGJDQWzk=";
12   };
14   vendorHash = "sha256-ZC0byawZLBwId5GcAgHXRdEOMUSAv4wDNHFHLrbhB+I=";
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   };