depot/third_party/nixpkgs/pkgs/development/tools/jid/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
788 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, jid }:
buildGoModule rec {
pname = "jid";
version = "0.7.6";
src = fetchFromGitHub {
owner = "simeji";
repo = "jid";
rev = "v${version}";
hash = "sha256-fZzEbVNGsDNQ/FhII+meQvKeyrgxn3wtFW8VfNmJz5U=";
};
vendorHash = "sha256-Lq8ouTjPsGhqDwrCMpqkSU7FEGszYwAkwl92vAEZ68w=";
patches = [
# Run go mod tidy
./go-mod.patch
];
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
package = jid;
version = "v${version}";
};
meta = {
description = "Command-line tool to incrementally drill down JSON";
mainProgram = "jid";
homepage = "https://github.com/simeji/jid";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ stesie ];
};
}