From 27ee44fffc0c3ae9811ebf4b4d53481dd34b1076 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Wed, 25 May 2022 19:27:24 +0000 Subject: [PATCH 1/2] Update signal-hook dependency --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5231e58..7fe81e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] getopts = "0.2.21" regex = "1.3.9" -signal-hook = "0.1.10" +signal-hook = "0.3.10" terminal_size = "0.1.8" unicode-width = "0.1.1" unicode-segmentation = "1.2.0" diff --git a/src/main.rs b/src/main.rs index c4db10d..dae0741 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ use std::process; fn main() { // handle SIGPIPE - let _signal = unsafe { signal_hook::register(signal_hook::SIGPIPE, || process::exit(0)) }; + let _signal = unsafe { signal_hook::low_level::register(signal_hook::consts::signal::SIGPIPE, || process::exit(0)) }; // Parse arguments let cfg = match Config::new() { From a8aa88073ae287886ce6cdb81cfd095e2961998b Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Wed, 25 May 2022 19:28:34 +0000 Subject: [PATCH 2/2] Add Guix installation instructions --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 61830f4..f2f7b58 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,11 @@ You can install `dutree` from the official Fedora repositories: ```sh $ sudo dnf -y install dutree ``` + +## Guix + +You can install `dutree` in Guix: + +```sh +$ guix install dutree +```