Nixpkgs Stdenv | 260 Members | |
| 80 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Sep 2023 | ||
| Ahh, thanks | 16:59:19 | |
| but there are uses of it in packages and in the manual :? | 17:00:23 | |
I don't quite get it; I see (mkDerivationSuper args).overrideAttrs (finalAttrs: ..) suggesting that it is applying it to the derivation (the output of mkDerivationSuper). | 17:00:38 | |
| one argument to overrideAttrs is previousAttrs not finalAttrs | 17:04:56 | |
| might be the issue | 17:05:04 | |
| aha, nice and confusing :) | 17:05:11 | |
| simple bug to fix then? | 17:05:16 | |
| (introduce prevAttrs) | 17:05:19 | |
| [i'll see about testing shortly] | 17:05:47 | |
| Ah, darn, that hits the infinite recursion with the comment (following); so I guess the 'bug' here is merely that I was mislead by it being called finalAttrs.
| 17:10:51 | |
| .. and it also looks impervious to being overridden via an overlay so I'll have to override configureFlags directly instead to filter out the unwanted args. | 17:12:51 | |
In reply to @artturin:matrix.orgSent as https://github.com/NixOS/nixpkgs/pull/253160 | 17:32:16 | |
| A question about static builds. How are the So, is this a solved problem somewhere? Do I just bodge NIX_LDFLAGS with extra | 20:00:59 | |
In reply to @p14:matrix.org makeStatic should already be converting buildInputs to propagatedBuildInputs but it probably wont help if the pc file is missing stuff | 20:43:24 | |
| Yeah- I can see propagatedBuildInputs does arrange that the library paths are there, but I also don't see how it can specify what archives need to be included in the link. | 20:43:54 | |
| pkg-config should be providing that info | 20:44:18 | |
| i think.. | 20:44:24 | |
| For git and curl it's an odd one. It does a link check which fails because of the missing transistive dependencies. If you fix that, it subsequently runs curl-config which reports the correct set of things to link against :/ | 20:44:36 | |
| i.e. it seems like git's config test is just broken. But it's not the only one, there are plenty of other packages broken in that they don't know what to link against. | 20:45:15 | |
| 21:33:29 | ||
| 4 Sep 2023 | ||
| 15:27:30 | ||
| 15:28:17 | ||
| oh! this room exists! | 19:41:30 | |
| i was talking in #exotic:nixos.org about wanting to explore "wasi-native" nixpkgs, where every build is cross compiled from wasm64-wasi to your native architecture. that way, it wouldn't matter what your host is or if you're compiling "natively" or "cross" and you would be able to use heterogenous architectures to do distributed builds | 19:44:39 | |
| i think the first step of this is creating a stdenv for wasi, but i have no idea where to start with that | 19:44:58 | |
* i was talking in #exotic:nixos.org about wanting to explore "wasi-native" nixpkgs, where every build is cross compiled from wasm64-wasi to your native architecture (using boot.binfmt.emulatedSystems = [ "wasm64-wasi" ]). that way, it wouldn't matter what your host is or if you're compiling "natively" or "cross" and you would be able to use heterogenous architectures to do distributed builds | 19:45:47 | |
| 5 Sep 2023 | ||
For linux there pkgs/stdenv/linux/ and make-bootstrap-tools.nix which builds a set of minimal binaries to start from. | 02:40:49 | |
Alternatively you can coerce pkgs/stdenv/default.nix to boot from system's binaries (impure or native build): might want to float stagesNative above. | 02:42:41 | |
| 15:00:42 | ||
| 11 Sep 2023 | ||
| 02:13:22 | ||