Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildGoModule 4, fetchFromGitHub 5}: 6 7buildGoModule rec { 8 pname = "adreaper"; 9 version = "1.1"; 10 11 src = fetchFromGitHub { 12 owner = "AidenPearce369"; 13 repo = "ADReaper"; 14 rev = "ADReaperv${version}"; 15 sha256 = "sha256-+FCb5TV9MUcRyex2M4rn2RhcIsXQFbtm1T4r7MpcRQs="; 16 }; 17 18 vendorSha256 = "sha256-lU39kj/uz0l7Rodsu6+UMv2o579eu1KUbutUNZni7bM="; 19 20 postInstall = lib.optionalString (!stdenv.isDarwin) '' 21 mv $out/bin/ADReaper $out/bin/$pname 22 ''; 23 24 meta = with lib; { 25 description = "Enumeration tool for Windows Active Directories"; 26 homepage = "https://github.com/AidenPearce369/ADReaper"; 27 # Upstream doesn't have a license yet 28 # https://github.com/AidenPearce369/ADReaper/issues/2 29 license = with licenses; [ unfree ]; 30 maintainers = with maintainers; [ fab ]; 31 mainProgram = "ADReaper"; 32 }; 33}