mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
openbsm: fix linux build
See https://hydra.nixos.org/build/80705916 To fix the linux build the patch `bsm-add-audit_token_to_pid.patch` mustn't be applied during Linux builds, only for Darwin as it's an Apple-only fix. The compiler failure occurred because `audit_token_t` is part of `<mach/mach.h>` which is not available on Linux. Addresses #45960
This commit is contained in:
parent
6d6cbd316d
commit
080b2fdd8c
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0b98359hd8mm585sh145ss828pg2y8vgz38lqrb7nypapiyqdnd1";
|
||||
};
|
||||
|
||||
patches = [ ./bsm-add-audit_token_to_pid.patch ];
|
||||
patches = lib.optional stdenv.isDarwin [ ./bsm-add-audit_token_to_pid.patch ];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.openbsm.org/;
|
||||
|
Loading…
Reference in New Issue
Block a user