1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00
nixpkgs/pkgs/data/fonts/iosevka/default.nix
Winnie Quinn 7dccfd49aa 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.
2017-03-18 17:40:38 -04:00

35 lines
919 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "iosevka-${version}";
version = "1.11.4";
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
mkdir -p $fontdir
cp -v iosevka-* $fontdir
'';
meta = with stdenv.lib; {
homepage = "http://be5invis.github.io/Iosevka/";
downloadPage = "https://github.com/be5invis/Iosevka/releases";
description = ''
Slender monospace sans-serif and slab-serif typeface inspired by Pragmata
Pro, M+ and PF DIN Mono, designed to be the ideal font for programming.
'';
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.cstrahan ];
};
}