libsemanage: 2.3 -> 2.4

This commit is contained in:
William A. Kennington III 2015-07-31 12:40:31 -07:00
parent 0b191e565b
commit f23406c0e2

View File

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