3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/checkpolicy/default.nix

25 lines
580 B
Nix
Raw Normal View History

2015-07-31 20:40:46 +01:00
{ stdenv, fetchurl, bison, flex, libsepol }:
2015-07-31 20:40:46 +01: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 20:40:46 +01:00
nativeBuildInputs = [ bison flex ];
buildInputs = [ libsepol ];
2018-06-21 10:40:31 +01:00
makeFlags = [
"PREFIX=$(out)"
"LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
];
2015-07-31 20:40:46 +01:00
meta = libsepol.meta // {
description = "SELinux policy compiler";
};
}