Skip to content

Commit

Permalink
don't suggest pkgs/by-name with buildPythonPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed Sep 8, 2023
1 parent 3c13b81 commit 8757b14
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,14 @@ async fn run() -> Result<()> {
};

let msg = &prompt("Enter output path (leave as empty for the current directory)");
let output = if Path::new("pkgs/by-name").is_dir() {
let output = if !matches!(
choice,
BuildType::BuildPythonPackage {
application: false,
..
}
) && Path::new("pkgs/by-name").is_dir()
{
let path = &format!(
"pkgs/by-name/{}/{attr}/package.nix",
attr.chars().take(2).collect::<String>(),
Expand Down

0 comments on commit 8757b14

Please sign in to comment.