diff options
Diffstat (limited to 'pkgs')
| -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); |
