From 92c5355690d2b4530cdaf171717e1b7536d9ba23 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 8 Jul 2015 17:39:05 +0200 Subject: [PATCH] fira-code: init at 0.5 --- pkgs/data/fonts/fira-code/default.nix | 31 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/data/fonts/fira-code/default.nix diff --git a/pkgs/data/fonts/fira-code/default.nix b/pkgs/data/fonts/fira-code/default.nix new file mode 100644 index 000000000000..9855738d6d6d --- /dev/null +++ b/pkgs/data/fonts/fira-code/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "fira-code-${version}"; + version = "0.5"; + + src = fetchurl { + url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode-Regular.otf"; + sha256 = "1y2jz1v7m0q73rz9vblxgaqkgh9wpp4fp7dq21hdyfhxkk3ss6xk"; + }; + + phases = [ "installPhase" ]; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp -v $src $out/share/fonts/opentype/FiraCode-Regular.otf + ''; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d92cfd3c7614..f3c84b59d4ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10408,6 +10408,8 @@ let fira = callPackage ../data/fonts/fira { }; + fira-code = callPackage ../data/fonts/fira-code { }; + fira-mono = callPackage ../data/fonts/fira-mono { }; font-awesome-ttf = callPackage ../data/fonts/font-awesome-ttf { };