From 28bcf30362c6856dba740d8464995541c0949ba2 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Fri, 4 Apr 2025 18:14:04 +0200
Subject: fix(pkgs/tskm): Specify dependencies

---
 pkgs/by-name/ts/tskm/package.nix | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/pkgs/by-name/ts/tskm/package.nix b/pkgs/by-name/ts/tskm/package.nix
index a57dc4aa..1f206abf 100644
--- a/pkgs/by-name/ts/tskm/package.nix
+++ b/pkgs/by-name/ts/tskm/package.nix
@@ -1,8 +1,15 @@
 {
   rustPlatform,
   installShellFiles,
+  makeWrapper,
+  lib,
+  # Dependencies
+  taskwarrior3,
+  git,
+  rofi,
+  firefox,
 }:
-rustPlatform.buildRustPackage {
+rustPlatform.buildRustPackage (finalAttrs: {
   pname = "tskm";
   version = "0.1.0";
 
@@ -15,8 +22,16 @@ rustPlatform.buildRustPackage {
     SHELL_COMPLETION_DIR = "./shell";
   };
 
+  buildInputs = [
+    taskwarrior3
+    git
+    rofi
+    firefox
+  ];
+
   nativeBuildInputs = [
     installShellFiles
+    makeWrapper
   ];
 
   postInstall = ''
@@ -24,9 +39,13 @@ rustPlatform.buildRustPackage {
       --bash ./shell/tskm.bash \
       --fish ./shell/tskm.fish \
       --zsh ./shell/_tskm
+
+    # NOTE: We cannot clear the path, because we need access to the $EDITOR. <2025-04-04>
+    wrapProgram $out/bin/tskm \
+      --prefix PATH : ${lib.makeBinPath finalAttrs.buildInputs}
   '';
 
   meta = {
     mainProgram = "tskm";
   };
-}
+})
-- 
cgit 1.4.1