Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 856 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "go-jsonnet"; 10 version = "0.21.0"; 11 12 src = fetchFromGitHub { 13 owner = "google"; 14 repo = "go-jsonnet"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-J92xNDpCidbiSsN6NveS6BX6Tx+qDQqkgm6pjk1wBTQ="; 17 }; 18 19 vendorHash = "sha256-Uh2rAXdye9QmmZuEqx1qeokE9Z9domyHsSFlU7YZsZw="; 20 21 subPackages = [ "cmd/jsonnet*" ]; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 ]; 27 28 passthru.tests.version = testers.testVersion { 29 package = finalAttrs.finalPackage; 30 version = "v${finalAttrs.version}"; 31 }; 32 33 meta = { 34 description = "Implementation of Jsonnet in pure Go"; 35 homepage = "https://github.com/google/go-jsonnet"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ 38 nshalman 39 ]; 40 mainProgram = "jsonnet"; 41 }; 42})