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

This commit is contained in:
Sandro Jäckel 2022-10-04 18:50:41 +02:00
parent 01dfd3cb58
commit 50922fe9fd
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -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";