summary refs log tree commit diff
path: root/pkgs/tools/admin/procs
diff options
context:
space:
mode:
authorJamie Quigley <jamie@quigley.xyz>2022-05-30 13:12:40 +0100
committerJamie Quigley <jamie@quigley.xyz>2022-05-30 17:44:29 +0100
commit80d6f179b9672dea9b0ac05444a26dbfffdf3c55 (patch)
treec1a5329fb0c7f871aedf776d877c592fb0745a61 /pkgs/tools/admin/procs
parent90ce1f86b9bec2f468fd82316d12b1f9d24397d7 (diff)
procs: unbreak on aarch64-darwin
Sandbox build requires manually specifying LIBCLANG_PATH

x86_64-darwin build is still broken - complains about libproc
`proc_pid_usage`
Diffstat (limited to 'pkgs/tools/admin/procs')
-rw-r--r--pkgs/tools/admin/procs/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/admin/procs/default.nix b/pkgs/tools/admin/procs/default.nix
index 50d527a75ac60..6f907badde2e1 100644
--- a/pkgs/tools/admin/procs/default.nix
+++ b/pkgs/tools/admin/procs/default.nix
@@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ installShellFiles ];
 
+  LIBCLANG_PATH = lib.optionals stdenv.isDarwin "${stdenv.cc.cc.lib}/lib/";
+
   postInstall = ''
     for shell in bash fish zsh; do
       $out/bin/procs --completion $shell
@@ -29,8 +31,7 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/dalance/procs";
     changelog = "https://github.com/dalance/procs/raw/v${version}/CHANGELOG.md";
     license = licenses.mit;
-    maintainers = with maintainers; [ Br1ght0ne SuperSandro2000 ];
-    #   thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.dylib'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /private/tmp/nix-build-procs-0.12.3.drv-0/procs-0.12.3-vendor.tar.gz/bindgen/src/lib.rs:2144:31
-    broken = stdenv.isDarwin;
+    maintainers = with maintainers; [ Br1ght0ne SuperSandro2000 sciencentistguy ];
+    broken = stdenv.isDarwin && stdenv.isx86_64;
   };
 }