| 5 Nov 2025 |
Andrea Ciceri | anche senza fhs il binario dipenderebbe da glibc o simili | 15:39:27 |
Andrea 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 |
Alessandro 🤔➖☀️🖌 | 2.5h su un host abbastanza potente | 15:20:57 |
Andrea 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 |
Alessandro 🤔➖☀️🖌 | ahhh | 15:35:19 |
Alessandro 🤔➖☀️🖌 | beh ma cavoli vuol dire che tutte le derivazioni fixed-output non possono dipendere da glibc?? | 15:40:03 |