!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

218 Members
69 Servers

Load older messages


SenderMessageTime
22 Feb 2025
@p14:matrix.orgp14 I totally want that and don't think there is a way. Even more, I'd love a way to be able to customize the tags that end up on package names, so we have more than just the -static marker. I totally think there should be an overridable function on the stdenv for controlling the markers. 07:48:38
@p14:matrix.orgp14 * I totally want that and don't think there is a way. Even more, I'd love a way to be able to customize the tags that end up on package names, so we have more than just the -static marker. I think there should be an overridable function on the stdenv for controlling the markers. 07:48:47
@p14:matrix.orgp14 * I totally want that and don't think there is a way. Even more, I'd love a way to be able to customize the tags that end up on package names, so we have more than just the -static marker. I think it would be awesome to have an overridable function on the stdenv for controlling the markers. 07:49:00
@p14:matrix.orgp14 * I totally want that and don't think there is a way. It's currently keyed off stdenv.buildPlatform != stdenv.hostPlatform. Even more, I'd love a way to be able to customize the tags that end up on package names, so we have more than just the -static marker. I think it would be awesome to have an overridable function on the stdenv for controlling the markers. 07:51:55
@trofi:matrix.org@trofi:matrix.org I wonder how cross-packages get their prefix. Maybe via stdenv.mkDerivation override? 14:18:09
@artturin:matrix.orgArtturin
In reply to @trofi:matrix.org
I wonder how cross-packages get their prefix. Maybe via stdenv.mkDerivation override?

Suffix https://github.com/NixOS/nixpkgs/blob/d91510fa191473465fd66e61f1cd4a1f838ee649/pkgs/stdenv/generic/make-derivation.nix#L382

Compiler prefix https://github.com/NixOS/nixpkgs/blob/d91510fa191473465fd66e61f1cd4a1f838ee649/pkgs/build-support/cc-wrapper/default.nix#L99

14:32:34
23 Feb 2025
@rosscomputerguy:matrix.orgTristan Ross Yeah, I think we can slowly move there with equals vs like a isNative function. 02:03:14
@rosscomputerguy:matrix.orgTristan Ross I know there's canExecute but I think that's more of emulated included 02:03:43
@rosscomputerguy:matrix.orgTristan Ross So isNative would check more of whether the platforms are truly binary compatible 02:04:20
@emilazy:matrix.orgemily no, hasEmulator is distinct from canExecute 02:15:42
@rosscomputerguy:matrix.orgTristan Ross I didn't know hasEmulator exists and I didn't bring it up. 02:18:25
@emilazy:matrix.orgemily canExecute doesn't include emulators 02:33:34
@emilazy:matrix.orgemily it's purely for e.g. i686 / x86_64 02:33:45
@emilazy:matrix.orgemily (also it's emulatorAvailable actually, whoops) 02:34:09
26 Feb 2025
@sananatheskenana:matrix.orglzcunt changed their display name from sananatheskenana to lzcunt.18:20:36
7 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to qyriad.16:36:03
8 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from qyriad to Qyriad.21:41:03
9 Mar 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)I just got some really confusing differences in bash output between linux and darwin12:46:16
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
bash-5.2$ bash --version
GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin24.3.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
bash-5.2$ re='\bx\b'; [[ "x" =~ $re ]] && echo "yes!" || echo "no!"
no!
12:46:41
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)

[aleksana@Aleksana-Laptop:~]$ bash --version
GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[aleksana@Aleksana-Laptop:~]$ re='\bx\b'; [[ "x" =~ $re ]] && echo "yes!" || echo "no!"
yes!
12:47:29
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)This makes some bash scripts fail on darwin, for example https://github.com/NixOS/nixpkgs/pull/388412/checks?check_run_id=3844509717112:48:24
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Not our problem, it's difference in libc. Not sure why bash depends on libc regex function though12:59:25
@k900:0upti.meK900Because of course it does13:00:42
@k900:0upti.meK900What's a programming language without some unexpected platform specific behavior13:00:53
@emilazy:matrix.orgemily
In reply to @aleksana:mozilla.org
Not our problem, it's difference in libc. Not sure why bash depends on libc regex function though
so does Nix.
14:41:22
@emilazy:matrix.orgemilyNix regex behaves differently on libstdc++ and libc++14:41:26
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @emilazy:matrix.org
Nix regex behaves differently on libstdc++ and libc++
I don't get it, why do they not link some standalone libraries
17:21:11
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)And glibc also has a POSIX ERE function I think17:21:43
@weethet:catgirl.cloudWeetHet
In reply to @aleksana:mozilla.org
I don't get it, why do they not link some standalone libraries
I would say because at first it was unnecessary and then well, backwards compatibility
17:21:59
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Yeah17:22:14

Show newer messages


Back to Room ListRoom Version: 9