refactor: fix shell.nix interface

This commit is contained in:
Kiana Sheibani 2025-11-26 16:53:43 -05:00
parent 1e7ccb7acf
commit 2225d6a02c
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
8 changed files with 24 additions and 18 deletions

View file

@ -17,7 +17,7 @@
devShells = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.callPackage ./shell.nix {};
default = import ./shell.nix { inherit pkgs; };
});
};
}

View file

@ -1,4 +1,5 @@
{ python3
{
python3,
}:
python3.pkgs.buildPythonApplication {

View file

@ -1,8 +1,9 @@
{ mkShell
, python3
}:
mkShell {
{ pkgs ? import <nixpkgs> {} }:
let inherit (pkgs)
mkShellNoCC
python3
;
in mkShellNoCC {
inputsFrom = [ python3.buildEnv.env ];
packages = [ python3.pkgs.python-lsp-server ];
}