1 { lib, stdenv, fetchurl, gettext, attr }:
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
8 stdenv.mkDerivation rec {
13 url = "mirror://savannah/acl/acl-${version}.tar.gz";
14 sha256 = "sha256-dgxhxokBs3/dXu/ur0wMeia9/disdHoe3/HODiQ8Ea8=";
21 outputs = [ "bin" "dev" "out" "man" "doc" ];
23 nativeBuildInputs = [ gettext ];
24 buildInputs = [ attr ];
26 # causes failures in coreutils test suite
27 hardeningDisable = [ "fortify3" ];
29 # Upstream use C++-style comments in C code. Remove them.
30 # This comment breaks compilation if too strict gcc flags are used.
32 echo "Removing C++-style comments from include/acl.h"
33 sed -e '/^\/\//d' -i include/acl.h
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;