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

33 lines
923 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-01-02 13:33:34 +01:00
version = "1.102";
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-01-02 13:33:34 +01:00
sha256 = "0vcrzf7dmcy3n2ic05ihadmfgzmmmp0vz8grnqaxfi3y1jpw8ggy";
2015-07-08 17:39:05 +02:00
};
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;
};
}