blob: a57dc4aa42f2392f9cbd44668cf49a2ee48ae0ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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";
};
}
|