2015-12-20 14:27:31 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2015-07-08 17:39:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fira-code-${version}";
|
2016-11-09 16:32:10 +01:00
|
|
|
version = "1.204";
|
2015-07-08 17:39:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-20 14:27:31 +01:00
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
|
2016-11-09 16:32:10 +01:00
|
|
|
sha256 = "17wky221b3igrqhmxgmqiyv1xdfn0nw471vzhpkrvv1w2w1w1k18";
|
2015-07-08 17:39:05 +02:00
|
|
|
};
|
|
|
|
|
2016-07-22 10:50:42 +02:00
|
|
|
sourceRoot = "otf";
|
|
|
|
|
2015-12-20 14:27:31 +01:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2015-07-08 17:39:05 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
2015-12-20 21:26:16 +01:00
|
|
|
cp -v *.otf $out/share/fonts/opentype
|
2015-07-08 17:39:05 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|