mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
788 B
Nix
35 lines
788 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 = "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 ];
|
|
};
|
|
}
|