Skip to content

Commit

Permalink
One last default impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Oct 16, 2023
1 parent 9ae8273 commit 07e40a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/cmd/init/handlers/php.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::cli::cmd::init::{project::Project, prompt::Prompt};

use super::{version_as_attr, Flake, Handler};
use super::{version_as_attr, Flake, Handler, Input};

const PHP_VERSIONS: &[&str] = &["8.3", "8.2", "8.1", "8.0", "7.4", "7.3"];

Expand All @@ -11,7 +11,7 @@ impl Handler for Php {
if project.has_one_of(&["composer.json", "php.ini"]) && Prompt::for_language("PHP") {
flake.inputs.insert(
String::from("loophp"),
super::Input {
Input {
reference: String::from("https://flakehub.com/f/loophp/nix-shell/0.1.*.tar.gz"),
follows: Some(String::from("nixpkgs")),
..Default::default()
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cmd/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ impl CommandExecute for InitSubcommand {
String::from("flake-compat"),
Input {
reference: FlakeHubUrl::latest("edolstra", "flake-compat"),
follows: None,
flake: false,
..Default::default()
},
);
write(
Expand Down

0 comments on commit 07e40a4

Please sign in to comment.