Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 38 lines 854 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule rec { 8 pname = "subjs"; 9 version = "1.0.1"; 10 11 src = fetchFromGitHub { 12 owner = "lc"; 13 repo = "subjs"; 14 rev = "v${version}"; 15 hash = "sha256-csxFn3YUnuYjZ5/4jIi7DfuujB/gFjHogLaV4XK5kQU="; 16 }; 17 18 vendorHash = "sha256-Ibsgi2MYvs12E1NJgshAD/S5GTJgLl7C+smfvS+aAfg="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X main.AppVersion=${version}" 24 ]; 25 26 meta = with lib; { 27 description = "Fetcher for Javascript files"; 28 mainProgram = "subjs"; 29 longDescription = '' 30 subjs fetches Javascript files from a list of URLs or subdomains. 31 Analyzing Javascript files can help you find undocumented endpoints, 32 secrets and more. 33 ''; 34 homepage = "https://github.com/lc/subjs"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}