Damus

Recent Notes

Alba ๐ŸŒธ :v_pat: · 1w
why is the build platform made part of the derivation in nixpkgs? one would argue the result should be the same regardless of the platform used to build it, and if it differs then that's an impurity t...
Alba ๐ŸŒธ :v_pat: profile picture
hmm, but the problem is more general. even when taking build platform out of derivations, you'd still end up with massively different derivations because the build tools themselves would be different

so what would be nice is if Nix had a system where derivations can substitute certain fields for other values for the purposes of output path hashing only. nixpkgs would then use that to substitute buildPlatform by hostPlatform at hashing time, and native deps would be substituted by versions built for targetPlatform rather than hostPlatform
1
Yureka · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqxxt83adj3l3grgwtz9dkxfwvun97hz0mguc3rpe23kkdc46etcgqyn4fmn Or always run the compiler in a wasm VM
Alba ๐ŸŒธ :v_pat: profile picture
why is the build platform made part of the derivation in nixpkgs? one would argue the result should be the same regardless of the platform used to build it, and if it differs then that's an impurity to fix in the toolchain or whatever build tool is responsible, no?
1
Alba ๐ŸŒธ :v_pat: · 1w
hmm, but the problem is more general. even when taking build platform out of derivations, you'd still end up with massively different derivations because the build tools themselves would be different so what would be nice is if Nix had a system where derivations can substitute certain fields for ot...