2015-07-31 19:40:31 +00:00
|
|
|
{ stdenv, fetchurl, bison, flex, libsepol, libselinux, ustr, bzip2, libaudit }:
|
2011-03-27 04:46:12 +00:00
|
|
|
|
2015-07-31 19:40:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-03-27 04:46:12 +00:00
|
|
|
name = "libsemanage-${version}";
|
2015-07-31 19:40:31 +00:00
|
|
|
version = "2.4";
|
2013-02-24 12:25:53 +00:00
|
|
|
inherit (libsepol) se_release se_url;
|
2011-03-27 04:46:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-24 12:25:53 +00:00
|
|
|
url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
|
2015-07-31 19:40:31 +00:00
|
|
|
sha256 = "1134ka4mi4387ac5yv68bpp2y7ln5xxhwp07xhqnay0nxzjaqk0s";
|
2011-03-27 04:46:12 +00:00
|
|
|
};
|
|
|
|
|
2015-07-31 19:40:31 +00:00
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
|
2011-03-27 04:46:12 +00:00
|
|
|
|
2015-07-31 20:02:41 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
|
|
|
|
|
2015-07-31 19:40:31 +00:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=("PREFIX=$out")
|
|
|
|
makeFlagsArray+=("DESTDIR=$out")
|
|
|
|
'';
|
2013-02-24 12:25:53 +00:00
|
|
|
|
2015-07-31 19:40:31 +00:00
|
|
|
meta = libsepol.meta // {
|
2011-03-27 04:46:12 +00:00
|
|
|
description = "Policy management tools for SELinux";
|
2015-07-31 19:40:31 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2011-03-27 04:46:12 +00:00
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|