nixpkgs/pkgs/by-name/ge/gelasio/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

39 lines
1.0 KiB
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "gelasio";
version = "unstable-2022-06-09";
src = fetchFromGitHub {
owner = "SorkinType";
repo = "Gelasio";
rev = "a75c6d30a35f74cdbaea1813bdbcdb64bb11d3d5";
hash = "sha256-ncm0lSDPPPREdxTx3dGl6OGBn4FGAjFTlQpA6oDCdMI=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp fonts/ttf/*.ttf $out/share/fonts/truetype/
runHook postInstall
'';
meta = with lib; {
description = "Font which is metric-compatible with Microsoft's Georgia";
longDescription = ''
Gelasio is an original typeface which is metrics compatible with Microsoft's
Georgia in its Regular, Bold, Italic and Bold Italic weights. Interpolated
Medium, medium Italic, SemiBold and SemiBold Italic have now been added as well.
'';
homepage = "https://github.com/SorkinType/Gelasio";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ colemickens ];
};
}