Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gettext, 6}: 7 8# Note: this package is used for bootstrapping fetchurl, and thus 9# cannot use fetchpatch! All mutable patches (generated by GitHub or 10# cgit) that are needed here should be included directly in Nixpkgs as 11# files. 12 13stdenv.mkDerivation rec { 14 pname = "attr"; 15 version = "2.5.2"; 16 17 src = fetchurl { 18 url = "mirror://savannah/attr/${pname}-${version}.tar.gz"; 19 sha256 = "sha256-Ob9nRS+kHQlIwhl2AQU/SLPXigKTiXNDMqYwmmgMbIc="; 20 }; 21 22 outputs = [ 23 "bin" 24 "dev" 25 "out" 26 "man" 27 "doc" 28 ]; 29 30 nativeBuildInputs = [ gettext ]; 31 32 patches = [ ./musl.patch ]; 33 34 postPatch = '' 35 for script in install-sh include/install-sh; do 36 patchShebangs $script 37 done 38 ''; 39 40 meta = with lib; { 41 homepage = "https://savannah.nongnu.org/projects/attr/"; 42 description = "Library and tools for manipulating extended attributes"; 43 platforms = platforms.linux; 44 badPlatforms = platforms.microblaze; 45 license = licenses.gpl2Plus; 46 }; 47}