The wallpaper setting command is not used by many people as the
`.background-image` convention is new and people have other mechanisms
in place.
I am not interested in this feature and I'm worried by the closure size
of `feh`, which is 400Mb due to `imlib2Full`.
The wallpaper are enabled by default.
* Move srcs and git-remote-isx into passthru.
* Replace the custom update.sh with an inline writeShellScript
that uses update-source-version from common-updater-scripts,
following the pattern of bun and proton-pass-cli.
instead of 0.
Note that the official docs specify that only 1 or 0 are valid:
https://pkg.go.dev/cmd/cgo and look for CGO_ENABLED.
If set to 'false', it gets rendered as an empty string:
$ nix derivation show nixpkgs#go-mockery | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": ""
}
$ nix derivation show nixpkgs#go-mockery_2 | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": ""
}
which has the same effect as not defining `env.CGO_ENABLED` at all,
i.e., it generates a dynamically linked executable:
$ nix shell nixpkgs#go-mockery
$ ldd $(which mockery)
linux-vdso.so.1 (0x00007c440bdd3000)
libresolv.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libresolv.so.2 (0x00007c440bdb8000)
libpthread.so.0 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libpthread.so.0 (0x00007c440bdb3000)
libc.so.6 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 (0x00007c440ba00000)
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/ld-linux-x86-64.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib64/ld-linux-x86-64.so.2 (0x00007c440bdd5000)
ditto for v2:
$ nix shell nixpkgs#go-mockery_2
$ ldd $(which mockery)
linux-vdso.so.1 (0x000077377575f000)
libresolv.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libresolv.so.2 (0x0000773775744000)
libpthread.so.0 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libpthread.so.0 (0x000077377573f000)
libc.so.6 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 (0x0000773775400000)
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/ld-linux-x86-64.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib64/ld-linux-x86-64.so.2 (0x0000773775761000)
whereas after setting it to 0:
$ nix derivation show .#go-mockery | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": "0"
}
$ nix derivation show .#go-mockery_2 | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": "0"
}
and now the executables are not dynamic, as intended:
$ nix shell .#go-mockery
$ ldd $(which mockery)
not a dynamic executable
$ nix shell .#go-mockery_2
$ ldd $(which mockery)
not a dynamic executable
env.CGO_ENABLED should be either 1 or 0, not a boolean.
If set to false, it is then rendered as an empty string,
which can be verified by running
$ nix derivation show nixpkgs#diun | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": ""
}
Also, the executable is, in fact, a dynamic one:
$ nix shell nixpkgs#diun
$ which diun
/nix/store/q8mc73sp6nz113m7ggb2m10r4brak82y-diun-4.33.0/bin/diun
$ ldd $(which diun)
linux-vdso.so.1 (0x000076b5e6e4e000)
libresolv.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libresolv.so.2 (0x000076b5e6e33000)
libpthread.so.0 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libpthread.so.0 (0x000076b5e6e2e000)
libc.so.6 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 (0x000076b5e6c00000)
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/ld-linux-x86-64.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib64/ld-linux-x86-64.so.2 (0x000076b5e6e50000)
After setting it to 0,
$ nix derivation show .#diun | jq '.derivations[].env | {CGO_ENABLED}'
{
"CGO_ENABLED": "0"
}
and the executable:
$ ldd $(which diun)
not a dynamic executable
which is the intended effect.