From 6f32a29f54475da745db9208a4a349c39c7afe03 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sun, 20 Dec 2015 15:27:31 +0200 Subject: [PATCH] fira-code 0.6 -> 1.100 --- pkgs/data/fonts/fira-code/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/data/fonts/fira-code/default.nix b/pkgs/data/fonts/fira-code/default.nix index 1ed63f7ac9e9..02db24203b76 100644 --- a/pkgs/data/fonts/fira-code/default.nix +++ b/pkgs/data/fonts/fira-code/default.nix @@ -1,19 +1,21 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, unzip }: stdenv.mkDerivation rec { name = "fira-code-${version}"; - version = "0.6"; + version = "1.100"; src = fetchurl { - url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode-Regular.otf"; - sha256 = "1blalxnmrxqlm5i74jhm8j29n0zsnmqi3gppxa9szjzv4x2k5s0a"; + url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip"; + sha256 = "1fprryfy8b79ncya1jzbzbxs75kvr1zwinflr8sl3d2m1r5kl03x"; }; - phases = [ "installPhase" ]; + buildInputs = [ unzip ]; + phases = [ "unpackPhase" "installPhase" ]; + sourceRoot = "."; installPhase = '' mkdir -p $out/share/fonts/opentype - cp -v $src $out/share/fonts/opentype/FiraCode-Regular.otf + cp -r *.otf $out/share/fonts/opentype ''; meta = with stdenv.lib; {