diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-09-10 13:00:00 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-09-10 13:00:00 +0200 |
commit | 080b2fdd8c756f9784ab0940f256ef65c3e444fa (patch) | |
tree | bcc1127ac5795de9e27a01ac57bded6c02d58cc8 /pkgs/development/libraries/openbsm | |
parent | 6d6cbd316d5f5c12c002c86b919d1f923b0d87fe (diff) |
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
Diffstat (limited to 'pkgs/development/libraries/openbsm')
-rw-r--r-- | pkgs/development/libraries/openbsm/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/openbsm/default.nix b/pkgs/development/libraries/openbsm/default.nix index a9559c6abfbac..1366654252808 100644 --- a/pkgs/development/libraries/openbsm/default.nix +++ b/pkgs/development/libraries/openbsm/default.nix @@ -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/; |