Merge pull request #193579 from erdnaxe/cooper-hewitt-make-derivation
cooper-hewitt: use mkDerivation
This commit is contained in:
commit
91ebea0f94
1 changed files with 13 additions and 9 deletions
|
@ -1,17 +1,21 @@
|
|||
{ lib, fetchzip }:
|
||||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
fetchzip {
|
||||
name = "cooper-hewitt-2014-06-09";
|
||||
stdenv.mkDerivation {
|
||||
pname = "cooper-hewitt";
|
||||
version = "unstable-2014-06-09";
|
||||
|
||||
url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip";
|
||||
src = fetchzip {
|
||||
url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip";
|
||||
hash = "sha256-bTlEXQeYNNspvnNdvQhJn6CNBrcSKYWuNWF/N6+3Vb0=";
|
||||
};
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 644 -t "$out/share/fonts/opentype" *.otf
|
||||
'';
|
||||
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue