nixpkgs/pkgs/data/fonts/fira-code/default.nix

35 lines
946 B
Nix
Raw Normal View History

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-09-18 13:17:05 +02:00
version = "1.203";
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-09-18 13:17:05 +02:00
sha256 = "0pjziaklmkpl67ybp45q9ndya5adf9x8svhdv9643dq9jsrxbkj1";
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
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;
};
}