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

28 lines
753 B
Nix
Raw Normal View History

2015-07-31 19:40:31 +00:00
{ stdenv, fetchurl, bison, flex, libsepol, libselinux, ustr, bzip2, libaudit }:
2015-07-31 19:40:31 +00:00
stdenv.mkDerivation rec {
name = "libsemanage-${version}";
2015-07-31 19:40:31 +00:00
version = "2.4";
inherit (libsepol) se_release se_url;
src = fetchurl {
url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
2015-07-31 19:40:31 +00:00
sha256 = "1134ka4mi4387ac5yv68bpp2y7ln5xxhwp07xhqnay0nxzjaqk0s";
};
2015-07-31 19:40:31 +00:00
nativeBuildInputs = [ bison flex ];
buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
2015-07-31 20:02:41 +00:00
NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
2015-07-31 19:40:31 +00:00
preBuild = ''
makeFlagsArray+=("PREFIX=$out")
makeFlagsArray+=("DESTDIR=$out")
'';
2015-07-31 19:40:31 +00:00
meta = libsepol.meta // {
description = "Policy management tools for SELinux";
2015-07-31 19:40:31 +00:00
license = stdenv.lib.licenses.lgpl21;
};
}