Closed pmiddend closed 4 years ago
I went in and created a patch for Nix, see https://github.com/NixOS/nix/pull/3482. Should be fixed in the next version.
Ah, cool! I was wondering why stoi()
crashes in such an obscure way but never got to debbug it. Thank you!
I'll pull it in latest ebuild as well.
nix-collect-garbage
reads all files from/nix/var/nix/temproots
and interprets the file names as process IDs. The ebuild callskeepdir
on this directory, leading to a.keep_sys-apps_nix-0
residing there. Naively,nix-collect-garbage
callsstoi
to convert this to an integer and...fails. Is there a way to keep the directory without creating this file? Otherweise, well, one might patch Nix to ignore hidden files, maybe.