about summary refs log tree commit diff
path: root/pkgs/stdenv
Commit message (Collapse)AuthorAge
* Merge pull request #188334 from amjoseph-nixpkgs/pr/bootstrapFiles/mips64n32Bernardo Meurer2023-03-09
|\
| * https://github.com/NixOS/nixpkgs/pull/188334#issuecomment-1445425412Adam Joseph2023-03-07
| |
| * pkgs/stdenv/linux: bootstrap-files for third (and final) mips ABI: n32Adam Joseph2022-08-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR provides the Hydra-generated bootstrap tarballs for mips64el-linux-gnuabin32. With this PR we now have the bootstrap-file for all three little-endian ABIs on mips: n64, n32, and o32. I do not currently plan to do big-endian mips unless some motivation arises; all mips chips are bi-endian and Debian has dropped big-endian support due to lack of interest. I'll be following the script used in #151399, #168199, and #183487. Files came from [this](https://hydra.nixos.org/build/188389586#tabs-summary) Hydra build, which used nixpkgs revision 97d9c84e1df4397b43ecb39359f1bd003cd44585 to instantiate: ``` /nix/store/hakn8s85s9011v61r6svp5qy8x1y64fv-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32.drv ``` and then built: ``` /nix/store/rjgybpnf3yiqyhvl2n2lx31jf800fii2-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32 ``` I downloaded these files from Hydra and prefetched them into the nix store with the following commands: ``` STOREPATH=rjgybpnf3yiqyhvl2n2lx31jf800fii2-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32 OPTIONS="--option binary-caches https://cache.nixos.org --option trusted-public-keys cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" nix store prefetch-file \ file://$(nix store add-file --name bootstrap-tools.tar.xz $(nix-store ${OPTIONS} -r /nix/store/${STOREPATH})/on-server/bootstrap-tools.tar.xz) nix store prefetch-file --executable \ file://$(nix store add-path --name busybox $(nix-store ${OPTIONS} -r /nix/store/${STOREPATH})/on-server/busybox) ``` These commands produced the following output: ``` Downloaded 'file:///nix/store/w6zzd2fx2vhmjfcf5h5zc01m0swldpbw-bootstrap-tools.tar.xz' to '/nix/store/6w0f0mqblrghvh6yjwcb4xdqq9x50lbl-w6zzd2fx2vhmjfcf5h5zc01m0swldpbw-bootstrap-tools.tar.xz' (hash 'sha256-LWrpN6su2yNVurUyhZP34OiZyzgh7MfN13fIIbou8KI='). Downloaded 'file:///nix/store/nqagw1kgdz1zlmqi00qfjrmwqk3g3bgd-busybox' to '/nix/store/i361xhbdhhnvg7zd637xpm63vbl80s0s-nqagw1kgdz1zlmqi00qfjrmwqk3g3bgd-busybox' (hash 'sha256-4N3G1qYA7vitjhsIW17pR6UixIuzrq4vZXa8F0/X4iI='). ``` I used the hashes from the output above to create the `fetchurl` invocation which is part of this commit. I then started the bootstrap with the following command: ``` nix build -L -f . --arg localSystem '(import ./lib).systems.examples.mips64el-linux-gnuabin32' hello ``` As @lovesegfault requested, here are the the `sha256sum`s of all the `on-server` components for extra verification: ``` sha256sum /nix/store/${STOREPATH}/on-server/* ``` which produced the following output: ``` 2d6ae937ab2edb2355bab5328593f7e0e899cb3821ecc7cdd777c821ba2ef0a2 /nix/store/rjgybpnf3yiqyhvl2n2lx31jf800fii2-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32/on-server/bootstrap-tools.tar.xz 01633f71135cb9ab1b5ce3ebb67e80cbf288739729bffc1350c1552f6f8df34b /nix/store/rjgybpnf3yiqyhvl2n2lx31jf800fii2-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32/on-server/busybox ```
* | Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross2023-02-23
|\ \ | | | | | | | | | | | | Conflicts: pkgs/development/libraries/pmdk/default.nix
| * | treewide: move NIX_CFLAGS_COMPILE to the env attrsetArtturin2023-02-22
| | | | | | | | | | | | | | | | | | | | | | | | with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
* | | Merge staging-next into staginggithub-actions[bot]2023-02-15
|\| |
| * | treewide: use lib.optionalsFelix Buehler2023-02-14
| | |
* | | Merge staging-next into staginggithub-actions[bot]2023-02-15
|\| |
| * | treewide: use optionalStringFelix Buehler2023-02-13
| | |
* | | Merge staging-next into staginggithub-actions[bot]2023-02-13
|\| |
| * | Merge master into staging-nextgithub-actions[bot]2023-02-13
| |\ \
| | * | make-derivation.nix: Support inputDerivation on disallowedReferencesRobert Hensing2023-02-07
| | | |
* | | | stdenv: allow propagating propagated dependencies separately from theArtturin2023-02-07
| | | | | | | | | | | | | | | | | | | | | | | | fixup phase for makeSetupHook
* | | | Merge staging-next into staginggithub-actions[bot]2023-02-07
|\| | |
| * | | Merge master into staging-nextgithub-actions[bot]2023-02-07
| |\| |
| | * | Merge pull request #206773 from SuperSandro2000/cleanup-unused-bindingsfigsoda2023-02-06
| | |\ \ | | | | | | | | | | treewide: cleanup some unused bindings
| | | * | treewide: cleanup some unused bindingsSandro Jäckel2023-02-07
| | | | |
* | | | | Merge pull request #214937 from hercules-ci/support-NIX_ATTRS-envsArtturi2023-02-06
|\ \ \ \ \
| * | | | | stdenv/setup.sh: Allow NIX_ATTRS_{JSON,SH}_FILE to be set correctly by NixRobert Hensing2023-02-06
| | | | | |
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-06
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / /
| * | | | Merge master into staging-nextgithub-actions[bot]2023-02-06
| |\| | |
| | * | | Merge pull request #214304 from obsidiansystems/pkg-config-metaJohn Ericson2023-02-06
| | |\ \ \ | | | | | | | | | | | | meta.pkgConfigModules: Init convention
| | | * | | meta.pkgConfigModules: Init conventionJohn Ericson2023-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See docs. Follow-up work: - Existing packages should be converted - `defaultPkgConfigPackages` should assert on `meta.pkgConfigModules` and let `tests.pkg-config` alone test the build results. CC @sternenseemann Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-05
|\| | | | |
| * | | | | Merge master into staging-nextgithub-actions[bot]2023-02-05
| |\| | | |
| | * | | | Merge pull request #213633 from alyssais/mkDerivation-meson-exoticsuperherointj2023-02-04
| | |\ \ \ \ | | | |/ / / | | |/| | | stdenv.mkDerivation: fix meson for some archs
| | | * | | stdenv.mkDerivation: fix meson for some archsAlyssa Ross2023-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | platform.uname.processor seems to be what we want in many more cases than what we were using before — it does the right thing for aarch64, x86_64, riscv32, riscv64, mips, mips64, powerpc, and powerpc64 (the latter three of which were broken before). This fixes cross-compilation of systemd for PowerPC/POWER platforms.
* | | | | | Merge pull request #211685 from Artturin/splicingstuff1-splitArtturi2023-02-03
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | stdenv.mkDerivation: Make overrideAttrs overridableRobert Hensing2023-01-15
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 43c8b43f808f48fd5600afcad5503eaeaf6d71b7)
* | | | | | Merge pull request #211783 from R-VdP/fix_disallowed_referencesArtturi2023-01-31
|\ \ \ \ \ \ | | | | | | | | | | | | | | stdenv: don't include drvs in disallowedRefs as build-time deps.
| * | | | | | stdenv: don't include drvs in disallowedRefs as build-time deps.R-VdP2023-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Derivations listed as disallowedReferences or disallowedRequisites, currently end up as build-time dependencies. This is problematic since the disallowed derivations will be built by nix as build-time dependencies, while those derivations might take a very long time to build, or might not even build successfully on the platform used. However, in order to scan for disallowed references in the final output, knowing the out path is sufficient, and the out path can be calculated from the derivation without needing to build it, saving time and resources. While the problem is less severe for allowedReferences and allowedRequisites, since we want the derivation to be built eventually, we would still like to get the error early and without having to wait while nix builds a derivation that might not be used (e.g. if we listed the wrong one).
* | | | | | | Merge staging-next into staginggithub-actions[bot]2023-01-31
|\ \ \ \ \ \ \ | |/ / / / / / |/| | / / / / | | |/ / / / | |/| | | |
| * | | | | Merge master into staging-nextgithub-actions[bot]2023-01-31
| |\ \ \ \ \
| | * | | | | Revert "lib/meta.nix: platformMatch: allow predicate functions"Adam Joseph2023-01-27
| | | |/ / / | | |/| | | | | | | | | | | | | | | This reverts commit b7d097438b9b0f782a707f3295d320d824810864.
* | | | | | Merge pull request #211910 from tejing1/srcs-name-collisionSergei Trofimovich2023-01-29
|\ \ \ \ \ \ | | | | | | | | | | | | | | stdenv: Improve error from `stdenv` when `srcs` is used with colliding directories
| * | | | | | improve error when srcs is used with directories with the same post-hash nameJeff Huffman2023-01-29
| | | | | | |
* | | | | | | Merge pull request #211126 from trofi/binutils-updateSergei Trofimovich2023-01-29
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | binutils: 2.39 -> 2.40
| * | | | | | binutils: 2.39 -> 2.40Sergei Trofimovich2023-01-27
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few potentially disruptive changes: - binutils does not embed ${binutils-unwrapped}/lib as a default library search path anymore. This will cause link failures for -lbfd -lopcodes users that did not declare their dependency on those libraries. They will need to add `libbfd` and `libopcodes` attributes to build inputs. - `libbfd` and `libopcodes` attributes now just reference `binutils-unwrapped.{dev,lib}` pair of attributes without patching `binutils` build system. We don't patch build system anymore and use multiple outputs out of existing `binutils` build. That makes the result more maintainable: no need to handle ever growing list of dependencied of `libbfd`. This time new addition was `libsframe`. To accomodate `out` / `lib` output split I had to remove `lib` -> `bin` backreference by removing legacy lookup path for plugins. I also did not enable `zstd` just yet as `nixpkgs` version of `zstd` package pulls in `cmake` into bootstrap sequence. Changes: https://lists.gnu.org/archive/html/info-gnu/2023-01/msg00003.html
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-01-25
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | llvmPackages: use libcxxrt on FreeBSDAlyssa Ross2023-01-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD doesn't use LLVM's cxxabi implementation, for backwards compatibility reasons. Software expects the libcxxrt API when building on FreeBSD. This fixes the build of pkgsCross.x86_64-freebsd.boost.
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-01-22
|\| | | | |
| * | | | | lib/meta.nix: platformMatch: allow predicate functionsAdam Joseph2023-01-22
| | | | | |
* | | | | | Merge remote-tracking branch 'origin/staging' into staging-nativeCheckInputsGuillaume Girol2023-01-21
|\ \ \ \ \ \
| * | | | | | make-bootstrap-tools.nix: fix for wrapped gzipArtturin2023-01-21
| | |_|/ / / | |/| | | |
| * | | | | Merge remote-tracking branch 'origin/staging-next' into stagingSergei Trofimovich2023-01-20
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: pkgs/development/libraries/qt-6/modules/qtbase.nix pkgs/stdenv/linux/make-bootstrap-tools.nix
* | \ \ \ \ \ Merge branch 'nativeCheckInputs' into staging-nativeCheckInputsGuillaume Girol2023-01-21
|\ \ \ \ \ \ \ | |/ / / / / / |/| | / / / / | | |/ / / / | |/| | | |
| * | | | | mkDerivation: introduce native checkInputs and nativeCheckInputsGuillaume Girol2023-01-21
| |/ / / / | | | | | | | | | | | | | | | | | | | | When strictDeps is set, only nativeCheckInputs are added to PATH and only checkInputs can be linked against. See https://github.com/NixOS/nixpkgs/issues/161570
| * / / / make-bootstrap-tools.nix: don't pull in pkgs.glibc in test (#210038)sternenseemann2023-01-16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | `builtins.baseNameOf` retains any string context, causing the test derivation to incorrectly depend on `pkgs.glibc`. All we really want is to know what the dynamicLinker is called, but we don't need it to be present in store. Thanks to Adam Joseph for spotting this.
* | | | treewide: add names to all setup hooksAlyssa Ross2023-01-19
| | | |
* | | | stdenv: don't clobber useArray and type in {prepend,append}ToVarAndrew Childs2023-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some other packages, for example ruby gems via buildRubyGem, use a variable called "type" internally, which is overwritten here and causes failures like: failure: $gempkg path unspecified Fix for changes in 11c3127e38dafdf95ca71a85b1591a29b67e0c09.