Skip to content

Commit

Permalink
fix: python lsp not finding script deps
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Jan 19, 2024
1 parent 3959174 commit b645aeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
};

devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [niv ruff-lsp];
buildInputs = with pkgs; [niv pkgs.python3.pkgs.semver ruff-lsp];
};

packages.${system} = let
Expand All @@ -38,14 +38,17 @@
packageSets.nixpkgs = pkgs;
modules = [
{
config.deps.src = src;
config.deps.version = version;
config.deps = {
inherit src version;
};
}
./default.nix
{
paths.projectRoot = ./.;
paths.projectRootFile = "flake.nix";
paths.package = ./.;
paths = {
projectRoot = ./.;
projectRootFile = "flake.nix";
package = ./.;
};
}
];
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-sources/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ writeShellApplication {
runtimeInputs = [
gh
niv
(python3.withPackages (ps: with ps; [semver]))
(python3.withPackages (pkgs: with pkgs; [semver]))
];
text = ''
gh api repos/microsoft/vscode-js-debug/releases --jq '.[].tag_name' | python ${./update-sources.py}
Expand Down

0 comments on commit b645aeb

Please sign in to comment.