nixpkgs/pkgs/development/libraries/openbsm/default.nix
Matthew Bauer 4d9a4aa3f1 openbsm: don’t check for /usr/include/mach/audit_triggers.defs
Users with CLT installed in /usr/include have this, but it we don’t
have all of the headers needed in the stdenv.

Fixes #46429
2019-06-22 12:06:47 -04:00

25 lines
697 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 ];
configureFlags = [ "ac_cv_file__usr_include_mach_audit_triggers_defs=no" ];
meta = {
homepage = http://www.openbsm.org/;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ matthewbauer ];
license = lib.licenses.bsd2;
};
}