!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

126 Members
https://milano.nix.pizza/10 Servers

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


SenderMessageTime
5 Nov 2025
@telegram_73824637:t2bot.ioAndrea Cicerianche senza fhs il binario dipenderebbe da glibc o simili15:39:27
@telegram_73824637:t2bot.ioAndrea Ciceri Se il binario e' compilato staticamente probabilmente andra' (improbabile che lo sia)
Altrimenti potresti modificare usare removeReferencesTo sul binario per non farlo dipendere da niente.
Poi fai un'altra derivazione (normale, input addressed, anche solo con runCommand) che prende questo binario dalla derivazione fixed output e usa patchelf su di lui
15:38:46
@telegram_98204228:t2bot.ioAlessandro 🤔➖☀️🖌2.5h su un host abbastanza potente15:20:57
@telegram_73824637:t2bot.ioAndrea Ciceri comunque secondo me cosi' ti andra':
stdenv.mkDerivation {
  name = "cef";

  # This is a hack that should be fixed by envvar below
  GIT_SSL_NO_VERIFY=true;
  GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
  SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
  CURL_CA_BUNDLE = "${cacert}/etc/ssl/certs/ca-bundle.crt";

  buildCommand = ''
    cp -r ${cefSrc}/* .
    ${cefBuildEnv}/bin/cefBuildEnv ${buildScript}
    mkdir -p $out
    cp -r tmp_download_dir/chromium/src/cef/binary_distrib $out/cef
  '';

  outputHash = lib.fakeHash;
  outputHashAlgo = "sha256";
  outputHashMode = "nar"; # nar: recursive Nix Archive
}
15:17:36
@telegram_98204228:t2bot.ioAlessandro 🤔➖☀️🖌ahhh15:35:19
@telegram_98204228:t2bot.ioAlessandro 🤔➖☀️🖌beh ma cavoli vuol dire che tutte le derivazioni fixed-output non possono dipendere da glibc??15:40:03

Show newer messages


Back to Room ListRoom Version: 10