From 7d1211b41123b5d51362149089d51bc0025178b1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 3 Dec 2025 01:08:25 +0100 Subject: pkgs/notify-run: Actually provide `notify-send` to the binary --- pkgs/by-name/no/notify-run/package.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pkgs/by-name/no/notify-run') diff --git a/pkgs/by-name/no/notify-run/package.nix b/pkgs/by-name/no/notify-run/package.nix index 7bf07c1a..847dd872 100644 --- a/pkgs/by-name/no/notify-run/package.nix +++ b/pkgs/by-name/no/notify-run/package.nix @@ -9,9 +9,11 @@ # If not, see . { rustPlatform, + lib, libnotify, + makeWrapper, }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage (finalAttrs: { pname = "notify-run"; version = "0.1.0"; @@ -24,7 +26,13 @@ rustPlatform.buildRustPackage { lockFile = ./Cargo.lock; }; + postInstall = '' + # NOTE: We cannot clear the path, because we need access to the programs to start. <2025-12-03> + wrapProgram $out/bin/notify-run \ + --prefix PATH : ${lib.makeBinPath finalAttrs.buildInputs} + ''; + meta = { mainProgram = "notify-run"; }; -} +}) -- cgit 1.4.1