2015-06-01 19:35:08 +00:00
|
|
|
{ stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex, audit }:
|
2011-03-27 04:46:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "libsemanage-${version}";
|
2014-08-14 15:55:12 +00:00
|
|
|
version = "2.3";
|
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";
|
2014-08-14 15:55:12 +00:00
|
|
|
sha256 = "0jrf66df80mvjhrsbxcnb60j69pg4dh2pydy8vj8dhhiwqsrxq03";
|
2011-03-27 04:46:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out) DESTDIR=$(out)";
|
|
|
|
|
2013-02-24 12:25:53 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
|
|
|
NIX_CFLAGS_LINK = "-lsepol";
|
|
|
|
|
2015-06-01 19:35:08 +00:00
|
|
|
buildInputs = [ libsepol libselinux ustr bzip2 bison flex audit ];
|
2011-03-27 04:46:12 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-02-24 12:25:53 +00:00
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
2011-03-27 04:46:12 +00:00
|
|
|
description = "Policy management tools for SELinux";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|