Skip to content

Commit

Permalink
openbsm: fix linux build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ma27 committed Sep 10, 2018
1 parent 6d6cbd3 commit 080b2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/openbsm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/;
Expand Down

0 comments on commit 080b2fd

Please sign in to comment.