2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchFromGitHub }:
|
2017-11-10 01:13:47 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
2019-04-08 23:14:47 +01:00
|
|
|
version = "6.8";
|
2019-05-13 02:55:32 +01:00
|
|
|
in fetchFromGitHub rec {
|
|
|
|
name = "libertinus-${version}";
|
2017-11-10 01:13:47 +00:00
|
|
|
|
2019-04-08 23:14:47 +01:00
|
|
|
owner = "libertinus-fonts";
|
2019-05-13 02:55:32 +01:00
|
|
|
repo = "libertinus";
|
|
|
|
rev = "v${version}";
|
2017-11-10 01:13:47 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
install -m444 -Dt $out/share/fonts/opentype *.otf
|
|
|
|
install -m444 -Dt $out/share/doc/${name} *.txt
|
2017-11-10 01:13:47 +00:00
|
|
|
'';
|
2019-04-08 23:14:47 +01:00
|
|
|
sha256 = "0iwbw3sw8rcsifpzw72g3cz0a960scv7cib8mwrw53282waqq2gc";
|
2017-11-10 01:13:47 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2017-11-10 01:13:47 +00:00
|
|
|
description = "A fork of the Linux Libertine and Linux Biolinum fonts";
|
|
|
|
longDescription = ''
|
|
|
|
Libertinus fonts is a fork of the Linux Libertine and Linux Biolinum fonts
|
|
|
|
that started as an OpenType math companion of the Libertine font family,
|
|
|
|
but grown as a full fork to address some of the bugs in the fonts.
|
|
|
|
'';
|
2019-04-08 23:14:47 +01:00
|
|
|
homepage = https://github.com/libertinus-fonts/libertinus;
|
2017-11-10 01:13:47 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|