Commit Graph

7 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Ryan Burns
07524c2f27 libbutl: 0.16.0 -> 0.17.0
Changelog: https://git.build2.org/cgit/libbutl/log
2024-07-13 16:14:56 -07:00
Ryan Burns
5a46feaabc libbutl: 0.15.0 -> 0.16.0 2024-01-02 21:02:45 -08:00
Ryan Burns
f74d48e53a libbutl: 0.14.0 -> 0.15.0 2022-10-16 16:26:32 -07:00
Ryan Burns
1f6d7365a9 build2: enable on all platforms
These are working on darwin, and the upstream developers
even use them on windows.
2021-10-24 13:03:56 -07:00
Ryan Burns
1c6b48a423 build2: 0.13.0 -> 0.14.0
This is a breaking update (at least for the internal C++ APIs) so the
packages all need to be updated in lockstep.

Misc notes:

* build2
  * Remove unnecessary pkg-config patch
  * Trivially refresh remove-config-store-paths.patch
* libbutl
  * Enable tests now that they work with NDEBUG
* libodb
  * update 2.5.0-b.19 -> 2.5.0-b.21
2021-10-24 13:03:48 -07:00
Ryan Burns
3332be9a8b build2: split out dependencies
Build2's dependency libraries and helper programs
bpkg/bdep are all built and installed separately.

Adds a build2 setup hook for packaging purposes,
based on those of cmake and ninja.

Two small patches are applied to build2's source:
one to remove store references from the stored config,
and one to help build2 detect library dirs from NIX_LDFLAGS.
2021-09-24 17:01:18 -07:00