mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
25 lines
586 B
Nix
25 lines
586 B
Nix
{ lib, stdenv, fetchurl, bison, flex, libsepol }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "checkpolicy";
|
|
version = "3.7";
|
|
inherit (libsepol) se_url;
|
|
|
|
src = fetchurl {
|
|
url = "${se_url}/${version}/checkpolicy-${version}.tar.gz";
|
|
sha256 = "sha256-/T4ZJUd9SZRtERaThmGvRMH4bw1oFGb9nwLqoGACoH8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ libsepol ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
|
];
|
|
|
|
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
|
|
description = "SELinux policy compiler";
|
|
};
|
|
}
|