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