using flakes for devshell without reimporting nixpkgs multiple times
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
||||
name = pyproject.project.name;
|
||||
package = pkgs.callPackage ./default.nix { };
|
||||
shell = pkgs.callPackage ./shell.nix { };
|
||||
in
|
||||
{
|
||||
packages.${name} = package;
|
||||
devShells.${name} = shell;
|
||||
packages.default = package;
|
||||
checks = package.tests;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user