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}";
|
2013-11-28 09:58:06 +01:00
|
|
|
version = "2.2";
|
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";
|
2013-11-28 09:58:06 +01:00
|
|
|
sha256 = "0xdx0dwcsyw4kv9l6xwdkfg6v7fc9b5y176rkg6n6q0w1zx0pxhi";
|
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
|
|
|
}
|