mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
29 lines
787 B
Nix
29 lines
787 B
Nix
|
{stdenv, fetchurl}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "crimson-${version}";
|
||
|
version = "2014.10";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz";
|
||
|
sha256 = "0qyihrhqb89vwg9cfpaf5xqmcjvs4r4614bxy634vmqv9v1bzn5b";
|
||
|
};
|
||
|
|
||
|
phases = ["unpackPhase" "installPhase"];
|
||
|
|
||
|
installPhase = ''
|
||
|
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}
|
||
|
'';
|
||
|
|
||
|
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];
|
||
|
};
|
||
|
}
|