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"
```
* gdcm: 3.0.8 -> 3.0.9
- make use of VTK optional (enabled by default)
- use vtk instead of vtk_7
- fetching source code from GitHub (sourceforge doesn't have the last
version).
- nixpkgs-fmt
* Update pkgs/development/libraries/gdcm/default.nix
* Update pkgs/development/libraries/gdcm/default.nix
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
- 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
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/gdcm/versions.
These checks were done:
- built on NixOS
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcm2vtk passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmviewer passed the binary check.
- Warning: no invocation of /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcm2pnm had a zero exit code or showed the expected version
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmdump passed the binary check.
- Warning: no invocation of /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmdiff had a zero exit code or showed the expected version
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmraw passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmscanner passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmanon passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmgendir passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmimg passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmconv passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmtar passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcminfo passed the binary check.
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmscu passed the binary check.
- Warning: no invocation of /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmxml had a zero exit code or showed the expected version
- /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7/bin/gdcmpap3 passed the binary check.
- 13 of 16 passed binary check by having a zero exit code.
- 0 of 16 passed binary check by having the new version present in output.
- found 2.8.7 with grep in /nix/store/b5k2wcykj6s3j1rax851vpzyj6amqpvk-gdcm-2.8.7
- directory tree listing: https://gist.github.com/d4d202ac57e29b5fe6d46f1e8b7b112b
- du listing: https://gist.github.com/7244757ac1449adb1adde3c480e77c8d