depot/third_party/nixpkgs/pkgs/os-specific/linux/semodule-utils/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

27 lines
643 B
Nix

{ lib, stdenv, fetchurl, libsepol }:
stdenv.mkDerivation rec {
pname = "semodule-utils";
version = "3.4";
inherit (libsepol) se_url;
src = fetchurl {
url = "${se_url}/${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-sMrGZfLTjx+pu82A6jQYyE3YImkqmEdRdv8iyS+zjTo=";
};
buildInputs = [ libsepol ];
makeFlags = [
"PREFIX=$(out)"
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
];
meta = with lib; {
description = "SELinux policy core utilities (packaging additions)";
license = licenses.gpl2;
inherit (libsepol.meta) homepage platforms;
maintainers = [ maintainers.e-user ];
};
}