mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
28625f7861
These are all released together, so I'm updating them all in a single commit.
25 lines
587 B
Nix
25 lines
587 B
Nix
{ lib, stdenv, fetchurl, bison, flex, libsepol }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "checkpolicy";
|
|
version = "3.3";
|
|
inherit (libsepol) se_url;
|
|
|
|
src = fetchurl {
|
|
url = "${se_url}/${version}/checkpolicy-${version}.tar.gz";
|
|
sha256 = "118l8c2vvnnckbd269saslr7adv6rdavr5rv0z5vh2m1lgglxj15";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ libsepol ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
|
];
|
|
|
|
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
|
|
description = "SELinux policy compiler";
|
|
};
|
|
}
|