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