2011-03-27 06:45:46 +02:00
|
|
|
{ stdenv, fetchurl, libsepol, libselinux, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "checkpolicy-${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:45:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-24 13:25:53 +01:00
|
|
|
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
2013-11-28 09:58:06 +01:00
|
|
|
sha256 = "1y5dx4s5k404fgpm7hlhgw8a9b9ksn3q2d3fj6f9rdac9n7nkxlz";
|
2011-03-27 06:45:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsepol libselinux bison flex ];
|
|
|
|
|
|
|
|
preBuild = '' makeFlags="$makeFlags LEX=flex LIBDIR=${libsepol}/lib PREFIX=$out" '';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SELinux policy compiler";
|
|
|
|
license = licenses.gpl2;
|
2013-02-24 13:25:53 +01:00
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
2014-08-09 11:41:59 +02:00
|
|
|
broken = true;
|
2011-03-27 06:45:46 +02:00
|
|
|
};
|
2013-02-24 13:25:53 +01:00
|
|
|
}
|