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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.6";
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-7tuI8rISTlOPLWFL4GPA2aw+rMDFGk2kRQDKHtG6FvQ=";
|
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)";
|
2024-06-24 18:47:55 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (libsepol.meta) homepage platforms;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ RossComputerGuy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|