1 { lib, stdenv, fetchurl, gettext }:
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/attr/${pname}-${version}.tar.gz";
14 sha256 = "sha256-Ob9nRS+kHQlIwhl2AQU/SLPXigKTiXNDMqYwmmgMbIc=";
17 outputs = [ "bin" "dev" "out" "man" "doc" ];
19 nativeBuildInputs = [ gettext ];
21 patches = [ ./musl.patch ];
24 for script in install-sh include/install-sh; do
30 homepage = "https://savannah.nongnu.org/projects/attr/";
31 description = "Library and tools for manipulating extended attributes";
32 platforms = platforms.linux;
33 badPlatforms = platforms.microblaze;
34 license = licenses.gpl2Plus;