mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
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.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "libre-baskerville";
|
|
version = "1.000";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "impallari";
|
|
repo = "Libre-Baskerville";
|
|
rev = "2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f";
|
|
hash = "sha256-1EXi1hxFpc7pFsLbEj1xs9LqjeIf3XBol/8HdKNROUU=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype *.ttf
|
|
install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Webfont family optimized for body text";
|
|
longDescription = ''
|
|
Libre Baskerville is a webfont family optimized for body text. It's Based
|
|
on 1941 ATF Baskerville Specimens but it has a taller x-height, wider
|
|
counters and less contrast that allow it to work on small sizes in any
|
|
screen.
|
|
'';
|
|
homepage = "http://www.impallari.com/projects/overview/libre-baskerville";
|
|
license = licenses.ofl;
|
|
maintainers = with maintainers; [ cmfwyp ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|