about summary refs log tree commit diff
path: root/pkgs/tools/security/feroxbuster
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-23 16:15:03 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-23 16:15:03 +0100
commit53e77529abb32ae6498e64bef6f8a08d6b84bdb0 (patch)
tree6e3056e9f6203258f73b19f3c33958cfc3345f59 /pkgs/tools/security/feroxbuster
parent338bf0b32595915b44f36d7257b0d868daad0e7a (diff)
feroxbuster: fix build on aarch64-linux
Diffstat (limited to 'pkgs/tools/security/feroxbuster')
-rw-r--r--pkgs/tools/security/feroxbuster/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/security/feroxbuster/default.nix b/pkgs/tools/security/feroxbuster/default.nix
index a66991b14d235..6a1c08e99d768 100644
--- a/pkgs/tools/security/feroxbuster/default.nix
+++ b/pkgs/tools/security/feroxbuster/default.nix
@@ -18,6 +18,11 @@ rustPlatform.buildRustPackage rec {
     hash = "sha256-B6FeY5pWW5+y/0HlVedkm8ol2z9GXgEYe5j7/uMhqsw=";
   };
 
+  # disable linker overrides on aarch64-linux
+  postPatch = ''
+    rm .cargo/config
+  '';
+
   cargoSha256 = "sha256-OFgt8yu2wlvkP/wjlmRRl8UyD9MUx9/0Rcs6K8jLkjo=";
 
   OPENSSL_NO_VENDOR = true;
@@ -40,8 +45,7 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/epi052/feroxbuster";
     license = with licenses; [ mit ];
     maintainers = with maintainers; [ fab ];
-    # never built on aarch64-linux since first introduction in nixpkgs
-    broken = stdenv.isLinux && stdenv.isAarch64;
+    platforms = platforms.unix;
   };
 }