2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, flex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsepol";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "3.0";
|
|
|
|
se_release = "20191204";
|
2020-04-24 23:36:52 +00:00
|
|
|
se_url = "https://github.com/SELinuxProject/selinux/releases/download";
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${se_url}/${se_release}/libsepol-${version}.tar.gz";
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "0ygb6dh5lng91xs6xiqf5v0nxa68qmjc787p0s5h9w89364f2yjv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flex ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"BINDIR=$(bin)/bin"
|
|
|
|
"INCDIR=$(dev)/include/sepol"
|
|
|
|
"INCLUDEDIR=$(dev)/include"
|
|
|
|
"MAN3DIR=$(man)/share/man/man3"
|
|
|
|
"MAN8DIR=$(man)/share/man/man8"
|
|
|
|
"SHLIBDIR=$(out)/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
|
|
|
passthru = { inherit se_release se_url; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SELinux binary policy manipulation library";
|
|
|
|
homepage = "http://userspace.selinuxproject.org";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|