mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +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.
40 lines
1.5 KiB
Nix
40 lines
1.5 KiB
Nix
{ lib, fetchzip, stdenvNoCC }:
|
||
|
||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||
pname = "league-gothic";
|
||
version = "1.601";
|
||
|
||
src = fetchzip {
|
||
url = "https://github.com/theleagueof/league-gothic/releases/download/${finalAttrs.version}/LeagueGothic-${finalAttrs.version}.tar.xz";
|
||
hash = "sha256-emkXKyQw4R0Zgg02oJsvBkqV0jmczP0tF0K2IKqJHMA=";
|
||
};
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
install -D -m444 -t $out/share/fonts/truetype $src/static/TTF/*.ttf
|
||
install -D -m444 -t $out/share/fonts/opentype $src/static/OTF/*.otf
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = {
|
||
description = "Revival of an old classic, Alternate Gothic #1";
|
||
longDescription = ''
|
||
League Gothic is a revival of an old classic, and one of our favorite
|
||
typefaces, Alternate Gothic #1. It was originally designed by Morris
|
||
Fuller Benton for the American Type Founders Company in 1903. The company
|
||
went bankrupt in 1993, and since the original typeface was created before
|
||
1923, the typeface is in the public domain.
|
||
|
||
We decided to make our own version, and contribute it to the Open Source
|
||
Type Movement. Thanks to a commission from the fine & patient folks over
|
||
at WND.com, it’s been revised & updated with contributions from Micah
|
||
Rich, Tyler Finck, and Dannci, who contributed extra glyphs.
|
||
'';
|
||
homepage = "https://www.theleagueofmoveabletype.com/league-gothic";
|
||
license = lib.licenses.ofl;
|
||
maintainers = with lib.maintainers; [ minijackson ];
|
||
};
|
||
})
|