depot/third_party/nixpkgs/pkgs/os-specific/linux/semodule-utils/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

27 lines
662 B
Nix

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