aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 18:14:04 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 18:14:04 +0200
commit28bcf30362c6856dba740d8464995541c0949ba2 (patch)
tree19a48559aba35953214bc21b7debb178339e89c7 /pkgs
parentfix(modules/tskm): Allocate Firefox profile id's consecutively (diff)
downloadnixos-config-28bcf30362c6856dba740d8464995541c0949ba2.zip
fix(pkgs/tskm): Specify dependencies
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/ts/tskm/package.nix23
1 files 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";
};
-}
+})