nixpkgs/pkgs/data/fonts/libertinus/default.nix
Will Dietz 1ec1bdd4c9
libertinus: 6.6 -> 6.8
Notes:

https://github.com/libertinus-fonts/libertinus/releases/tag/v6.8
https://github.com/libertinus-fonts/libertinus/releases/tag/v6.7

* update repo "owner", moved
* don't try to build since we don't mean to :)
* update for font cleanup PR (thanks!)
2019-05-15 16:52:59 -05:00

31 lines
975 B
Nix

{ lib, fetchFromGitHub }:
let
version = "6.8";
in fetchFromGitHub rec {
name = "libertinus-${version}";
owner = "libertinus-fonts";
repo = "libertinus";
rev = "v${version}";
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype *.otf
install -m444 -Dt $out/share/doc/${name} *.txt
'';
sha256 = "0iwbw3sw8rcsifpzw72g3cz0a960scv7cib8mwrw53282waqq2gc";
meta = with lib; {
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.
'';
homepage = https://github.com/libertinus-fonts/libertinus;
license = licenses.ofl;
maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all;
};
}