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
Emily
2181ab3e22 treewide: unpin SWIG 4 2024-09-12 18:39:57 +01:00
Doron Behar
098a7874e2 casadi: always set PYTHON_PREFIX, using placeholder "out". 2024-08-13 20:58:02 +03:00
Guilhem Saurel
a3b45b9fe9 casadi: set meta.platforms
To try to see why why nixpkgs-review does not list casadi on aarch64-darwin

We still can see
`165/165 Test #165: example-py-casadi-quadrotor-ocp ............  Passed`
in `nix log .#python3Packages.pinocchio` on aarch64-darwin, so
everything looks fine anyways.
2024-08-13 18:21:00 +02:00
Guilhem Saurel
60f55d1309 casadi: use swig4
Because with swig3, the generated C++ code is not compatible with C++17.
2024-08-12 15:25:43 +02:00
Guilhem Saurel
ded2f9eca4 casadi: build on darwin 2024-08-12 15:25:43 +02:00
Guilhem Saurel
7c9c23c597 casadi: init at 3.6.5 2024-08-08 01:08:11 +02:00