2018-09-04 09:35:58 +02:00
|
|
|
{ stdenv, fetchurl, libsepol }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "semodule-utils";
|
2019-08-17 18:13:48 +02:00
|
|
|
version = "2.9";
|
2018-09-04 09:35:58 +02:00
|
|
|
|
|
|
|
inherit (libsepol) se_release se_url;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "${se_url}/${se_release}/${pname}-${version}.tar.gz";
|
2019-08-17 18:13:48 +02:00
|
|
|
sha256 = "01yrwnd3calmw6r8kdh8ld7i7fb250n2yqqqk9p0ymrlwsg6g0w0";
|
2018-09-04 09:35:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsepol ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SELinux policy core utilities (packaging additions)";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
inherit (libsepol.meta) homepage platforms;
|
|
|
|
maintainers = [ maintainers.e-user ];
|
|
|
|
};
|
|
|
|
}
|