base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libertinus / package.nix
bloba9bdb0a2654fe4dabbca1688f5c3c27f8a0d11f7
1 { lib, stdenvNoCC, fetchurl, zstd }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "libertinus";
5   version = "7.051";
7   src = fetchurl {
8     url = "https://github.com/alerque/libertinus/releases/download/v${version}/Libertinus-${version}.tar.zst";
9     hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y=";
10   };
12   nativeBuildInputs = [ zstd ];
14   installPhase = ''
15     runHook preInstall
17     install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
19     runHook postInstall
20   '';
22   meta = with lib; {
23     description = "Libertinus font family";
24     longDescription = ''
25       The Libertinus font project began as a fork of the Linux Libertine and
26       Linux Biolinum fonts. The original impetus was to add an OpenType math
27       companion to the Libertine font families. Over time it grew into to a
28       full-fledged fork addressing many of the bugs in the Libertine fonts.
29     '';
30     homepage = "https://github.com/alerque/libertinus";
31     license = licenses.ofl;
32     maintainers = with maintainers; [ siddharthist ];
33     platforms = platforms.all;
34   };