2017-08-10 19:43:49 +00:00
|
|
|
{stdenv, fetchzip}:
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
let
|
2015-03-12 22:14:21 +00:00
|
|
|
version = "2014.10";
|
2017-08-10 19:43:49 +00:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "crimson-${version}";
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz";
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
postFetch = ''
|
|
|
|
tar -xzvf $downloadedFile --strip-components=1
|
2015-03-12 22:14:21 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
cp -v "Desktop Fonts/OTF/"*.otf $out/share/fonts/opentype
|
|
|
|
cp -v README.md $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842";
|
|
|
|
|
2015-03-12 22:14:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://aldusleaf.org/crimson.html;
|
|
|
|
description = "A font family inspired by beautiful oldstyle typefaces";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [maintainers.rycee];
|
|
|
|
};
|
|
|
|
}
|