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