nixpkgs-suyu/pkgs/data/fonts/iosevka/default.nix

35 lines
919 B
Nix
Raw Normal View History

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "iosevka-${version}";
2017-07-06 17:13:12 +02:00
version = "1.13.1";
2015-12-17 10:26:57 +01:00
buildInputs = [ unzip ];
src = fetchurl {
url = "https://github.com/be5invis/Iosevka/releases/download/v${version}/iosevka-pack-${version}.zip";
2017-07-06 17:13:12 +02:00
sha256 = "05nnzbhv0sidbzzamz10nlh3j974m95p3dmd66165y4wxyhs989i";
};
2015-12-17 10:26:57 +01:00
sourceRoot = ".";
installPhase = ''
fontdir=$out/share/fonts/iosevka
mkdir -p $fontdir
cp -v iosevka-* $fontdir
'';
2015-12-17 10:26:57 +01:00
2016-07-04 09:16:40 +02:00
meta = with stdenv.lib; {
homepage = http://be5invis.github.io/Iosevka/;
2015-12-17 10:26:57 +01:00
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 ];
};
}