mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
c104495534
Diff: https://github.com/itchyny/gojq/compare/v0.12.13...v0.12.14 Changelog: https://github.com/itchyny/gojq/blob/v0.12.14/CHANGELOG.md
31 lines
772 B
Nix
31 lines
772 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gojq";
|
|
version = "0.12.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "itchyny";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-mgmgOi3nMPwmcofEAVIN9nTE2oXnNN89lqT+Vi+sjzY=";
|
|
};
|
|
|
|
vendorHash = "sha256-dv4k2dIFnlJrGDTDM4mXBOpr4MF7oxms0y02ml50YyY=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = gojq;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Pure Go implementation of jq";
|
|
homepage = "https://github.com/itchyny/gojq";
|
|
changelog = "https://github.com/itchyny/gojq/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
mainProgram = "gojq";
|
|
};
|
|
}
|