1 { stdenv, fetchFromGitHub, lib }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = lib.toUpper (builtins.replaceStrings ["." "-"] ["_" "_"] "${pname}-${version}");
11 sha256 = "0b98359hd8mm585sh145ss828pg2y8vgz38lqrb7nypapiyqdnd1";
14 patches = lib.optional stdenv.isDarwin [ ./bsm-add-audit_token_to_pid.patch ];
16 configureFlags = [ "ac_cv_file__usr_include_mach_audit_triggers_defs=no" ];
19 description = "An implementation of Sun's Basic Security Module (BSM) security audit API and file format";
20 homepage = "http://www.openbsm.org/";
21 platforms = lib.platforms.unix;
22 maintainers = with lib.maintainers; [ matthewbauer ];
23 license = lib.licenses.bsd2;