depot/third_party/nixpkgs/pkgs/development/tools/jid/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

34 lines
765 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 = "A command-line tool to incrementally drill down JSON";
homepage = "https://github.com/simeji/jid";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ stesie ];
};
}