diff options
author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-10-04 16:49:08 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-10-04 16:49:08 +0200 |
commit | fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d (patch) | |
tree | fc9cef1f40608987998a50201e274ae356903b68 | |
parent | a4f81e1dbbb919edcaae495405a4969495a4b74d (diff) | |
download | nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar.gz nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar.bz2 nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar.lz nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar.xz nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.tar.zst nixpkgs-fc95752d6f7edd65d443c9dd5fd28b4a7b54cf4d.zip |
Revert "cooper-hewitt: use mkDerivation"
This reverts commit 9debb9217892cca73acc61232f6116fa4da6b045.
-rw-r--r-- | pkgs/data/fonts/cooper-hewitt/default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/data/fonts/cooper-hewitt/default.nix b/pkgs/data/fonts/cooper-hewitt/default.nix index 19c68973a25..8783b112173 100644 --- a/pkgs/data/fonts/cooper-hewitt/default.nix +++ b/pkgs/data/fonts/cooper-hewitt/default.nix @@ -1,21 +1,17 @@ -{ lib, stdenv, fetchzip }: +{ lib, fetchzip }: -stdenv.mkDerivation { - pname = "cooper-hewitt"; - version = "unstable-2014-06-09"; +fetchzip { + name = "cooper-hewitt-2014-06-09"; - src = fetchzip { - url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; - hash = "sha256-bTlEXQeYNNspvnNdvQhJn6CNBrcSKYWuNWF/N6+3Vb0="; - }; - - dontConfigure = true; - dontBuild = true; + url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip"; - installPhase = '' - install -D -m 644 -t "$out/share/fonts/opentype" *.otf + postFetch = '' + mkdir -p $out/share/fonts/opentype + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/ ''; + sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd"; + meta = with lib; { homepage = "https://www.cooperhewitt.org/open-source-at-cooper-hewitt/cooper-hewitt-the-typeface-by-chester-jenkins/"; description = "A contemporary sans serif, with characters composed of modified-geometric curves and arches"; |