nixpkgs/pkgs/data/fonts/crimson/default.nix

26 lines
706 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2017-08-10 21:43:49 +02:00
let
version = "2014.10";
2017-08-10 21:43:49 +02:00
in fetchzip rec {
name = "crimson-${version}";
2017-08-10 21:43:49 +02:00
url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz";
2017-08-10 21:43:49 +02:00
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf
install -m444 -Dt $out/share/doc/${name} README.md
'';
2017-08-10 21:43:49 +02:00
sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842";
meta = with 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];
};
}