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

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

36 lines
790 B
Nix
Raw Normal View History

2023-02-28 07:38:40 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, jid }:
2018-11-19 08:36:09 +00:00
2023-02-28 07:38:40 +00:00
buildGoModule rec {
pname = "jid";
2020-04-27 21:05:48 +00:00
version = "0.7.6";
2018-11-19 08:36:09 +00:00
src = fetchFromGitHub {
owner = "simeji";
repo = "jid";
2020-04-27 21:05:48 +00:00
rev = "v${version}";
2023-02-28 07:38:40 +00:00
hash = "sha256-fZzEbVNGsDNQ/FhII+meQvKeyrgxn3wtFW8VfNmJz5U=";
2018-11-19 08:36:09 +00:00
};
2023-02-28 07:38:40 +00:00
vendorHash = "sha256-Lq8ouTjPsGhqDwrCMpqkSU7FEGszYwAkwl92vAEZ68w=";
patches = [
# Run go mod tidy
./go-mod.patch
];
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
package = jid;
version = "v${version}";
};
2018-11-19 08:36:09 +00:00
meta = {
description = "A 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 ];
2018-11-19 08:36:09 +00:00
};
}