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 {
|
2011-03-27 06:45:46 +02:00
|
|
|
name = "checkpolicy-${version}";
|
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 ];
|
|
|
|
|
2014-08-12 02:07:29 +02:00
|
|
|
preBuild = ''
|
2015-07-31 21:40:46 +02:00
|
|
|
makeFlagsArray+=("LIBDIR=${libsepol}/lib")
|
|
|
|
makeFlagsArray+=("PREFIX=$out")
|
2014-08-12 02:07:29 +02:00
|
|
|
'';
|
2011-03-27 06:45:46 +02:00
|
|
|
|
2015-07-31 21:40:46 +02:00
|
|
|
meta = libsepol.meta // {
|
2011-03-27 06:45:46 +02:00
|
|
|
description = "SELinux policy compiler";
|
|
|
|
};
|
2013-02-24 13:25:53 +01:00
|
|
|
}
|