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