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