summary refs log tree commit diff
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-02-04 14:38:42 +0100
committerMinijackson <minijackson@riseup.net>2023-02-04 14:57:56 +0100
commit6d94034d535833bb4025e4fd4f93ac015b6bd5b5 (patch)
tree4300d6f796d653819327e51a17388314c03cb7da
parenta13e71c8e6e95c2c8d53302a13b92727caf3ab16 (diff)
downloadnixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar.gz
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar.bz2
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar.lz
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar.xz
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.tar.zst
nixpkgs-6d94034d535833bb4025e4fd4f93ac015b6bd5b5.zip
raleway: fetch from up-to-date repo
-rw-r--r--pkgs/data/fonts/raleway/default.nix38
1 files changed, 17 insertions, 21 deletions
diff --git a/pkgs/data/fonts/raleway/default.nix b/pkgs/data/fonts/raleway/default.nix
index 935fde722ed..c1d766f7d36 100644
--- a/pkgs/data/fonts/raleway/default.nix
+++ b/pkgs/data/fonts/raleway/default.nix
@@ -1,44 +1,40 @@
-{ lib, stdenvNoCC, fetchFromGitHub }:
+{ lib, fetchzip, stdenvNoCC }:
 
-stdenvNoCC.mkDerivation {
+stdenvNoCC.mkDerivation (self: {
   pname = "raleway";
-  version = "2016-08-30";
+  version = "4.101";
 
-  src = fetchFromGitHub {
-    owner = "impallari";
-    repo = "Raleway";
-    rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a";
-    hash = "sha256-mcIpE+iqG6M43I5TT95oV+5kNgphunmyxC+Jaj0JysQ=";
+  src = fetchzip {
+    url = "https://github.com/theleagueof/raleway/releases/download/${self.version}/Raleway-${self.version}.tar.xz";
+    hash = "sha256-itNHIMoRjiaqYAJoDNetkCquv47VAfel8MAzwsd//Ww=";
   };
 
   installPhase = ''
     runHook preInstall
 
-    find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \;
+    install -D -m444 -t $out/share/fonts/truetype $src/static/TTF/*.ttf
+    install -D -m444 -t $out/share/fonts/opentype $src/static/OTF/*.otf
 
     runHook postInstall
   '';
 
   meta = {
     description = "Raleway is an elegant sans-serif typeface family";
-
     longDescription = ''
       Initially designed by Matt McInerney as a single thin weight, it was
       expanded into a 9 weight family by Pablo Impallari and Rodrigo Fuenzalida
-      in 2012 and iKerned by Igino Marini. In 2013 the Italics where added.
+      in 2012 and iKerned by Igino Marini. In 2013 the Italics where added, and
+      most recently — a variable version.
 
-      It is a display face and the download features both old style and lining
-      numerals, standard and discretionary ligatures, a pretty complete set of
-      diacritics, as well as a stylistic alternate inspired by more geometric
-      sans-serif typefaces than its neo-grotesque inspired default character
-      set.
+      It features both old style and lining numerals, standard and
+      discretionary ligatures, a pretty complete set of diacritics, as well as
+      a stylistic alternate inspired by more geometric sans-serif typefaces
+      than its neo-grotesque inspired default character set.
 
       It also has a sister display family, Raleway Dots.
     '';
-
-    homepage = "https://github.com/impallari/Raleway";
+    homepage = "https://www.theleagueofmoveabletype.com/raleway";
     license = lib.licenses.ofl;
-
-    maintainers = with lib.maintainers; [ Profpatsch ];
+    maintainers = with lib.maintainers; [ minijackson Profpatsch ];
   };
-}
+})