Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "awsweeper"; 5 version = "0.12.0"; 6 7 src = fetchFromGitHub { 8 owner = "jckuester"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-5D/4Z8ADlA+4+2EINmP5OfX5exzhfbq2TydPRlJDA6Y="; 12 }; 13 14 vendorSha256 = "sha256-jzK56x5mzQkD3tSs6X0Z2Zn1OLXFHgWHz0YLZ3m3NS4="; 15 16 ldflags = [ "-s" "-w" "-X github.com/jckuester/awsweeper/internal.version=${version}" "-X github.com/jckuester/awsweeper/internal.commit=${src.rev}" "-X github.com/jckuester/awsweeper/internal.date=unknown" ]; 17 18 doCheck = false; 19 20 meta = with lib; { 21 description = "A tool to clean out your AWS account"; 22 homepage = "https://github.com/jckuester/awsweeper"; 23 license = licenses.mpl20; 24 maintainers = [ maintainers.marsam ]; 25 }; 26}