Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "xc"; 5 version = "0.4.1"; 6 7 src = fetchFromGitHub { 8 owner = "joerdav"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-Dc7MVn9hF2HtXqMvWQ5UsLQW5ZKcFKt7AHcXdiWDs1I="; 12 }; 13 14 vendorHash = "sha256-hCdIO377LiXFKz0GfCmAADTPfoatk8YWzki7lVP3yLw="; 15 16 ldflags = [ 17 "-s" 18 "-w" 19 "-X=main.version=${version}" 20 ]; 21 22 meta = with lib; { 23 description = "Markdown defined task runner"; 24 homepage = "https://xcfile.dev/"; 25 changelog = "https://github.com/joerdav/xc/releases/tag/${src.rev}"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ figsoda joerdav ]; 28 }; 29}