Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.9 KiB
Nix
65 lines
1.9 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
vscode-utils,
|
|
ruff,
|
|
vscode-extension-update-script,
|
|
}:
|
|
|
|
vscode-utils.buildVscodeMarketplaceExtension {
|
|
mktplcRef =
|
|
let
|
|
sources = {
|
|
"x86_64-linux" = {
|
|
arch = "linux-x64";
|
|
hash = "sha256-7tP5hFK1ohPN143Vwt6XJxk2mOXURpD7k95MRcMOCkY=";
|
|
};
|
|
"x86_64-darwin" = {
|
|
arch = "darwin-x64";
|
|
hash = "sha256-PhwYpFSeZU/00JyQ+BpVbqlmsgfJgsGsbfnBGZ5WrnA=";
|
|
};
|
|
"aarch64-linux" = {
|
|
arch = "linux-arm64";
|
|
hash = "sha256-GS9h2PkVjhButVrug7A7gx1qwLqFUI5tv/b++vhSetM=";
|
|
};
|
|
"aarch64-darwin" = {
|
|
arch = "darwin-arm64";
|
|
hash = "sha256-Twr0WcxZ4x9/85FyBHbzTKzCzZzamGKyX3yolql9l90=";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
name = "ruff";
|
|
publisher = "charliermarsh";
|
|
version = "2025.26.0";
|
|
}
|
|
// sources.${stdenvNoCC.hostPlatform.system}
|
|
or (throw "Unsupported system ${stdenvNoCC.hostPlatform.system}");
|
|
|
|
postInstall = ''
|
|
test -x "$out/$installPrefix/bundled/libs/bin/ruff" || {
|
|
echo "Replacing the bundled ruff binary failed, because 'bundled/libs/bin/ruff' is missing."
|
|
echo "Update the package to the match the new path/behavior."
|
|
exit 1
|
|
}
|
|
ln -sf ${lib.getExe ruff} "$out/$installPrefix/bundled/libs/bin/ruff"
|
|
'';
|
|
|
|
passthru.updateScript = vscode-extension-update-script { };
|
|
|
|
meta = {
|
|
license = lib.licenses.mit;
|
|
changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog";
|
|
description = "Visual Studio Code extension with support for the Ruff linter";
|
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff";
|
|
homepage = "https://github.com/astral-sh/ruff-vscode";
|
|
platforms = [
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
];
|
|
maintainers = [ lib.maintainers.azd325 ];
|
|
};
|
|
}
|