lol

gau: refactor

+11 -6
+11 -6
pkgs/tools/security/gau/default.nix
··· 1 - { buildGoModule 1 + { lib 2 + , buildGoModule 2 3 , fetchFromGitHub 3 - , lib 4 4 }: 5 5 6 6 buildGoModule rec { ··· 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "lc"; 12 - repo = pname; 13 - rev = "v${version}"; 14 - sha256 = "sha256-1sF33uat6nwtTaXbZzO8YF4jewyQJ6HvI2l/zyTrJsg="; 12 + repo = "gau"; 13 + rev = "refs/tags/v${version}"; 14 + hash = "sha256-1sF33uat6nwtTaXbZzO8YF4jewyQJ6HvI2l/zyTrJsg="; 15 15 }; 16 16 17 17 vendorHash = "sha256-nhsGhuX5AJMHg+zQUt1G1TwVgMCxnuJ2T3uBrx7bJNs="; 18 18 19 + ldflags = [ 20 + "-w" 21 + "-s" 22 + ]; 23 + 19 24 meta = with lib; { 20 25 description = "Tool to fetch known URLs"; 21 - mainProgram = "gau"; 22 26 longDescription = '' 23 27 getallurls (gau) fetches known URLs from various sources for any 24 28 given domain. ··· 26 30 homepage = "https://github.com/lc/gau"; 27 31 license = licenses.mit; 28 32 maintainers = with maintainers; [ fab ]; 33 + mainProgram = "gau"; 29 34 }; 30 35 }