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

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

29 lines
665 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
2022-03-01 04:50:03 +01:00
buildGoModule rec {
pname = "gojq";
2023-03-02 23:38:41 +01:00
version = "0.12.12";
2022-03-01 04:50:03 +01:00
src = fetchFromGitHub {
owner = "itchyny";
repo = pname;
rev = "v${version}";
2023-03-02 23:38:41 +01:00
hash = "sha256-axiIHy6vNs0ySVP4UnYZ9J+GeAOz3LJ9vOP1xT4dcME=";
2022-03-01 04:50:03 +01:00
};
2023-03-02 23:38:41 +01:00
vendorHash = "sha256-kHwCh/6yaPaFce5k3NgAQ1GsoVmvmfIJujVaMwqrLBM=";
2022-03-01 04:50:03 +01:00
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
2022-03-01 04:50:03 +01:00
package = gojq;
};
meta = with lib; {
description = "Pure Go implementation of jq";
homepage = "https://github.com/itchyny/gojq";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
};
}