Commit Graph

29 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
R. Ryantm
077b396406 ants: 2.5.2 -> 2.5.3 2024-07-25 02:08:42 +00:00
R. Ryantm
27993b515e ants: 2.5.1 -> 2.5.2 2024-06-10 04:29:13 +00:00
R. Ryantm
f61c011407 ants: 2.5.0 -> 2.5.1 2024-01-26 01:12:12 +01:00
Pol Dellaiera
55b00aa1f7
ants: update postInstall attribute 2023-09-02 23:09:28 +02:00
Pol Dellaiera
ad1e8a5b43
ants: update meta attributes 2023-09-02 23:08:44 +02:00
Pol Dellaiera
d04a1a598e
ants: use finalAttrs pattern 2023-09-02 22:18:19 +02:00
Pol Dellaiera
35145f9df0
ants: reformat file using nixpkgs-fmt 2023-09-02 22:17:19 +02:00
R. Ryantm
875e737bfa ants: 2.4.4 -> 2.5.0 2023-09-02 11:57:30 +00:00
Ben Darwin
cf573698b1 ants: 2.4.3 -> 2.4.4 2023-05-02 12:29:21 -04:00
Ben Darwin
b27838807e ants: unpin vtk dependency 2023-01-27 00:21:26 -05:00
R. Ryantm
e0db41ab1a ants: 2.4.2 -> 2.4.3 2023-01-09 09:48:53 -06:00
Ben Darwin
9c748218f2 itk: unstable -> 5.3.0 2022-12-27 09:06:37 +01:00
R. Ryantm
4ab06e3223 ants: 2.4.1 -> 2.4.2 2022-10-19 09:19:31 +08:00
Ben Darwin
961b308fe1 ants: 2.2.0 -> 2.4.1 2022-09-04 13:36:24 -04:00
figsoda
3109ff5765 treewide: avoid use of lib.optional with list in inputs 2021-10-04 13:02:42 -04:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Ben Darwin
ee7d83e648 ants: unbreak on Darwin 2020-12-01 14:17:54 -05:00
Ben Darwin
5e716bf469 vtk: 7.1.1 -> 8.2.0
- also create vtk_7 as several packages don't build with 8.x:
  - itk5: vtkVersion.h header not found at compile time
  - ants: version in tree (2.2.0) is incompatible with 8.2
  - itk4: ants depends on both vtk and itk4, so use vtk_7
  - gdcm: vtk header issue
  - python3Packages.vtk: Python C API compilation error with Python 3.8

- upgrade vtkWithQt4 -> vtkWithQt5
2020-05-11 17:54:29 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Linus Heckemann
f6182da2c6 ants: use itk 4.x 2019-09-13 11:54:21 +02:00
Franz Pletz
394bee72db
ants: fix build with gcc8 2019-06-17 07:26:00 +02:00
Matthew Bauer
6ed49262f5 treewide: remove BUILD_TESTING flag
This is now set by CMake
2019-03-11 10:11:28 -04:00
Matthew Bauer
2c47a4229f treewide: remove ctest usages
These are already in the generated makefiles!
2018-11-18 19:31:02 -06:00
Ben Darwin
c7bbe471b0 ants: bump version and fix sandboxed build 2017-09-20 18:42:34 -04:00
Ben Darwin
fbc9a4d7dc ants: set $ANTSPATH variable in shell scripts 2017-03-22 16:01:05 -04:00
Ben Darwin
05359c327b ANTs: init at 2.1.0 (0gyys1lf) 2017-03-01 21:06:30 -05:00