nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 37 lines 988 B view raw
1{ stdenv, fetchurl, gettext }: 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 name = "attr-2.4.48"; 10 11 src = fetchurl { 12 url = "mirror://savannah/attr/${name}.tar.gz"; 13 sha256 = "1rr4adzwax4bzr2c00f06zcsljv5y6p9wymz1g89ww7cb2rp5bay"; 14 }; 15 16 outputs = [ "bin" "dev" "out" "man" "doc" ]; 17 18 nativeBuildInputs = [ gettext ]; 19 20 patches = [ 21 # fix fakechroot: https://github.com/dex4er/fakechroot/issues/57 22 ./syscall.patch 23 ]; 24 25 postPatch = '' 26 for script in install-sh include/install-sh; do 27 patchShebangs $script 28 done 29 ''; 30 31 meta = with stdenv.lib; { 32 homepage = "https://savannah.nongnu.org/projects/attr/"; 33 description = "Library and tools for manipulating extended attributes"; 34 platforms = platforms.linux; 35 license = licenses.gpl2Plus; 36 }; 37}