Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 30 lines 706 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "xc"; 5 version = "0.8.0"; 6 7 src = fetchFromGitHub { 8 owner = "joerdav"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-vTyCS85xbJnAgbasWD6LFxij9EezzlJ1pyvCJptqmOU="; 12 }; 13 14 vendorHash = "sha256-EbIuktQ2rExa2DawyCamTrKRC1yXXMleRB8/pcKFY5c="; 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 mainProgram = "xc"; 25 homepage = "https://xcfile.dev/"; 26 changelog = "https://github.com/joerdav/xc/releases/tag/${src.rev}"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ figsoda joerdav ]; 29 }; 30}