2015-07-08 17:39:05 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fira-code-${version}";
|
2015-08-16 11:29:11 +02:00
|
|
|
version = "0.6";
|
2015-07-08 17:39:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode-Regular.otf";
|
2015-08-16 11:29:11 +02:00
|
|
|
sha256 = "1blalxnmrxqlm5i74jhm8j29n0zsnmqi3gppxa9szjzv4x2k5s0a";
|
2015-07-08 17:39:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp -v $src $out/share/fonts/opentype/FiraCode-Regular.otf
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/tonsky/FiraCode;
|
|
|
|
description = "Monospace font with programming ligatures";
|
|
|
|
longDescription = ''
|
|
|
|
Fira Code is a monospace font extending the Fira Mono font with
|
|
|
|
a set of ligatures for common programming multi-character
|
|
|
|
combinations.
|
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|