2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libsepol }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "semodule-utils";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit (libsepol) se_url;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "${se_url}/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0qvhl40a6jlm8p719nnlw2ghlxbh8lxbcsd59azxp884bxgfr61h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsepol ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
2021-02-05 17:12:51 +00:00
|
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SELinux policy core utilities (packaging additions)";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
inherit (libsepol.meta) homepage platforms;
|
|
|
|
maintainers = [ maintainers.e-user ];
|
|
|
|
};
|
|
|
|
}
|