nixpkgs/pkgs/os-specific/linux/libsemanage/default.nix
William A. Kennington III 7e126ac83e audit: 2.9.1 -> 2.9.2
2015-05-29 10:29:11 -07:00

26 lines
746 B
Nix

{ stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex, libaudit }:
stdenv.mkDerivation rec {
name = "libsemanage-${version}";
version = "2.3";
inherit (libsepol) se_release se_url;
src = fetchurl {
url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
sha256 = "0jrf66df80mvjhrsbxcnb60j69pg4dh2pydy8vj8dhhiwqsrxq03";
};
makeFlags = "PREFIX=$(out) DESTDIR=$(out)";
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
NIX_CFLAGS_LINK = "-lsepol";
buildInputs = [ libsepol libselinux ustr bzip2 bison flex libaudit ];
meta = with stdenv.lib; {
inherit (libsepol.meta) homepage platforms maintainers;
description = "Policy management tools for SELinux";
license = licenses.lgpl21;
};
}