2015-07-31 20:40:46 +01:00
|
|
|
{ stdenv, fetchurl, bison, flex, libsepol }:
|
2011-03-27 05:45:46 +01:00
|
|
|
|
2015-07-31 20:40:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-03-27 05:45:46 +01:00
|
|
|
name = "checkpolicy-${version}";
|
2018-03-14 19:17:04 +00:00
|
|
|
version = "2.7";
|
2013-02-24 12:25:53 +00:00
|
|
|
inherit (libsepol) se_release se_url;
|
2011-03-27 05:45:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-24 12:25:53 +00:00
|
|
|
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
2018-03-14 19:17:04 +00:00
|
|
|
sha256 = "009j9jc0hi4l7k8f21hn8fm25n0mqgzdpd4nk30nds6d3nglf4sl";
|
2011-03-27 05:45:46 +01:00
|
|
|
};
|
|
|
|
|
2015-07-31 20:40:46 +01:00
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ libsepol ];
|
|
|
|
|
2018-06-21 10:40:31 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
|
|
|
|
];
|
2011-03-27 05:45:46 +01:00
|
|
|
|
2015-07-31 20:40:46 +01:00
|
|
|
meta = libsepol.meta // {
|
2011-03-27 05:45:46 +01:00
|
|
|
description = "SELinux policy compiler";
|
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|