!BrOouUOucaGdxbaRca:nixos.org

NixOS Portuguese

344 Members
Sala de Conversação sobre o ecossistema Nix em português. Ponteada com o grupo do Telegram: https://t.me/nixosbrasil/ Link Matrix: https://matrix.to/#/!BrOouUOucaGdxbaRca:nixos.org21 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 Nov 2025
@telegram_6044272145:t2bot.ioShalala Harrischinese/japanese/korean11:40:01
@telegram_6044272145:t2bot.ioShalala HarrisEu procurei bastante no Google como extrair o output hash de uma build com outputHash = "", mas não encontrei. Fiz em bash, grepando stderr.11:37:38
@telegram_6044272145:t2bot.ioShalala HarrisEu faço o build e extraio o outputHash. Eu poderia extrair os hashes dos ttfs individuais do PKGBUILD, mas não cheguei a implementar isso.11:35:55
@telegram_6044272145:t2bot.ioShalala Harris https://github.com/kugland/nix-ttf-ms-win11-auto/blob/b30e0b090ebb669c5bfab437b7c7ef4ecdcbd9f9/update-pkgs.sh#L31 Eu implementei essa função no script de update para gerar os outputHashes. 11:36:58
@telegram_6044272145:t2bot.ioShalala HarrisNão entendi. Fazer o quê?11:40:47
@telegram_6044272145:t2bot.ioShalala HarrisTTCs tem só para fontes CJK.11:39:58
@telegram_6044272145:t2bot.ioShalala HarrisSim, é tudo TTF.11:39:06
@telegram_6044272145:t2bot.ioShalala HarrisDentro da VM eu posso fazer mknod /dev/fuse11:42:26
@telegram_6044272145:t2bot.ioShalala HarrisPirataria.22:09:39
@telegram_6044272145:t2bot.ioShalala Harris pkgs.fetchtorrent é muito foda 22:27:12
@telegram_6044272145:t2bot.ioShalala HarrisO que ia ser legal é implementar um fetcher para ipfs.22:32:31
@telegram_6044272145:t2bot.ioShalala Harris coincidentemente, mais fontes:

{
  pkgs,
  lib,
  ...
}:
pkgs.stdenvNoCC.mkDerivation {
  pname = "adobe-font-folio";
  version = "11.0.0";

  src = pkgs.fetchtorrent {
    url = "magnet:?xt=urn:btih:AA4926C9A4FB3B39DBC0CC23B415BABED19E2947";
    hash = "sha256-XY1tjP2OnP4wLxIn500vmlY+WNc8UAae8ZSKngbIK14=";
    backend = "rqbit";
  };

  nativeBuildInputs = [pkgs.p7zip];

  installPhase = ''
    runHook preInstall

    7z x "Adobe Font Folio 11.iso" -oiso_contents
    mkdir -p $out/share/fonts/{opentype,truetype}
    find iso_contents -type f -iname "*.otf" -exec cp {} $out/share/fonts/opentype/ \;
    find iso_contents -type f -iname "*.ttf" -exec cp {} $out/share/fonts/truetype/ \;
    chmod 0444 $out/share/fonts/opentype/* $out/share/fonts/truetype/*
    rm -rf iso_contents

    runHook postInstall
  '';

  meta = with lib; {
    description = "Adobe Font Folio 11";
    homepage = "https://thepiratebay.org/description.php?id=6087745";
    license = lib.licenses.unfree;
    maintainers = [];
    platforms = platforms.all;
  };
}
22:26:56

Show newer messages


Back to Room ListRoom Version: 9