Skip to content

Commit

Permalink
Fix warning on nix lazy-trees
Browse files Browse the repository at this point in the history
`warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like `src = ./.` to `src = builtins.path { path = ./.; name = "source"; }`.`
  • Loading branch information
Artturin committed Oct 13, 2024
1 parent 19e30fd commit 38031b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
format = "pyproject";
nativeBuildInputs = with python.pkgs; [ poetry-core ];
propagatedBuildInputs = with python.pkgs; [ requests beautifulsoup4 colorama ];
src = ./.;
src = builtins.path {
name = "hydra-check-source";
path = ./.;
};
checkInputs = with python.pkgs; [ mypy ];
checkPhase = ''
#export MYPYPATH=$PWD/src
Expand Down

0 comments on commit 38031b1

Please sign in to comment.