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

25 lines
580 B
Nix
Raw Normal View History

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