nixpkgs/pkgs/data/fonts/libertinus/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

32 lines
965 B
Nix

{ lib, fetchFromGitHub }:
let
version = "6.6";
in fetchFromGitHub rec {
name = "libertinus-${version}";
owner = "khaledhosny";
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 = "11pxb2zwvjlk06zbqrfv2pgwsl4awf68fak1ks4881i8xbl1910m";
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/khaledhosny/libertinus;
license = licenses.ofl;
maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all;
};
}