mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 01:17:28 +03:00
8bc5104a6e
When specifying the `builder` attribute in `stdenv.mkDerivation`, this will be effectively transformed into builtins.derivation { builder = stdenv.shell; args = [ "-e" builder ]; } This also means that `default-builder.sh` is never sourced and as a result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct location[1]. Also, we need to source `.attrs.sh` to source `$stdenv`. So, the following is done now: * If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it. Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage (see previous commit for more context), so prefer the environment variable if possible. * Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this can happen. * If neither applies, it can be assumed that `__structuredAttrs` is turned off and thus nothing needs to be done. [1] It's possible that it doesn't exist at all - in case of Nix 2.3 or it can point to a wrong location on older Nix versions with a bug in `__structuredAttrs`. |
||
---|---|---|
.. | ||
acpilight | ||
ananicy | ||
ananicy-cpp | ||
ananicy-rules-cachyos | ||
apulse | ||
arm-trusted-firmware | ||
autoadb | ||
autotiling | ||
autotiling-rs | ||
barebox | ||
base16-builder | ||
base16-shell-preview | ||
beep | ||
brightnessctl | ||
calaos/installer | ||
cbeams | ||
cliscord | ||
cups | ||
dart-sass-embedded | ||
documentation-highlighter | ||
doge | ||
drivers | ||
dumb | ||
dxvk | ||
fastly | ||
flashfocus | ||
frescobaldi | ||
g810-led | ||
ghostscript | ||
gnu-shepherd | ||
gnuk | ||
hdt | ||
i3a | ||
ite-backlight | ||
jackaudio | ||
jitsi-meet-prosody | ||
lguf-brightness | ||
libcardiacarrest | ||
lightspark | ||
lilypond | ||
logging | ||
long-shebang | ||
lssecret | ||
meson-tools | ||
mlxbf-bootimages | ||
mnemonicode | ||
moonfire-nvr | ||
mxt-app | ||
my-env | ||
nflz | ||
opcua-client-gui | ||
openrussian-cli | ||
opensbi | ||
plasma-hud | ||
present | ||
ptouch-print | ||
pylode | ||
rich-cli | ||
riscv-pk | ||
rivalcfg | ||
rkdeveloptool | ||
rkdeveloptool-pine64 | ||
sagetex | ||
sailsd | ||
scimark | ||
scrcpy | ||
screensavers | ||
seafile-shared | ||
sndio | ||
solfege | ||
sound-of-sorting | ||
source-and-tags | ||
stabber | ||
superd | ||
t-rec | ||
talkfilters | ||
tmux-plugins | ||
tpm2-pkcs11 | ||
uboot | ||
uq | ||
urbit | ||
vencord | ||
wiki-tui | ||
xosd | ||
zeyple |