fix: nix-shell for shell installation (github #60)

This commit is contained in:
geb 2025-06-11 15:09:26 -05:00 committed by GitHub
parent ce6c71fe58
commit 43b33f4f4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,7 +259,7 @@ pub fn shell_package(data: &Data, package_manager: &str, package: &str) -> Strin
match package_manager {
"guix" => format!("guix shell {} -- {}", package, command),
"nix" => format!(
r#"nix shell nixpkgs#{} --command "{};return""#,
r#"nix-shell -p {} --command "{};return""#,
package, command
),
_ => unreachable!("Only `nix` and `guix` are supported for shell installation"),