2013-11-28 09:58:06 +01:00
|
|
|
{ stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex, audit }:
|
2011-03-27 06:46:12 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "libsemanage-${version}";
|
2014-08-14 17:55:12 +02:00
|
|
|
version = "2.3";
|
2013-02-24 13:25:53 +01:00
|
|
|
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";
|
2014-08-14 17:55:12 +02:00
|
|
|
sha256 = "0jrf66df80mvjhrsbxcnb60j69pg4dh2pydy8vj8dhhiwqsrxq03";
|
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";
|
|
|
|
|
2013-11-28 09:58:06 +01:00
|
|
|
buildInputs = [ libsepol libselinux ustr bzip2 bison flex audit ];
|
2011-03-27 06:46:12 +02:00
|
|
|
|
|
|
|
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
|
|
|
}
|