mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
rbspy: fix build on darwin
This commit is contained in:
parent
45e9ca62cf
commit
4c6a35989a
@ -4,6 +4,8 @@
|
||||
, fetchFromGitHub
|
||||
, ruby
|
||||
, which
|
||||
, runCommand
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@ -39,6 +41,15 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ ruby which ];
|
||||
|
||||
buildInputs = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
|
||||
# Pull a header that contains a definition of proc_pid_rusage().
|
||||
(runCommand "${pname}_headers" { } ''
|
||||
install -Dm444 ${lib.getDev darwin.apple_sdk.sdk}/include/libproc.h $out/include/libproc.h
|
||||
'')
|
||||
];
|
||||
|
||||
LIBCLANG_PATH = lib.optionalString stdenv.isDarwin "${stdenv.cc.cc.lib}/lib";
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
homepage = "https://rbspy.github.io/";
|
||||
|
Loading…
Reference in New Issue
Block a user