Commit Graph

5 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
Florian Brandes
e895d0e115
openpgl: remove superfluous use of pname
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-05-02 11:12:26 +02:00
Florian Brandes
f5b77f1102
openpgl: add darwin build
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-05-02 11:12:25 +02:00
the-furry-hubofeverything
24a2adf6dc openpgl: Fix aarch64 compilation
referenced https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/openpgl/openpgl-0.5.0.ebuild
2023-10-13 16:06:42 -07:00
Andrew Marshall
b1460e25c5 openpgl: init at 0.5.0
Setting TBB_ROOT to the out path is necessary as otherwise the bundled
FindTBB.cmake tries to search the `tbb.dev` output for the library
files.

Note that embree and nanoflann are bundled within the source. The build
system is not currently setup to use non-vendored libs.

Rebuilt 25 times to test reproducibility.

Attempted a build on x86_64-darwin, and it failed, so marking this as
linux only.
2023-09-28 18:27:38 -04:00