base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / u0 / u001-font / package.nix
blob0a1a552ed9cd3557880a6bc746973bde6d7f0fe7
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "u001";
5   version = "unstable-2016-08-01"; # date in the zip file, actual creation date unknown
7   src = fetchzip {
8     urls = [
9       "https://fontlibrary.org/assets/downloads/u001/3ea00b3c0c8fa6ce4373e5766fafd651/u001.zip"
10       "https://web.archive.org/web/20220830085803/https://fontlibrary.org/assets/downloads/u001/3ea00b3c0c8fa6ce4373e5766fafd651/u001.zip"
11     ];
12     hash = "sha256-7H32pfr0g68XP5B48VUY99e6fbd7rhH6fEnCKNXWEkU=";
13     stripRoot = false;
14   };
16   installPhase = ''
17     runHook preInstall
19     TTF_DIR=$out/share/fonts/truetype
21     mkdir -p $TTF_DIR
23     # We’ll adjust the nonstandard naming convention here
24     cp u001-reg.ttf $TTF_DIR/U001-Regular.ttf
25     cp u001-ita.ttf $TTF_DIR/U001-Italic.ttf
26     cp u001-bol.ttf $TTF_DIR/U001-Bold.ttf
27     cp u001-bolita.ttf $TTF_DIR/U001-BoldItalic.ttf
28     cp u001con-reg.ttf $TTF_DIR/U001Condensed-Regular.ttf
29     cp u001con-ita.ttf $TTF_DIR/U001Condensed-Italic.ttf
30     cp u001con-bol.ttf $TTF_DIR/U001Condensed-Bold.ttf
31     cp u001con-bolita.ttf $TTF_DIR/U001Condensed-BoldItalic.ttf
33     runHook postInstall
34   '';
36   meta = with lib; {
37     description = "Univers-like typeface that comes with GhostPDL made by URW++";
38     homepage = "https://fontlibrary.org/en/font/u001";
39     license = licenses.aladdin;
40     platforms = platforms.all;
41     maintainers = with maintainers; [ toastal ];
42   };