2024-10-04 16:56:33 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, zstd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "libertinus";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "7.051";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
2024-10-04 16:56:33 +00:00
|
|
|
url = "https://github.com/alerque/libertinus/releases/download/v${version}/Libertinus-${version}.tar.zst";
|
|
|
|
hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeBuildInputs = [ zstd ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Libertinus font family";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2021-08-22 07:53:02 +00: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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/alerque/libertinus";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|