-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathpackage.nix
More file actions
63 lines (54 loc) · 1.66 KB
/
Copy pathpackage.nix
File metadata and controls
63 lines (54 loc) · 1.66 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
versionCheckHomeHook,
}:
rustPlatform.buildRustPackage rec {
pname = "workmux";
version = "0.1.238";
src = fetchFromGitHub {
owner = "raine";
repo = "workmux";
tag = "v${version}";
hash = "sha256-BKiIKVV+0ctNrJqY2cAi91GVlpghzm97kuOjBARdF6w=";
};
cargoHash = "sha256-YSeMqTGY08af4kQ+v07wsl9XiZWbzigeTAUvsNcITAs=";
nativeBuildInputs = [
installShellFiles
];
# Some tests require filesystem access outside the sandbox
doCheck = false;
postInstall =
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
export HOME=$(mktemp -d)
installShellCompletion --cmd workmux \
--bash <($out/bin/workmux completions bash) \
--fish <($out/bin/workmux completions fish) \
--zsh <($out/bin/workmux completions zsh)
''
+ ''
# Install Claude Code skills shipped with workmux so users can
# symlink $out/share/workmux/skills/* into ~/.claude/skills/
install -d $out/share/workmux
cp -r skills $out/share/workmux/skills
'';
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
versionCheckHomeHook
];
passthru.category = "Workflow & Project Management";
meta = with lib; {
description = "Git worktrees + tmux windows for zero-friction parallel dev";
homepage = "https://github.com/raine/workmux";
changelog = "https://github.com/raine/workmux/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
sourceProvenance = with sourceTypes; [ fromSource ];
mainProgram = "workmux";
platforms = platforms.all;
};
}