tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cooper-hewitt: switch to pname+version, fix build
Sandro Jäckel
3 years ago
50922fe9
01dfd3cb
+6
-4
1 changed file
expand all
collapse all
unified
split
pkgs
data
fonts
cooper-hewitt
default.nix
+6
-4
pkgs/data/fonts/cooper-hewitt/default.nix
···
1
1
{ lib, fetchzip }:
2
2
3
3
-
fetchzip {
4
4
-
name = "cooper-hewitt-2014-06-09";
3
3
+
fetchzip rec {
4
4
+
pname = "cooper-hewitt";
5
5
+
version = "unstable-2014-06-09";
5
6
6
6
-
url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip";
7
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
10
-
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/
11
11
+
mv $out/*.otf $out/share/fonts/opentype
12
12
+
find $out -maxdepth 1 ! -type d -exec rm {} +
11
13
'';
12
14
13
15
sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd";