mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
57b9719e4c
This was silently blocking the channels. Thanks amine* from IRC. Maybe inheriting whole meta should be avoided and particular attributes should be picked instead, as e.g. adding longDescription would have unexpected consequences as well.
25 lines
613 B
Nix
25 lines
613 B
Nix
{ stdenv, fetchurl, bison, flex, libsepol }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "checkpolicy-${version}";
|
|
version = "2.7";
|
|
inherit (libsepol) se_release se_url;
|
|
|
|
src = fetchurl {
|
|
url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz";
|
|
sha256 = "009j9jc0hi4l7k8f21hn8fm25n0mqgzdpd4nk30nds6d3nglf4sl";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
buildInputs = [ libsepol ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
|
|
];
|
|
|
|
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
|
|
description = "SELinux policy compiler";
|
|
};
|
|
}
|