Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 34 lines 765 B view raw
1{ lib, buildGoModule, fetchFromGitHub, testers, jid }: 2 3buildGoModule rec { 4 pname = "jid"; 5 version = "0.7.6"; 6 7 src = fetchFromGitHub { 8 owner = "simeji"; 9 repo = "jid"; 10 rev = "v${version}"; 11 hash = "sha256-fZzEbVNGsDNQ/FhII+meQvKeyrgxn3wtFW8VfNmJz5U="; 12 }; 13 14 vendorHash = "sha256-Lq8ouTjPsGhqDwrCMpqkSU7FEGszYwAkwl92vAEZ68w="; 15 16 patches = [ 17 # Run go mod tidy 18 ./go-mod.patch 19 ]; 20 21 ldflags = [ "-s" "-w" ]; 22 23 passthru.tests.version = testers.testVersion { 24 package = jid; 25 version = "v${version}"; 26 }; 27 28 meta = { 29 description = "A command-line tool to incrementally drill down JSON"; 30 homepage = "https://github.com/simeji/jid"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ stesie ]; 33 }; 34}