about summary refs log tree commit diff stats
path: root/pkgs/by-name/no/notify-run/package.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/no/notify-run/package.nix (renamed from pkgs/by-name/ge/generate_moz_extension/package.nix)34
1 files changed, 23 insertions, 11 deletions
diff --git a/pkgs/by-name/ge/generate_moz_extension/package.nix b/pkgs/by-name/no/notify-run/package.nix
index aae5ea6c..1f9337be 100644
--- a/pkgs/by-name/ge/generate_moz_extension/package.nix
+++ b/pkgs/by-name/no/notify-run/package.nix
@@ -9,21 +9,33 @@
 # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 {
   rustPlatform,
-  openssl,
-  pkg-config,
+  lib,
+  libnotify,
+  makeWrapper,
 }:
-rustPlatform.buildRustPackage {
-  pname = "generate_firefox_extensions";
+rustPlatform.buildRustPackage (finalAttrs: {
+  pname = "notify-run";
   version = "0.1.0";
 
-  src = ./.;
-  cargoLock = {
-    lockFile = ./Cargo.lock;
-  };
   buildInputs = [
-    openssl # needed for openssl-sys crate
+    libnotify
   ];
   nativeBuildInputs = [
-    pkg-config # needed for openssl dependency
+    makeWrapper
   ];
-}
+
+  src = ./.;
+  cargoLock = {
+    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";
+  };
+})