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";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.6";
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit (libsepol) se_url;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "${se_url}/${version}/checkpolicy-${version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-GzRrPN1PinihV2J7rWSjs0ecZ7ahnRXm1chpRiDq28E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|