libsepol: 2.3 -> 2.4
This commit is contained in:
parent
308da3054e
commit
ffa1782688
1 changed files with 8 additions and 9 deletions
|
@ -1,22 +1,21 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libsepol-${version}";
|
||||
version = "2.3";
|
||||
se_release = "20140506";
|
||||
version = "2.4";
|
||||
se_release = "20150202";
|
||||
se_url = "https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${se_url}/${se_release}/libsepol-${version}.tar.gz";
|
||||
sha256 = "13z6xakc2qqyhlvnc5h53jy7lqmh5b5cnpfn51lmvfdpqd18d3fc";
|
||||
sha256 = "0ncnwhpc1gx4hrrb822fqkwy5h75zzngsrfkd5mlqh1jk7aib419";
|
||||
};
|
||||
|
||||
preBuild = '' makeFlags="$makeFlags PREFIX=$out DESTDIR=$out" '';
|
||||
nativeBuildInputs = [ flex ];
|
||||
|
||||
# TODO: Figure out why the build incorrectly links libsepol.so
|
||||
postInstall = ''
|
||||
rm $out/lib/libsepol.so
|
||||
ln -s libsepol.so.1 $out/lib/libsepol.so
|
||||
preBuild = ''
|
||||
makeFlagsArray+=("PREFIX=$out")
|
||||
makeFlagsArray+=("DESTDIR=$out")
|
||||
'';
|
||||
|
||||
passthru = { inherit se_release se_url; };
|
||||
|
|
Loading…
Reference in a new issue