From 7dccfd49aa6f78b3c550564a0614605c5b35fcb3 Mon Sep 17 00:00:00 2001 From: Winnie Quinn Date: Sat, 18 Mar 2017 15:21:01 -0400 Subject: [PATCH] iosevka: 1.4.2 -> 1.11.4 1.11.4 contains numerous improvements including ligatures and fixes to font weights. I switched "default.nix" from using `fetchFromGitHub` to simply pulling down the release as a zip via `fetchurl`. This seems like the best approach given that the repositoriy no longer contains font files and the alternative would be to build them from scratch. --- pkgs/data/fonts/iosevka/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/data/fonts/iosevka/default.nix b/pkgs/data/fonts/iosevka/default.nix index cbd963e903df..c8ce86b818bc 100644 --- a/pkgs/data/fonts/iosevka/default.nix +++ b/pkgs/data/fonts/iosevka/default.nix @@ -1,16 +1,18 @@ -{ stdenv, fetchFromGitHub }: +{ stdenv, fetchurl, unzip }: stdenv.mkDerivation rec { name = "iosevka-${version}"; - version = "1.4.2"; + version = "1.11.4"; - src = fetchFromGitHub { - owner = "be5invis"; - repo = "Iosevka"; - rev = "v${version}"; - sha256 = "1h1lmvjpjk0238bhdhnv2c149s98qpbndc8rxzlk6bhmxcy6rwsk"; + buildInputs = [ unzip ]; + + src = fetchurl { + url = "https://github.com/be5invis/Iosevka/releases/download/v${version}/01-iosevka-${version}.zip"; + sha256 = "0mn9pqkambsal5cvz8hzlwx7qvcdfch8g1iy7mqhgghzflfhsy8x"; }; + sourceRoot = "."; + installPhase = '' fontdir=$out/share/fonts/iosevka