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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.3";
|
|
|
|
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";
|
|
|
|
sha256 = "118l8c2vvnnckbd269saslr7adv6rdavr5rv0z5vh2m1lgglxj15";
|
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";
|
|
|
|
};
|
|
|
|
}
|