!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

233 Members
75 Servers

Load older messages


SenderMessageTime
22 Jul 2023
@trofi:matrix.orgtrofi joined the room.12:40:25
@trofi:matrix.orgtrofi

As a workaround you can try staging version of it where builder.sh was removed: $ nix develop nixpkgs/staging#pkgsStatic.stdenv.cc.cc.

I think nix develop assumes that $drv.args is -e stdenv/generic/default-builder.sh and sources that. You might be able to sourcce it manually.

nix develop also uses nixpkgs#bashInteractive instead of drv's bash and does many other ad-hoc things: https://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L484

17:34:17
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24440018:35:28
23 Jul 2023
@emilytrau:matrix.orgemilytrauLooking for opinions and suggestions :) https://github.com/NixOS/nixpkgs/issues/24496604:02:41
@tni:matrix.orgtnican someone help review + merge https://github.com/NixOS/nixpkgs/pull/243595? I'm hoping it can make it into the next staging-next cycle22:28:47
25 Jul 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:57:09
27 Jul 2023
@ribosomerocker:matrix.orgribosomerocker joined the room.03:04:36
28 Jul 2023
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24580701:30:28
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24590917:42:51
30 Jul 2023
@trofi:matrix.orgtrofiAttempt to fix stomping of multiple parallel strips against the same file under multiple symlinks: https://github.com/NixOS/nixpkgs/pull/24616410:36:58
3 Aug 2023
@cafkafk:nixos.devChristina Sørensen joined the room.05:58:33
@artturin:matrix.orgArtturin

https://github.com/NixOS/nixpkgs/pull/238525

This change adds a flag to update shebang paths that point to the Nix store. This is particularly useful when a cross-compiled package uses same script at compile-time and run-time, but the interpreter must be changed since hostPlatform ≠ buildPlatform.

21:48:07
@raitobezarius:matrix.orgraitobezariusHello there, is there any doc on how to use a cross compiled bootstrap tool to replace the ones that nixpkgs bundles?22:31:44
6 Aug 2023
@vcunat:matrix.orgvcunathttps://github.com/NixOS/nixpkgs/pull/24747807:52:25
10 Aug 2023
@p14:matrix.orgp14 I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907) 10:44:44
@artturin:matrix.orgArtturin
In reply to @p14:matrix.org
I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907)
NIX_DEBUG is the variable used by setup.sh
10:52:12
@artturin:matrix.orgArtturinSet it to 610:52:17
@p14:matrix.orgp14Ah, thanks. I also managed to turn it on directly using preHook = "set -x" which revealed that: /nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7/nix-support/setup-hook is empty where /nix/store/kcc44cgi7bclnhgs66v50a1jhr6nsqy5-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-16.0.6/nix-support/setup-hook is 5 kiB10:52:50
@p14:matrix.orgp14and explains the missing $AR.10:53:00
@p14:matrix.orgp14 But the nix-diff of the llvm-binutils wrapper is pretty boring 10:53:40
@p14:matrix.orgp14uuuh, I turned on NIX_DEBUG and now 15.0.7's setup-hook is not empty. Nice..10:59:58
@p14:matrix.orgp14Oh dear. Turning on NIX_DEBUG for the binutils wrapper actually causes debug print output to end up in setup-hook.11:01:43
@p14:matrix.orgp14Or at least something which shouldn't be ending up in there.11:02:07
@p14:matrix.orgp14

My repro is to insert NIX_DEBUG = if bintoolsName == "llvm-binutils" then 6 else null; onto pkgs/build-support/bintools-wrapper/default.nix and then build for example pkgsLLVM.llvmPackages_15.compiler-rt-no-libc.stdenv.cc. It results in:

x86_64-unknown-linux-gnu-clang-wrapper> /nix/store/mldrk9c17hjsqjv938hp1192i7f56844-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7/nix-support/setup-hook: line 1: /nix/store/yl01rd58vp4m8bbhkihpk132cprfmx6f-expand-response-params/bin/expand-response-params: Permission denied

And the first line of setup-hook reads:

@expandResponseParams@ -> /nix/store/yl01rd58vp4m8bbhkihpk132cprfmx6f-expand-response-params/bin/expand-response-params
11:04:07
@p14:matrix.orgp14I guess I'm seeing: https://github.com/NixOS/nixpkgs/blob/2283bf968f3b6a2f100d81fb43db6d91f6aea706/pkgs/stdenv/generic/setup.sh#L93611:09:48
@p14:matrix.orgp14Shouldn't this really go to stderr?11:09:52
@p14:matrix.orgp14

Wow, this is unfortunate. If I build:

nix build --rebuild pkgsLLVM.llvmPackages_15.compiler-rt-no-libc.stdenv.cc.bintools

I get:

-r--r--r-- 1 root root 0 Jan  1  1970 result/nix-support/setup-hook

Now if I try to determine why setup-hook is empty by setting the preHook to include 'set -x', then, it's non-empty and works correctly:

preHook = if bintoolsName == "llvm-binutils" then "set -x" else null;

What's going on?

11:15:53
@p14:matrix.orgp14Redacted or Malformed Event11:16:13
@p14:matrix.orgp14 *

Wow, this is unfortunate. If I build:

nix build --rebuild pkgsLLVM.llvmPackages_15.compiler-rt-no-libc.stdenv.cc.bintools

I get:

-r--r--r-- 1 root root 0 Jan  1  1970 result/nix-support/setup-hook

Now if I try to determine why setup-hook is empty by setting the preHook to include 'set -x', then, it's non-empty and works correctly:

preHook = if bintoolsName == "llvm-binutils" then "set -x" else null;

I end up with:

-r--r--r-- 1 root root 4781 Jan  1  1970 result/nix-support/setup-hook


What's going on?
11:16:15
@p14:matrix.orgp14 *

Wow, this is unfortunate. If I build:

nix build --rebuild pkgsLLVM.llvmPackages_15.compiler-rt-no-libc.stdenv.cc.bintools

I get:

-r--r--r-- 1 root root 0 Jan  1  1970 result/nix-support/setup-hook

Now if I try to determine why setup-hook is empty by setting the preHook to include 'set -x', then, it's non-empty and works correctly:

preHook = if bintoolsName == "llvm-binutils" then "set -x" else null;

I end up with:

-r--r--r-- 1 root root 4781 Jan  1  1970 result/nix-support/setup-hook

What's going on?

11:16:32

Show newer messages


Back to Room ListRoom Version: 9