diff --git a/pkgs/tools/security/feroxbuster/default.nix b/pkgs/by-name/fe/feroxbuster/package.nix similarity index 69% rename from pkgs/tools/security/feroxbuster/default.nix rename to pkgs/by-name/fe/feroxbuster/package.nix index 12cb7a90eafd..84d78838efbf 100644 --- a/pkgs/tools/security/feroxbuster/default.nix +++ b/pkgs/by-name/fe/feroxbuster/package.nix @@ -5,38 +5,29 @@ openssl, pkg-config, rustPlatform, - Security, - SystemConfiguration, nix-update-script, }: + rustPlatform.buildRustPackage rec { pname = "feroxbuster"; version = "2.11.0"; src = fetchFromGitHub { owner = "epi052"; - repo = pname; + repo = "feroxbuster"; tag = "v${version}"; hash = "sha256-/NgGlXYMxGxpX93SJ6gWgZW21cSSZsgo/WMvRuLw+Bw="; }; useFetchCargoVendor = true; + cargoHash = "sha256-L5s+P9eerv+O2vBUczGmn0rUMbHQtnF8hVa22wOrTGo="; OPENSSL_NO_VENDOR = true; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = - [ - openssl - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - Security - SystemConfiguration - ]; + buildInputs = [ openssl ]; # Tests require network access doCheck = false; @@ -44,10 +35,10 @@ rustPlatform.buildRustPackage rec { passthru.updateScript = nix-update-script { }; meta = with lib; { - description = "Fast, simple, recursive content discovery tool"; + description = "Recursive content discovery tool"; homepage = "https://github.com/epi052/feroxbuster"; - changelog = "https://github.com/epi052/feroxbuster/releases/tag/v${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/epi052/feroxbuster/releases/tag/v${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; platforms = platforms.unix; mainProgram = "feroxbuster"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 174a802f54fc..2da64b69d633 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3124,10 +3124,6 @@ with pkgs; featherpad = qt5.callPackage ../applications/editors/featherpad { }; - feroxbuster = callPackage ../tools/security/feroxbuster { - inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; - }; - ffsend = callPackage ../tools/misc/ffsend { inherit (darwin.apple_sdk.frameworks) Security AppKit; };