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

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

30 lines
746 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
2022-03-01 03:50:03 +00:00
buildGoModule rec {
pname = "gojq";
2023-06-06 06:00:22 +00:00
version = "0.12.13";
2022-03-01 03:50:03 +00:00
src = fetchFromGitHub {
owner = "itchyny";
repo = pname;
rev = "v${version}";
2023-06-06 06:00:22 +00:00
hash = "sha256-tlnj0CCsPZRQjIZCvNPjN0JD6oqRDvdWOCYR3tYMPUA=";
2022-03-01 03:50:03 +00:00
};
2023-06-06 06:00:22 +00:00
vendorHash = "sha256-DVJZ35C+6SuhaaGDM3u+3fB1497qaW6oTByAUPVwhJI=";
2022-03-01 03:50:03 +00:00
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
2022-03-01 03:50:03 +00:00
package = gojq;
};
meta = with lib; {
description = "Pure Go implementation of jq";
homepage = "https://github.com/itchyny/gojq";
2023-03-03 12:17:35 +00:00
changelog = "https://github.com/itchyny/gojq/blob/v${version}/CHANGELOG.md";
2022-03-01 03:50:03 +00:00
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
};
}