2011-03-27 05:46:12 +01:00
|
|
|
{ stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "libsemanage-${version}";
|
2013-02-24 12:25:53 +00:00
|
|
|
version = "2.1.9";
|
|
|
|
inherit (libsepol) se_release se_url;
|
2011-03-27 05:46:12 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-24 12:25:53 +00:00
|
|
|
url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
|
|
|
|
sha256 = "1k1my3n1pj30c5887spykcdk1brgxfpxmrz6frxjyhaijxzx20bg";
|
2011-03-27 05:46:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out) DESTDIR=$(out)";
|
|
|
|
|
2013-02-24 12:25:53 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
|
|
|
NIX_CFLAGS_LINK = "-lsepol";
|
|
|
|
|
2011-03-27 05:46:12 +01:00
|
|
|
buildInputs = [ libsepol libselinux ustr bzip2 bison flex ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-02-24 12:25:53 +00:00
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
2011-03-27 05:46:12 +01:00
|
|
|
description = "Policy management tools for SELinux";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|