nixpkgs-suyu/pkgs/os-specific/linux/semodule-utils/default.nix

28 lines
667 B
Nix
Raw Normal View History

2018-09-04 09:35:58 +02:00
{ stdenv, fetchurl, libsepol }:
stdenv.mkDerivation rec {
pname = "semodule-utils";
2018-09-04 09:35:58 +02:00
version = "2.7";
inherit (libsepol) se_release se_url;
src = fetchurl {
url = "${se_url}/${se_release}/${pname}-${version}.tar.gz";
2018-09-04 09:35:58 +02:00
sha256 = "1fl60x4w8rn5bcwy68sy48aydwsn1a17d48slni4sfx4c8rqpjch";
};
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 ];
};
}