From 5da333f97bf38891ff72ccc256c8d4efc6447ecf Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Fri, 17 May 2024 14:32:40 -0300 Subject: [PATCH] Add missing pkg-config dependency to dev shell --- flake.nix | 1 + magic-nix-cache/src/main.rs | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 697c2a7..560d87c 100644 --- a/flake.nix +++ b/flake.nix @@ -51,6 +51,7 @@ packages = with pkgs; [ bashInteractive cranePkgs.rustNightly + pkg-config cargo-bloat cargo-edit diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index a63d7bf..fb97e3c 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -382,16 +382,6 @@ async fn main_cli() -> Result<()> { tokio::spawn(async move { if let Err(e) = server.await { tracing::error!("failed to start up daemon: {e}"); - - // Delete the notification file if it was created - if let Some(startup_notification_file_path) = args.startup_notification_file_path { - if File::metadata(startup_notification_file_path).await.is_ok() { - if let Err(e) = tokio::fs::remove_file(startup_notification_file_path).await { - tracing::error!("failed to remove stray startup notification file at {startup_notification_file_path:?}; you may need to delete it manually"); - } - } - } - exit(1); } });