2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchurl, bison, flex, libsepol }:
|
2011-03-27 04:45:46 +00:00
|
|
|
|
2015-07-31 19:40:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "checkpolicy";
|
2021-11-12 09:20:45 +00:00
|
|
|
version = "3.3";
|
|
|
|
inherit (libsepol) se_url;
|
2011-03-27 04:45:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-12 09:20:45 +00:00
|
|
|
url = "${se_url}/${version}/checkpolicy-${version}.tar.gz";
|
|
|
|
sha256 = "118l8c2vvnnckbd269saslr7adv6rdavr5rv0z5vh2m1lgglxj15";
|
2011-03-27 04:45:46 +00:00
|
|
|
};
|
|
|
|
|
2015-07-31 19:40:46 +00:00
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ libsepol ];
|
|
|
|
|
2018-06-21 09:40:31 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
2021-01-15 14:45:37 +00:00
|
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
2018-06-21 09:40:31 +00:00
|
|
|
];
|
2011-03-27 04:45:46 +00:00
|
|
|
|
2018-07-29 18:22:17 +00:00
|
|
|
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
|
2011-03-27 04:45:46 +00:00
|
|
|
description = "SELinux policy compiler";
|
|
|
|
};
|
2013-02-24 12:25:53 +00:00
|
|
|
}
|