currently, apt uses /nix/store paths as default runtime state paths
$ sudo apt update
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: chmod 0700 of directory /nix/store/zrypwimnzv5y7j8bdbsnp6fq2an26b6x-apt-2.7.3/var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: Not using locking for read only lock file /nix/store/zrypwimnzv5y7j8bdbsnp6fq2an26b6x-apt-2.7.3/var/lib/apt/lists/lock
W: No sandbox user '_apt' on the system, can not drop privileges
expected: apt should use FHS paths as default runtime state paths
currently, apt uses /nix/store paths as default runtime state paths
expected: apt should use FHS paths as default runtime state paths
for example
running
apt
on nixos will usually use custom runtime state paths but anyway, the default paths should be fixed$HOME/.config/apt/apt.conf
the patchPhase could be shorter... this whole block is removed from CMakeLists.txt so this could be done with a regex (perl regex for multiline)
https://github.com/milahu/nur-packages/commit/86e6f89b307c4f79b2a3d672affacee9c2b29632