Merge pull request #179732 from toastal/u001-font

u001-font: init at unstable-2016-08-01
This commit is contained in:
Anderson Torres 2022-07-02 10:03:51 -03:00 committed by GitHub
commit 3f95f40786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -55,6 +55,12 @@ in mkLicense lset) ({
fullName = "GNU Affero General Public License v3.0 or later";
};
aladdin = {
spdxId = "Aladdin";
fullName = "Aladdin Free Public License";
free = false;
};
amazonsl = {
fullName = "Amazon Software License";
url = "https://aws.amazon.com/asl/";

View File

@ -0,0 +1,42 @@
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "u001";
version = "unstable-2016-08-01"; # date in the zip file, actual creation date unknown
src = fetchzip {
url = "https://fontlibrary.org/assets/downloads/u001/3ea00b3c0c8fa6ce4373e5766fafd651/u001.zip";
sha256 = "sha256-7H32pfr0g68XP5B48VUY99e6fbd7rhH6fEnCKNXWEkU=";
stripRoot = false;
};
dontBuild = true;
installPhase = ''
runHook preInstall
TTF_DIR=$out/share/fonts/truetype
mkdir -p $TTF_DIR
# Well adjust the nonstandard naming convention here
cp u001-reg.ttf $TTF_DIR/U001-Regular.ttf
cp u001-ita.ttf $TTF_DIR/U001-Italic.ttf
cp u001-bol.ttf $TTF_DIR/U001-Bold.ttf
cp u001-bolita.ttf $TTF_DIR/U001-BoldItalic.ttf
cp u001con-reg.ttf $TTF_DIR/U001Condensed-Regular.ttf
cp u001con-ita.ttf $TTF_DIR/U001Condensed-Italic.ttf
cp u001con-bol.ttf $TTF_DIR/U001Condensed-Bold.ttf
cp u001con-bolita.ttf $TTF_DIR/U001Condensed-BoldItalic.ttf
runHook postInstall
'';
meta = with lib; {
description = "A Univers-like typeface that comes with GhostPDL made by URW++";
homepage = "https://fontlibrary.org/en/font/u001";
license = licenses.aladdin;
platforms = platforms.all;
maintainers = with maintainers; [ toastal ];
};
}

View File

@ -25389,6 +25389,8 @@ with pkgs;
uw-ttyp0 = callPackage ../data/fonts/uw-ttyp0 { inherit (xorg) fonttosfnt mkfontdir; };
u001-font = callPackage ../data/fonts/u001 { };
vanilla-dmz = callPackage ../data/icons/vanilla-dmz { };
vdrsymbols = callPackage ../data/fonts/vdrsymbols { };