Commit Graph

12 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
Mateusz Kowalczyk
edf67597b3
vscode-extensions.rust-lang.rust-analyzer: 0.3.1850 -> 0.3.2029
I have removed the no-longer-necessary `echo y` in
the script, along with the TODO.

The other change is to `jq` command patching
`package.json`: it appears the content has changed
so I modify the script accordingly to keep
patching the correct value with the new format.

I have verified that it works locally, though it
is just as broken as what's in current master
until there's a fix for
https://github.com/NixOS/nixpkgs/issues/326264 .
2024-07-11 18:21:05 +09:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
éclairevoyant
7bf9febfa6
vscode-extensions.*: format with nixfmt (RFC 166) 2024-05-01 06:00:27 -04:00
V
710ddf0ba9 vscode-extensions.*: use hash attribute for SRI hashes
This is a purely syntactical change and should not result in the
recompilation of any packages.

Change-Id: I07adad25402eb0cc84307cab80b74225a11df81d
2024-04-05 23:38:06 +02:00
w3irdrobot
bc19e68ee1
vscode-extensions.rust-lang.rust-analyzer: 2024-02-12 -> 2024-02-19 2024-02-20 13:51:07 -05:00
w3irdrobot
03407d20a1
vscode-extensions.rust-lang.rust-analyzer: 2023-10-16 -> 2024-02-12 2024-02-18 13:55:01 -05:00
Nilstrieb
5f262a8d7f vscode-extensions.rust-lang.rust-analyzer 2023-07-31 -> 2023-10-16 2023-11-01 13:33:23 +00:00
Yoav Lavi
972ac0f055 vscode-extensions.rust-lang.rust-analyzer: 0.3.1426 -> 0.3.1607 2023-08-02 21:01:45 +03:00
Malo Bourgon
432cd8cfae nodePackages: update 2023-04-13 15:57:47 -07:00
superherointj
9ec72407a4 vscode-extensions: remove 'with' and normalize lib usage
* Remove 'with'.
  Reasoning: 451dfa6d84

* Normalize lib usage in vscode-extensions.
2023-03-18 16:40:36 -03:00
superherointj
e5005453d3
vscode-extensions: refactor of extensions (#221878)
* vscode-extensions: fix indentation for editorconfig

* vscode-extensions.chenglou92.rescript-vscode: renamed directory

* vscode-extensions.WakaTime.vscode-wakatime: rename directory

* vscode-extensions.hashicorp.terraform: rename directory

* vscode-extensions.ms-python.python: rename directory

* vscode-extensions.sumneko.lua: rename directory

* vscode-extensions.ms-vscode.cpptools: rename directory

* vscode-extensions.ms-vscode-remote.remote-ssh: rename directory

* vscode-extensions.rust-lang.rust-analyzer: rename directory

* vscode-extensions.vadimcn.vscode-lldb: rename directory

* vscode-extensions.ms-dotnettools.csharp: rename directory

* vscode-extensions.ms-vsliveshare.vsliveshare: rename directory

* vscode-extensions.ms-toolsai.jupyter: rename directory
2023-03-18 15:54:49 -03:00