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

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

35 lines
765 B
Nix
Raw Normal View History

2023-02-28 08:38:40 +01:00
{ lib, buildGoModule, fetchFromGitHub, testers, jid }:
2018-11-19 09:36:09 +01:00
2023-02-28 08:38:40 +01:00
buildGoModule rec {
pname = "jid";
2020-04-27 23:05:48 +02:00
version = "0.7.6";
2018-11-19 09:36:09 +01:00
src = fetchFromGitHub {
owner = "simeji";
repo = "jid";
2020-04-27 23:05:48 +02:00
rev = "v${version}";
2023-02-28 08:38:40 +01:00
hash = "sha256-fZzEbVNGsDNQ/FhII+meQvKeyrgxn3wtFW8VfNmJz5U=";
2018-11-19 09:36:09 +01:00
};
2023-02-28 08:38:40 +01: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 09:36:09 +01:00
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 ];
2018-11-19 09:36:09 +01:00
};
}