Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

+1 -1
+1 -1
pkgs/development/libraries/openbsm/default.nix
··· 12 12 sha256 = "0b98359hd8mm585sh145ss828pg2y8vgz38lqrb7nypapiyqdnd1"; 13 13 }; 14 14 15 - patches = [ ./bsm-add-audit_token_to_pid.patch ]; 15 + patches = lib.optional stdenv.isDarwin [ ./bsm-add-audit_token_to_pid.patch ]; 16 16 17 17 meta = { 18 18 homepage = http://www.openbsm.org/;