mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
080b2fdd8c
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
24 lines
618 B
Nix
24 lines
618 B
Nix
{ stdenv, fetchFromGitHub, lib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openbsm";
|
|
name = "${pname}-${version}";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "${lib.toUpper (builtins.replaceStrings ["." "-"] ["_" "_"] name)}";
|
|
sha256 = "0b98359hd8mm585sh145ss828pg2y8vgz38lqrb7nypapiyqdnd1";
|
|
};
|
|
|
|
patches = lib.optional stdenv.isDarwin [ ./bsm-add-audit_token_to_pid.patch ];
|
|
|
|
meta = {
|
|
homepage = http://www.openbsm.org/;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ matthewbauer ];
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|