2011-03-27 04:45:46 +00:00
|
|
|
{ stdenv, fetchurl, libsepol, libselinux, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "checkpolicy-${version}";
|
2013-02-24 12:25:53 +00:00
|
|
|
version = "2.1.11";
|
|
|
|
inherit (libsepol) se_release se_url;
|
2011-03-27 04:45:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-24 12:25:53 +00:00
|
|
|
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
|
|
|
sha256 = "1wahs32l4jjlg0s3lyihdhvwmsy7yyvq5pk96q9lsiilc5vvrb06";
|
2011-03-27 04:45:46 +00: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 12:25:53 +00:00
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
2011-03-27 04:45:46 +00:00
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|