diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/raleway/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/raleway/default.nix | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/nixpkgs/pkgs/data/fonts/raleway/default.nix b/nixpkgs/pkgs/data/fonts/raleway/default.nix index ddded71a6fa2..ffaca35c6b9e 100644 --- a/nixpkgs/pkgs/data/fonts/raleway/default.nix +++ b/nixpkgs/pkgs/data/fonts/raleway/default.nix @@ -1,42 +1,40 @@ -{ lib, fetchFromGitHub }: +{ lib, fetchzip, stdenvNoCC }: -let - version = "2016-08-30"; -in fetchFromGitHub { - name = "raleway-${version}"; +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "raleway"; + version = "4.101"; - owner = "impallari"; - repo = "Raleway"; - rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a"; + src = fetchzip { + url = "https://github.com/theleagueof/raleway/releases/download/${finalAttrs.version}/Raleway-${finalAttrs.version}.tar.xz"; + hash = "sha256-itNHIMoRjiaqYAJoDNetkCquv47VAfel8MAzwsd//Ww="; + }; - postFetch = '' - tar xf $downloadedFile --strip=1 - find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \; - cp *.txt *.md -d $out - ''; + installPhase = '' + runHook preInstall - sha256 = "16jr7drqg2wib2q48ajlsa7rh1jxjibl1wd4rjndi49vfl463j60"; + 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 ]; }; -} +}) |