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

25 lines
601 B
Nix
Raw Normal View History

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