2013-02-24 13:25:53 +01:00
|
|
|
{ stdenv, fetchurl, libsepol, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sepolgen";
|
2015-07-31 22:05:13 +02:00
|
|
|
version = "1.2.2";
|
2013-02-24 13:25:53 +01:00
|
|
|
inherit (libsepol) se_release se_url;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${se_url}/${se_release}/sepolgen-${version}.tar.gz";
|
2015-07-31 22:05:13 +02:00
|
|
|
sha256 = "09139kspr41zgksayi4dh982p8080lrfl96p4dld51nknbpaigdy";
|
2013-02-24 13:25:53 +01:00
|
|
|
};
|
|
|
|
|
2015-07-31 22:05:13 +02:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=("PREFIX=$out")
|
|
|
|
makeFlagsArray+=("DESTDIR=$out")
|
|
|
|
makeFlagsArray+=("PYTHONLIBDIR=lib/${python.libPrefix}/site-packages")
|
|
|
|
'';
|
2013-02-24 13:25:53 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
|
|
|
description = "SELinux policy generation library";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|