2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bison, flex, libsepol }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "checkpolicy";
|
|
|
|
version = "2.9";
|
|
|
|
inherit (libsepol) se_release se_url;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
|
|
|
sha256 = "13jz6f8zdrijvn5w1j102b36fs41z0q8ii74axw48cj550mw6im9";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ libsepol ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
2021-02-05 17:12:51 +00:00
|
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
|
|
|
|
description = "SELinux policy compiler";
|
|
|
|
};
|
|
|
|
}
|