checkpolicy: 2.3 -> 2.4
This commit is contained in:
parent
b18a354c88
commit
0b191e565b
|
@ -1,25 +1,30 @@
|
|||
{ stdenv, fetchurl, libsepol, libselinux, bison, flex }:
|
||||
stdenv.mkDerivation rec {
|
||||
{ stdenv, fetchurl, bison, flex, libsepol }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "checkpolicy-${version}";
|
||||
version = "2.3";
|
||||
version = "2.4";
|
||||
inherit (libsepol) se_release se_url;
|
||||
|
||||
src = fetchurl {
|
||||
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
||||
sha256 = "0yr0r2cxz9lbj7i0wqgcd4wjvc6zf1fmqk0xjybnkdpcmw8jsqwh";
|
||||
sha256 = "1m5wjm43lzp6bld8higsvdm2dkddydihhwv9qw2w9r4dm0largcv";
|
||||
};
|
||||
|
||||
buildInputs = [ libsepol libselinux bison flex ];
|
||||
nativeBuildInputs = [ bison flex ];
|
||||
buildInputs = [ libsepol ];
|
||||
|
||||
preBuild = ''
|
||||
makeFlags="$makeFlags LEX=flex LIBDIR=${libsepol}/lib PREFIX=$out"
|
||||
sed -e 's@[.]o$@& ../lex.yy.o@' -i test/Makefile
|
||||
# Don't build tests
|
||||
postPatch = ''
|
||||
sed -i '/-C test/d' Makefile
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
preBuild = ''
|
||||
makeFlagsArray+=("LEX=flex")
|
||||
makeFlagsArray+=("LIBDIR=${libsepol}/lib")
|
||||
makeFlagsArray+=("PREFIX=$out")
|
||||
'';
|
||||
|
||||
meta = libsepol.meta // {
|
||||
description = "SELinux policy compiler";
|
||||
license = licenses.gpl2;
|
||||
inherit (libsepol.meta) homepage platforms maintainers;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue