Commit Graph

9 Commits

Author SHA1 Message Date
Arthur Gautier
30332725db ruff-lsp: ruff is now a python package 2024-10-25 09:28:21 -07:00
Gaetan Lepage
3e1b768ec7 python312Packages.ruff-lsp: 0.0.57 -> 0.0.58
Diff: https://github.com/astral-sh/ruff-lsp/compare/refs/tags/v0.0.57...v0.0.58

Changelog: https://github.com/astral-sh/ruff-lsp/releases/tag/v0.0.58
2024-10-17 22:11:35 +02:00
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
Gaetan Lepage
02f584f37f ruff-lsp: 0.0.56 -> 0.0.57
Diff: https://github.com/astral-sh/ruff-lsp/compare/refs/tags/v0.0.56...v0.0.57

Changelog: https://github.com/astral-sh/ruff-lsp/releases/tag/v0.0.57
2024-09-20 13:34:08 +02:00
Gaetan Lepage
8189ad34e6 ruff-lsp: 0.0.55 -> 0.0.56
Diff: https://github.com/astral-sh/ruff-lsp/compare/refs/tags/v0.0.55...v0.0.56

Changelog: https://github.com/astral-sh/ruff-lsp/releases/tag/v0.0.56
2024-09-06 15:19:52 +02:00
Gaetan Lepage
bca6423391 ruff-lsp: add nix-update-script and testVersion 2024-08-17 01:35:24 +02:00
Gaetan Lepage
7a90bd2759 ruff-lsp: 0.0.54 -> 0.0.55
Diff: https://github.com/astral-sh/ruff-lsp/compare/refs/tags/v0.0.54...v0.0.55

Changelog: https://github.com/astral-sh/ruff-lsp/releases/tag/v0.0.55
2024-08-17 01:33:41 +02:00
Gaetan Lepage
bf1125c912 ruff-lsp: format 2024-08-17 01:33:27 +02:00
Gaetan Lepage
821467f51f ruff-lsp: move to pkgs/by-name and use buildPythonApplication 2024-08-17 01:33:10 +02:00