cooper-hewitt: switch to pname+version, fix build

+6 -4
+6 -4
pkgs/data/fonts/cooper-hewitt/default.nix
··· 1 1 { lib, fetchzip }: 2 2 3 - fetchzip { 4 - name = "cooper-hewitt-2014-06-09"; 3 + fetchzip rec { 4 + pname = "cooper-hewitt"; 5 + version = "unstable-2014-06-09"; 5 6 6 - url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; 7 + url = "https://web.archive.org/web/20221004145117/https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; 7 8 8 9 postFetch = '' 9 10 mkdir -p $out/share/fonts/opentype 10 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/ 11 + mv $out/*.otf $out/share/fonts/opentype 12 + find $out -maxdepth 1 ! -type d -exec rm {} + 11 13 ''; 12 14 13 15 sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd";