Commit Graph

18 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
Vincent Laporte
b4aca0dd32 ocamlPackages.torch: mark as broken 2024-06-12 06:22:30 +02:00
Vincent Laporte
d6d96bdff4 ocamlPackages.ctypes: 0.20.2 → 0.21.1 2024-03-05 14:50:00 +01:00
Vincent Laporte
7fb04de11f
ocamlPackages.torch: minor cleaning 2023-08-16 08:14:02 +02:00
Someone Serge
91f2495726
ocamlPackages.torch: patch for pytorch 2.0.0 compatibility 2023-04-08 02:46:55 +03:00
Vincent Laporte
12fdba08f0 ocamlPackages.torch: 0.15 → 0.17 2023-02-16 08:36:24 +01:00
Vincent Laporte
0b8181e264 ocamlPackages.torch: 0.14 → 0.15 2022-10-21 07:53:12 +02:00
Martin Weinelt
afe8ee8b47
python3Packages.torch{,-bin}: rename from pytorch{,-bin}
The proper name for a python package is the one in the setuptools
setup() call, which can also be seen on pypi.

Correct: https://pypi.org/project/torch/
Wrong: https://pypi.org/project/pytorch/

Includes a treewide rename of the attribute and creates aliases for the
old name.
2022-08-30 17:46:57 +02:00
Aaron L. Zeng
d240ca09aa ocamlPackages.torch: Mark as broken with pytorch >= 1.11 2022-04-06 07:35:24 +02:00
Vincent Laporte
7159ea47a4 ocamlPackages.torch: 0.13 → 0.14 2022-02-21 17:48:05 +01:00
Vincent Laporte
ffd387cb56 ocamlPackages.torch: 0.12 → 0.13 2021-08-24 09:40:26 +02:00
Vincent Laporte
97613b7a86 ocamlPackages.torch: mark as broken
Version 0.12 is only compatible with PyTorch 1.8
2021-06-26 17:07:42 +02:00
Vincent Laporte
2a56da2235 ocamlPackages.torch: 0.11 → 0.12 2021-03-15 15:16:12 +01:00
volth
bc0d605cf1 treewide: fix double quoted strings in meta.description
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2021-01-24 19:56:59 +07:00
Vincent Laporte
1e8ca69151 ocamlPackages.torch: 0.10 → 0.11 2020-12-14 06:28:34 +01:00
Vincent Laporte
d71a03ad69
ocamlPackages.torch: 0.9b → 0.10 (#94922)
Disable tests on Aarch64 as `src/tests/vision_tests.ml` fails.
2020-08-15 15:15:48 +02:00
Vincent Laporte
10496b449b ocamlPackages.torch: 0.8 → 0.9b 2020-06-25 08:18:16 +02:00
Ben Darwin
1e0912d772 ocamlPackages.torch: init at 0.8 2020-05-09 19:29:47 -04:00