2021-08-21 14:52:10 +02:00
|
|
|
{ lib, fetchurl }:
|
2017-11-10 02:13:47 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2021-08-21 14:52:10 +02:00
|
|
|
version = "7.040";
|
|
|
|
in fetchurl rec {
|
2019-05-13 03:55:32 +02:00
|
|
|
name = "libertinus-${version}";
|
2021-08-21 14:52:10 +02:00
|
|
|
url = "https://github.com/alerque/libertinus/releases/download/v${version}/Libertinus-${version}.tar.xz";
|
|
|
|
sha256 = "0z658r88p52dyrcslv0wlccw0sw7m5jz8nbqizv95nf7bfw96iyk";
|
2017-11-10 02:13:47 +01:00
|
|
|
|
2021-08-21 14:52:10 +02:00
|
|
|
downloadToTemp = true;
|
|
|
|
recursiveHash = true;
|
2017-11-10 02:13:47 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
2021-08-21 14:52:10 +02:00
|
|
|
install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
|
2017-11-10 02:13:47 +01:00
|
|
|
'';
|
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2021-08-21 14:52:10 +02:00
|
|
|
description = "The Libertinus font family";
|
2017-11-10 02:13:47 +01:00
|
|
|
longDescription = ''
|
2021-08-21 14:52:10 +02:00
|
|
|
The Libertinus font project began as a fork of the Linux Libertine and
|
|
|
|
Linux Biolinum fonts. The original impetus was to add an OpenType math
|
|
|
|
companion to the Libertine font families. Over time it grew into to a
|
|
|
|
full-fledged fork addressing many of the bugs in the Libertine fonts.
|
2017-11-10 02:13:47 +01:00
|
|
|
'';
|
2021-08-21 14:52:10 +02:00
|
|
|
homepage = "https://github.com/alerque/libertinus";
|
2017-11-10 02:13:47 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|