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