nixpkgs-suyu/pkgs/os-specific/linux/checkpolicy/default.nix

25 lines
603 B
Nix
Raw Normal View History

2015-07-31 21:40:46 +02:00
{ stdenv, fetchurl, bison, flex, libsepol }:
2015-07-31 21:40:46 +02:00
stdenv.mkDerivation rec {
pname = "checkpolicy";
2018-03-14 20:17:04 +01:00
version = "2.7";
inherit (libsepol) se_release se_url;
src = fetchurl {
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
2018-03-14 20:17:04 +01:00
sha256 = "009j9jc0hi4l7k8f21hn8fm25n0mqgzdpd4nk30nds6d3nglf4sl";
};
2015-07-31 21:40:46 +02:00
nativeBuildInputs = [ bison flex ];
buildInputs = [ libsepol ];
2018-06-21 11:40:31 +02:00
makeFlags = [
"PREFIX=$(out)"
"LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
];
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
description = "SELinux policy compiler";
};
}