lol
at 23.05-pre 28 lines 844 B view raw
1{ lib, fetchzip }: 2let 3 version = "1.422"; 4in 5fetchzip rec { 6 name = "barlow-${version}"; 7 8 url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip"; 9 10 sha256 = "08ld4c3zq4d1px07lc64i7l8848zsc61ddy3654w2sh0hx5sm5ld"; 11 12 postFetch = '' 13 mkdir -p $out/share/fonts/ 14 unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 15 unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 16 unzip -j $downloadedFile \*.eot -d $out/share/fonts/eot 17 unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff 18 unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2 19 ''; 20 21 meta = with lib; { 22 description = "A grotesk variable font superfamily"; 23 homepage = "https://tribby.com/fonts/barlow/"; 24 license = licenses.ofl; 25 maintainers = [ maintainers.marsam ]; 26 platforms = platforms.all; 27 }; 28}