Re:The Magic Nix Cache, a GitHub Action for speeding up your...
by mikepurvis on Tuesday June 27, 2023 @12:16AM
(#36488833)
Ironically, Python has moved in the other direction, with now requiring a wheel be built before installing it, when wheel itself was originally an optional bolt-on to setuptools.
Re:The Magic Nix Cache, a GitHub Action for speeding up your...
by pizzapill on Tuesday June 27, 2023 @02:48AM
(#36489663)
I know you wanted to make a general point but in Arch you can just change PKGEXT='.pkg.tar' in /etc/makepkg.conf and the compression stage is skipped.
https://wiki.archlinux.org/title/makepkg
Tar would also be the answer to how to do fake compression (keeping files together and in order in one file) IF you can choose the "compression" library/tool.
Mostly a digression since it's not Nix, but I've wondered a bit about this sort of thing when building AUR packages on Arch Linux. The very last step of the builder is to compress the package, which in the vast majority of my uses is followed immediately by installing it, which of course decompresses the package. I've wondered why there isn't some (non-default) option to say "I don't need to keep the package itself around; just install it as soon as its built". I'm sure for my specific use case there's a simpler solution, but I've always wondered if there's a hacky way to get around things more generally by making a tool that can mimic the expected compression API but then creates a "fake" compressed artifact that no-ops (or maybe puts in a valid header followed by non-compressed data) and then injects that implementation into the PATH. You'd be able to invoke it with something like `fakecompress --zstd makepkg -si`, and it would invoke `makepkg -si` with the no-op zstd implementation.