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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "jid";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/simeji/jid";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ stesie ];
|
2018-11-19 08:36:09 +00:00
|
|
|
};
|
|
|
|
}
|