nixpkgs/pkgs/by-name/li/libertinus/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1.0 KiB
Nix

{ lib, stdenvNoCC, fetchurl, zstd }:
stdenvNoCC.mkDerivation rec {
pname = "libertinus";
version = "7.051";
src = fetchurl {
url = "https://github.com/alerque/libertinus/releases/download/v${version}/Libertinus-${version}.tar.zst";
hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y=";
};
nativeBuildInputs = [ zstd ];
installPhase = ''
runHook preInstall
install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
runHook postInstall
'';
meta = with lib; {
description = "Libertinus font family";
longDescription = ''
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.
'';
homepage = "https://github.com/alerque/libertinus";
license = licenses.ofl;
maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all;
};
}