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