at 18.03-beta 33 lines 1.0 kB view raw
1{ stdenv, fetchurl, gettext, attr }: 2 3stdenv.mkDerivation rec { 4 name = "acl-2.2.52"; 5 6 src = fetchurl { 7 url = "mirror://savannah/acl/${name}.src.tar.gz"; 8 sha256 = "08qd9s3wfhv0ajswsylnfwr5h0d7j9d4rgip855nrh400nxp940p"; 9 }; 10 11 outputs = [ "bin" "dev" "out" "man" "doc" ]; 12 13 nativeBuildInputs = [ gettext ]; 14 buildInputs = [ attr ]; 15 16 # Upstream use C++-style comments in C code. Remove them. 17 # This comment breaks compilation if too strict gcc flags are used. 18 patchPhase = '' 19 echo "Removing C++-style comments from include/acl.h" 20 sed -e '/^\/\//d' -i include/acl.h 21 ''; 22 23 configureFlags = [ "MAKE=make" "MSGFMT=msgfmt" "MSGMERGE=msgmerge" "XGETTEXT=xgettext" "ZIP=gzip" "ECHO=echo" "SED=sed" "AWK=gawk" ]; 24 25 installTargets = [ "install" "install-lib" "install-dev" ]; 26 27 meta = with stdenv.lib; { 28 homepage = "http://savannah.nongnu.org/projects/acl"; 29 description = "Library and tools for manipulating access control lists"; 30 platforms = platforms.linux; 31 license = licenses.gpl2Plus; 32 }; 33}