Commit Graph

6 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
24b51ca50a octavePackages.ocl: 1.2.1 -> 1.2.2 2023-12-17 09:39:01 +00:00
Doron Behar
46293d2b9a octave.pkgs: Update all with script 2023-03-28 13:40:44 +03:00
Karl Hallsby
be699cf06b octavePackages: run update script on all packages
octavePackages.arduino: 0.7.0 -> 0.10.0

octavePackages.audio: 2.0.3 -> 2.0.5

octavePackages.bim: 1.1.5 -> 1.1.6

octavePackages.communications: 1.2.3 -> 1.2.4

octavePackages.control: 3.3.1 -> 3.4.0

octavePackages.dicom: 0.4.0 -> 0.5.1

octavePackages.ga: 0.10.2 -> 0.10.3

octavePackages.general: 2.1.1 -> 2.1.2

octavePackages.generate_html: 0.3.2 -> 0.3.3

octavePackages.image: 2.12.0 -> 2.14.0

octavePackages.instrument-control: 0.7.0 -> 0.8.0

octavePackages.interval: 3.2.0 -> 3.2.1

octavePackages.io: 2.6.3 -> 2.6.4

octavePackages.mapping: 1.4.1 -> 1.4.2

octavePackages.msh: 1.0.10 -> 1.0.12

octavePackages.nan: 3.6.0 -> 3.7.0

octavePackages.ncarray: 1.0.4 -> 1.0.5

octavePackages.netcdf: 1.0.14 -> 1.0.16

octavePackages.ocl: 1.1.1 -> 1.2.0

octavePackages.octclip: 2.0.1 -> 2.0.3

octavePackages.octproj: 2.0.1 -> 3.0.2

octavePackages.optim: 1.6.1 -> 1.6.2

octavePackages.optiminterp: 0.3.6 -> 0.3.7

octavePackages.signal: 1.4.2 -> 1.4.3

octavePackages.sockets: 1.2.1 -> 1.4.0

octavePackages.statistics: 1.4.2 -> 1.5.2

octavePackages.stk: 2.6.1 -> 2.7.0

octavePackages.strings: 1.2.0 -> 1.3.0

octavePackages.struct: 1.0.17 -> 1.0.18

octavePackages.video: 2.0.0 -> 2.0.2

octavePackages.windows: 1.6.1 -> 1.6.3

octavePackages.zeromq: 1.5.3 -> 1.5.5
2023-03-15 15:58:02 +02:00
OPNA2608
af8c2038fd octavePackages.ocl: Mark broken on Darwin 2021-12-26 23:40:58 +01:00
Karl Hallsby
656fbc8b4c octave.pkgs.ocl: init at 1.1.1 2021-02-24 21:00:51 +02:00