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

34 lines
943 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}";
2015-12-20 14:27:31 +01:00
version = "1.100";
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";
sha256 = "1fprryfy8b79ncya1jzbzbxs75kvr1zwinflr8sl3d2m1r5kl03x";
2015-07-08 17:39:05 +02:00
};
2015-12-20 14:27:31 +01:00
buildInputs = [ unzip ];
phases = [ "unpackPhase" "installPhase" ];
sourceRoot = ".";
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;
};
}