Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "expr"; 8 version = "1.15.3"; 9 10 src = fetchFromGitHub { 11 owner = "antonmedv"; 12 repo = "expr"; 13 rev = "v${version}"; 14 hash = "sha256-r+XlcDvCQarzh8wO3NL87PJThnioeVC73OZdJ8kW4RM="; 15 }; 16 17 sourceRoot = "${src.name}/repl"; 18 19 vendorHash = "sha256-WxYqP8L64U5MAYG7XTpKrRW1aaqGB4hJr+e/RKdb1lU="; 20 21 ldflags = [ "-s" "-w" ]; 22 23 postInstall = '' 24 mv $out/bin/{repl,expr} 25 ''; 26 27 meta = with lib; { 28 description = "Expression language and expression evaluation for Go"; 29 homepage = "https://github.com/antonmedv/expr"; 30 changelog = "https://github.com/antonmedv/expr/releases/tag/${src.rev}"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ figsoda ]; 33 mainProgram = "expr"; 34 }; 35}