nixpkgs/pkgs/build-support
Simon Žlender d105e0e5fe deterministic-uname: Overridable platform
Some packages rely on `uname` to configure the host target which breaks cross-compilation.
We can have more control over the evaluation of `uname` by placing `deterministic-uname` into the package's `nativeBuildInputs`.
However the current `deterministic-uname` is hardcoded to `buildPlatform`.

This PR introduces a build argument `forPlatform` to `deterministic-uname` which allows you to override the platform it reports.

Example:
```nix
deterministic-uname.override { forPlatform = stdenv.hostPlatform; }
```

(cherry picked from commit 2ed51a3ff0)
2024-06-06 19:10:09 +00:00
..
add-driver-runpath addDriverRunpath: init 2023-12-03 07:22:51 -08:00
add-opengl-runpath
agda haskellPackages.Agda: Split outputs to reduce closure size 2024-04-07 16:36:57 +03:00
alternatives treewide: simplify exec format conditionals 2024-01-07 17:43:33 -08:00
appimage wrapAppImage: default extraPkgs to pkgs: [ ] 2024-05-13 20:32:47 +02:00
binary-cache
bintools-wrapper bintools: Add dynamic loader path for FreeBSD native 2024-05-21 08:20:45 +02:00
build-bazel-package
build-fhsenv-bubblewrap buildFHSEnvBubblewrap: allow more varied $DISPLAY syntax 2024-05-16 10:14:07 -05:00
build-fhsenv-chroot build-fhs-user-env: add compatibility for pipewire alsa emulation 2024-02-02 22:38:49 -08:00
build-graalvm-native-image buildGraalvmNativeImage: fix UTF-8 encoding issue for JVM dependencies 2024-01-26 11:12:54 +00:00
buildenv build-support/buildenv: Hoist builder instantiation 2023-12-29 03:04:46 +13:00
cc-wrapper wrapCC, wrapBintools: move expand-response-params bootstrapping out 2024-04-18 20:49:13 +02:00
coq Avoid top-level with ...; in pkgs/build-support/coq/extra-lib.nix 2024-03-19 22:31:19 +01:00
dart dartHooks.dartInstallHook: Add trailing newline 2024-01-18 12:17:43 +11:00
deterministic-uname deterministic-uname: Overridable platform 2024-06-06 19:10:09 +00:00
dhall
dlang dub-to-nix,buildDubPackage: allow git-type dependencies 2024-05-08 14:01:35 +02:00
docker Merge pull request #292760 from PigeonF/dockertools-build-layered-compressor 2024-04-08 09:24:18 +02:00
dotnet dotnet: fix dotnet executables in darwin sandbox 2024-05-04 19:14:39 -03:00
emacs Merge branch 'master' into staging-next 2023-12-31 02:31:32 +01:00
expand-response-params expand-response-params: add description 2024-04-18 20:49:13 +02:00
fake-nss
fetch9front
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdebianpatch
fetchdocker
fetchfirefoxaddon
fetchfossil fetchfossil: support SRI hashes 2023-11-22 09:47:57 +01:00
fetchgit fetchgit: Support fetching signed tags over dumb http transport 2024-04-22 02:16:02 +02:00
fetchgitea
fetchgithub fetchFromGitHub: fix compatibility issue with nix-prefetch 2024-01-30 12:21:13 +01:00
fetchgitiles
fetchgitlab Merge pull request #268304 from panicgh/fetchgitlab-sparse-forcegit 2023-12-17 03:34:52 +01:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnextcloudapp fetchNextcloudApp: support passing hash to fetchzip 2024-03-21 16:24:29 +00:00
fetchpatch
fetchpijul build-support/fetchpijul: Enable strictDeps 2023-12-06 18:40:07 +01:00
fetchpypi
fetchpypilegacy fetchPypiLegacy: add test 2024-02-17 17:11:59 +13:00
fetchrepoorcz
fetchrepoproject Avoid top-level with ...; in pkgs/build-support/fetchrepoproject/default.nix 2024-03-19 22:31:19 +01:00
fetchs3
fetchsavannah
fetchsourcehut Avoid top-level with ...; in pkgs/build-support/fetchsourcehut/default.nix 2024-03-19 22:31:19 +01:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchtorrent tests.fetchtorrent: add watched-cd license 2023-12-02 02:04:50 +01:00
fetchurl fetchurl: add codemirror.dlang.org to the list of dub mirrors 2024-04-21 18:51:45 +10:00
fetchzip fetchzip: allow dropping unzip 2024-01-12 20:26:16 +01:00
flutter treewide: wrapGAppsHook → wrapGAppsHook3 2024-04-27 02:23:22 +02:00
go Merge branch 'staging-next' into staging 2024-05-03 19:03:51 +02:00
icon-conv-tools
install-shell-files
kernel nixos/udev: compress firmware with zstd if possible 2024-04-19 16:46:25 +02:00
lib build-support/meson: explicitly use ambiant CMake during cross compilation 2024-05-11 13:32:14 +02:00
libredirect libredirect: don't test LFS64 functions on musl 2024-03-02 01:02:36 +01:00
make-darwin-bundle
make-desktopitem
make-hardcode-gsettings-patch makeHardcodeGsettingsPatch: Support applying patches 2023-11-21 08:42:47 +01:00
make-pkgconfigitem
make-startupitem
mkshell doc: add explanatory code comment 2023-11-13 20:59:33 +01:00
mono-dll-fixer
nix-gitignore Avoid top-level with ...; in pkgs/build-support/nix-gitignore/default.nix 2024-03-19 22:31:19 +01:00
node prefetch-npm-deps: switch to data-encoding 2024-04-22 23:14:15 +10:00
nuke-references nuke-references: add meta.mainProgram 2024-01-05 15:04:14 -05:00
ocaml
oci-tools ociTools.buildContainer: writeReferencesToFile -> writeClosure 2024-03-19 05:30:54 +08:00
php buildsupport/php: add passthru.updateScript 2024-05-09 14:42:27 +02:00
pkg-config-wrapper pkg-config: set prefixed mainProgram for cross compilation 2024-04-04 14:55:10 -04:00
portable-service
prefer-remote-fetch prefer-remote-fetch: add more fetchers which prefer local builds 2023-11-29 10:25:20 +01:00
references-by-popularity referenceByPopularity: rename in comment writeReferencesToFile -> writeClosure 2024-03-19 05:30:53 +08:00
release Avoid top-level with ...; in pkgs/build-support/release/default.nix 2024-03-19 22:31:19 +01:00
remove-references-to treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
replace-secret replace-secret: add mainProgram 2023-11-26 16:27:42 +02:00
rust build-support/rust: rewrite workspace dependency inheritance 2024-05-10 20:55:39 +03:00
setup-hooks treewide: wrapGAppsHook → wrapGAppsHook3 2024-04-27 02:23:22 +02:00
singularity-tools singularity-tools.buildImages: use writeClosure 2024-03-19 05:30:54 +08:00
src-only
substitute Merge pull request #291569 from Luflosi/fix-substituteAll-typo 2024-04-04 18:07:15 +08:00
substitute-files
testers testers.lycheeLinkCheck: Edit documentation and messages 2024-05-27 05:55:46 +00:00
trivial-builders Merge pull request #300538 from ShamrockLee/write-shell-application-extra 2024-04-22 22:45:44 +02:00
vm linux kernel: prefer zstd where possible 2024-04-19 16:45:35 +02:00
wrapper-common
writers Avoid top-level with ...; in pkgs/build-support/writers/test.nix 2024-03-19 22:31:19 +01:00
build-maven.nix
checkpoint-build.nix checkpointBuildTools.prepareCheckpointBuild: stop at install 2024-03-13 20:11:31 +08:00
closure-info.nix closureInfo: handle empty path set explicitly 2023-11-04 09:54:41 +01:00
make-impure-test.nix
plugins.nix
replace-dependency.nix Avoid top-level with ...; in pkgs/build-support/replace-dependency.nix 2024-03-19 22:31:19 +01:00
setup-systemd-units.nix
source-from-head-fun.nix