depot/third_party/nixpkgs/pkgs/os-specific/linux/semodule-utils/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

27 lines
624 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.gpl2;
inherit (libsepol.meta) homepage platforms;
maintainers = [ ];
};
}