nixpkgs-suyu/pkgs/data/fonts/fira-code/default.nix
Eduard-Mihai Burtescu bcde1ffe77 Revert change from cp -v to cp -r in fira-code.
Mistakenly used `-r` in #11842.
2015-12-20 22:26:16 +02:00

33 lines
943 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "fira-code-${version}";
version = "1.100";
src = fetchurl {
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
sha256 = "1fprryfy8b79ncya1jzbzbxs75kvr1zwinflr8sl3d2m1r5kl03x";
};
buildInputs = [ unzip ];
phases = [ "unpackPhase" "installPhase" ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp -v *.otf $out/share/fonts/opentype
'';
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;
};
}