gpg -vv -r myid -e -a name, on Nostr: #guix, wraps every executable in a #bash script, thereby always eating PS1 With that ...
#guix, wraps every executable in a #bash script, thereby always eating PS1
With that in place, guix shell can pretty much fill the same role as direnv and similar tools, with one difference though: speed. When all the packages are already in store, guix shell can take one to a few seconds to run, depending on the package set, on whether you’re using a solid state device (SSD) or a “spinning” hard disk, and so on. It’s acceptable but prohibitively slow for direnv-like use cases.
To address that, guix shell maintains a profile cache for the -D -f guix.scm and -m manifest.scm cases. On a hot cache, it runs in 0.1 second. All it has to do is fork a shell with the right environment variable definitions; it does not talk to guix-daemon, and it does not even read guix.scm or manifest.scm (it’s possible to forcefully update the cache with --rebuild-cache). (manual)
2c
Published at
2024-01-07 08:32:27Event JSON
{
"id": "d0e7c2b90ffc3d95512bd2998124f61417d466dae19ef432ca4dc0abbaf9b8d2",
"pubkey": "75fa3ebb1419481aa23d1d2fda8e0f665e627cf41562306ff7e34ccd2cd07c25",
"created_at": 1704616347,
"kind": 1,
"tags": [
[
"t",
"guix"
],
[
"t",
"bash"
],
[
"proxy",
"https://emacs.ch/users/brokenix/statuses/111713736959108611",
"activitypub"
]
],
"content": "#guix, wraps every executable in a #bash script, thereby always eating PS1\nWith that in place, guix shell can pretty much fill the same role as direnv and similar tools, with one difference though: speed. When all the packages are already in store, guix shell can take one to a few seconds to run, depending on the package set, on whether you’re using a solid state device (SSD) or a “spinning” hard disk, and so on. It’s acceptable but prohibitively slow for direnv-like use cases.\n\nTo address that, guix shell maintains a profile cache for the -D -f guix.scm and -m manifest.scm cases. On a hot cache, it runs in 0.1 second. All it has to do is fork a shell with the right environment variable definitions; it does not talk to guix-daemon, and it does not even read guix.scm or manifest.scm (it’s possible to forcefully update the cache with --rebuild-cache). (manual)\n2c",
"sig": "16edc599449196eec16bb92b7d0eb794f32854e7959ede84c67bba9f66593abfbc2e58555d1bb01c25177414656b4947d21fe7803bc89be65b5d82d52f568234"
}