diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-29 21:24:11 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-29 21:24:11 +0100 |
| commit | 815d9d8bf57fa491fe062c7c839c60cdef5dffaf (patch) | |
| tree | cd3fbd45c23141d425a0ea610073af136f95d6f5 /pkgs/by-name | |
| parent | pkgs/notify-run: Init (diff) | |
| download | nixos-config-815d9d8bf57fa491fe062c7c839c60cdef5dffaf.zip | |
modules/river/keymap: Send a notification, when spawning a command fails
Diffstat (limited to 'pkgs/by-name')
| -rw-r--r-- | pkgs/by-name/no/notify-run/package.nix | 9 | ||||
| -rw-r--r-- | pkgs/by-name/no/notify-run/src/main.rs | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/by-name/no/notify-run/package.nix b/pkgs/by-name/no/notify-run/package.nix index a5b0a1d7..7bf07c1a 100644 --- a/pkgs/by-name/no/notify-run/package.nix +++ b/pkgs/by-name/no/notify-run/package.nix @@ -7,11 +7,18 @@ # # You should have received a copy of the License along with this program. # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. -{rustPlatform}: +{ + rustPlatform, + libnotify, +}: rustPlatform.buildRustPackage { pname = "notify-run"; version = "0.1.0"; + buildInputs = [ + libnotify + ]; + src = ./.; cargoLock = { lockFile = ./Cargo.lock; diff --git a/pkgs/by-name/no/notify-run/src/main.rs b/pkgs/by-name/no/notify-run/src/main.rs index 18b7af58..2aefd4df 100644 --- a/pkgs/by-name/no/notify-run/src/main.rs +++ b/pkgs/by-name/no/notify-run/src/main.rs @@ -16,7 +16,7 @@ fn main() -> Result<()> { let args = args().skip(1).collect::<Vec<_>>(); let mut cmd = Command::new(&args[0]); - cmd.args(&args[1..]); + cmd.args(args[1].split(" ").collect::<Vec<_>>().as_slice()); eprintln!("Spawning {:?}", cmd); |
