From 50922fe9fdee27cc95daf01416bfa7defe876e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 4 Oct 2022 18:50:41 +0200 Subject: [PATCH] cooper-hewitt: switch to pname+version, fix build --- pkgs/data/fonts/cooper-hewitt/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/data/fonts/cooper-hewitt/default.nix b/pkgs/data/fonts/cooper-hewitt/default.nix index 8783b1121738..48c7bc873428 100644 --- a/pkgs/data/fonts/cooper-hewitt/default.nix +++ b/pkgs/data/fonts/cooper-hewitt/default.nix @@ -1,13 +1,15 @@ { lib, fetchzip }: -fetchzip { - name = "cooper-hewitt-2014-06-09"; +fetchzip rec { + pname = "cooper-hewitt"; + version = "unstable-2014-06-09"; - url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; + url = "https://web.archive.org/web/20221004145117/https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; postFetch = '' mkdir -p $out/share/fonts/opentype - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/ + mv $out/*.otf $out/share/fonts/opentype + find $out -maxdepth 1 ! -type d -exec rm {} + ''; sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd";