packages: unpatch deploy-rs

This commit is contained in:
Max Headroom 2021-07-04 18:54:04 +02:00
parent 6bc9799a26
commit 82997068f8
2 changed files with 1 additions and 52 deletions

View file

@ -1,7 +1,7 @@
let tools = import ./lib/tools.nix; let tools = import ./lib/tools.nix;
in with tools; in with tools;
{ inputs, pkgs, ... }: rec { { inputs, pkgs, ... }: rec {
deploy-rs = patch inputs.deploy-rs.packages.x86_64-linux.deploy-rs "patches/custom/deploy-rs"; deploy-rs = inputs.deploy-rs.packages.x86_64-linux.deploy-rs;
nix-super-unstable = let nix-super-unstable = let
system = "x86_64-linux"; system = "x86_64-linux";

View file

@ -1,51 +0,0 @@
diff --git a/src/lib.rs b/src/lib.rs
index b93b9ae..9081214 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -17,16 +17,6 @@ pub fn make_lock_path(temp_path: &str, closure: &str) -> String {
format!("{}/deploy-rs-canary-{}", temp_path, lock_hash)
}
-fn make_emoji(level: log::Level) -> &'static str {
- match level {
- log::Level::Error => "❌",
- log::Level::Warn => "⚠️",
- log::Level::Info => "",
- log::Level::Debug => "❓",
- log::Level::Trace => "🖊️",
- }
-}
-
pub fn logger_formatter_activate(
w: &mut dyn std::io::Write,
_now: &mut DeferredNow,
@@ -36,8 +26,7 @@ pub fn logger_formatter_activate(
write!(
w,
- "⭐ {} [activate] [{}] {}",
- make_emoji(level),
+ "[activate] [{}] {}",
style(level, level.to_string()),
record.args()
)
@@ -52,8 +41,7 @@ pub fn logger_formatter_wait(
write!(
w,
- "👀 {} [wait] [{}] {}",
- make_emoji(level),
+ "[wait] [{}] {}",
style(level, level.to_string()),
record.args()
)
@@ -68,8 +56,7 @@ pub fn logger_formatter_deploy(
write!(
w,
- "🚀 {} [deploy] [{}] {}",
- make_emoji(level),
+ "[deploy] [{}] {}",
style(level, level.to_string()),
record.args()
)