diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:48:44 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:48:44 +0200 |
commit | 135d09bfb305d54cac1ba1fb9861d5b9309a7b3a (patch) | |
tree | 459109a40320530993ae560f55a730a72df31416 /pkgs/by-name/ts/tskm/package.nix | |
parent | refactor(modules/legacy/firefox): Move to by-name (diff) | |
download | nixos-config-135d09bfb305d54cac1ba1fb9861d5b9309a7b3a.zip |
feat(pkgs/neorg): Rewrite in rust
This improves upon neorg by integrating it better into the system context.
Diffstat (limited to 'pkgs/by-name/ts/tskm/package.nix')
-rw-r--r-- | pkgs/by-name/ts/tskm/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ts/tskm/package.nix b/pkgs/by-name/ts/tskm/package.nix new file mode 100644 index 00000000..a57dc4aa --- /dev/null +++ b/pkgs/by-name/ts/tskm/package.nix @@ -0,0 +1,32 @@ +{ + rustPlatform, + installShellFiles, +}: +rustPlatform.buildRustPackage { + pname = "tskm"; + version = "0.1.0"; + + src = ./.; + cargoLock = { + lockFile = ./Cargo.lock; + }; + + env = { + SHELL_COMPLETION_DIR = "./shell"; + }; + + nativeBuildInputs = [ + installShellFiles + ]; + + postInstall = '' + installShellCompletion --cmd tskm \ + --bash ./shell/tskm.bash \ + --fish ./shell/tskm.fish \ + --zsh ./shell/_tskm + ''; + + meta = { + mainProgram = "tskm"; + }; +} |