fixups
This commit is contained in:
parent
72a4356a8b
commit
08f1410f6a
|
@ -47,7 +47,7 @@
|
||||||
]);
|
]);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShell = forAllSystems ({ system, pkgs, ... }:
|
devShells = forAllSystems ({ system, pkgs, ... }:
|
||||||
let
|
let
|
||||||
toolchain = fenixToolchain system;
|
toolchain = fenixToolchain system;
|
||||||
ci = import ./nix/ci.nix { inherit pkgs; };
|
ci = import ./nix/ci.nix { inherit pkgs; };
|
||||||
|
@ -60,7 +60,8 @@
|
||||||
.
|
.
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
{
|
||||||
|
default = pkgs.mkShell {
|
||||||
name = "nix-install-shell";
|
name = "nix-install-shell";
|
||||||
|
|
||||||
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
|
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
|
||||||
|
@ -83,6 +84,7 @@
|
||||||
]
|
]
|
||||||
++ ci
|
++ ci
|
||||||
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ libiconv darwin.apple_sdk.frameworks.Security ]);
|
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ libiconv darwin.apple_sdk.frameworks.Security ]);
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
packages = forAllSystems
|
packages = forAllSystems
|
||||||
|
@ -118,7 +120,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
|
default = harmonic;
|
||||||
harmonic = naerskLib.buildPackage
|
harmonic = naerskLib.buildPackage
|
||||||
(sharedAttrs // { });
|
(sharedAttrs // { });
|
||||||
} // lib.optionalAttrs (system == "x86_64-linux") {
|
} // lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
|
|
|
@ -84,7 +84,7 @@ impl Actionable for CreateNixTree {
|
||||||
*action_state = ActionState::Progress;
|
*action_state = ActionState::Progress;
|
||||||
tracing::debug!("Creating nix tree");
|
tracing::debug!("Creating nix tree");
|
||||||
|
|
||||||
// Just do sequential since parallizing this will have little benefit
|
// Just do sequential since parallelizing this will have little benefit
|
||||||
for create_directory in create_directories {
|
for create_directory in create_directories {
|
||||||
create_directory.execute().await?
|
create_directory.execute().await?
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ impl Actionable for CreateNixTree {
|
||||||
*action_state = ActionState::Progress;
|
*action_state = ActionState::Progress;
|
||||||
tracing::debug!("Deleting nix tree");
|
tracing::debug!("Deleting nix tree");
|
||||||
|
|
||||||
// Just do sequential since parallizing this will have little benefit
|
// Just do sequential since parallelizing this will have little benefit
|
||||||
for create_directory in create_directories.iter_mut().rev() {
|
for create_directory in create_directories.iter_mut().rev() {
|
||||||
create_directory.revert().await?
|
create_directory.revert().await?
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub(crate) async fn confirm(question: impl AsRef<str>) -> eyre::Result<bool> {
|
||||||
Some(Ok(event)) => {
|
Some(Ok(event)) => {
|
||||||
if let crossterm::event::Event::Key(key) = event {
|
if let crossterm::event::Event::Key(key) = event {
|
||||||
match key.code {
|
match key.code {
|
||||||
KeyCode::Enter => continue, // Many users will hit enter accidently when they are agreeing/declining prompts.
|
KeyCode::Enter => continue, // Many users will hit enter accidentally when they are agreeing/declining prompts.
|
||||||
// TODO(@hoverbear): Should maybe actually even wait for it?
|
// TODO(@hoverbear): Should maybe actually even wait for it?
|
||||||
KeyCode::Char('y') => break Ok(true),
|
KeyCode::Char('y') => break Ok(true),
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in a new issue