Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, gettext, attr }: 2 3# Note: this package is used for bootstrapping fetchurl, and thus 4# cannot use fetchpatch! All mutable patches (generated by GitHub or 5# cgit) that are needed here should be included directly in Nixpkgs as 6# files. 7 8stdenv.mkDerivation rec { 9 pname = "acl"; 10 version = "2.3.1"; 11 12 src = fetchurl { 13 url = "mirror://savannah/acl/acl-${version}.tar.gz"; 14 sha256 = "sha256-dgxhxokBs3/dXu/ur0wMeia9/disdHoe3/HODiQ8Ea8="; 15 }; 16 17 patches = [ 18 ./LFS64.patch 19 ]; 20 21 outputs = [ "bin" "dev" "out" "man" "doc" ]; 22 23 nativeBuildInputs = [ gettext ]; 24 buildInputs = [ attr ]; 25 26 # causes failures in coreutils test suite 27 hardeningDisable = [ "fortify3" ]; 28 29 # Upstream use C++-style comments in C code. Remove them. 30 # This comment breaks compilation if too strict gcc flags are used. 31 postPatch = '' 32 echo "Removing C++-style comments from include/acl.h" 33 sed -e '/^\/\//d' -i include/acl.h 34 35 patchShebangs . 36 ''; 37 38 meta = with lib; { 39 homepage = "https://savannah.nongnu.org/projects/acl"; 40 description = "Library and tools for manipulating access control lists"; 41 platforms = platforms.linux; 42 license = licenses.gpl2Plus; 43 }; 44}