Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule, lib, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "impl"; 5 version = "1.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "josharian"; 9 repo = "impl"; 10 rev = "v${version}"; 11 sha256 = "sha256-OztQR1NusP7/FTm5kmuSSi1AC47DJFki7vVlPQIl6+8="; 12 }; 13 14 vendorSha256 = "sha256-+5+CM5iGV54zRa7rJoQDBWrO98icNxlAv8JwATynanY="; 15 16 preCheck = '' 17 export GOROOT="$(go env GOROOT)" 18 ''; 19 20 meta = with lib; { 21 description = "Generate method stubs for implementing an interface"; 22 homepage = "https://github.com/josharian/impl"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ kalbasit ]; 25 }; 26}