-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathpackage.nix
More file actions
61 lines (52 loc) · 1.65 KB
/
package.nix
File metadata and controls
61 lines (52 loc) · 1.65 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
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
versionCheckHomeHook,
}:
rustPlatform.buildRustPackage rec {
pname = "workmux";
version = "0.1.177";
src = fetchFromGitHub {
owner = "raine";
repo = "workmux";
rev = "v${version}";
hash = "sha256-BGhaNb9bS+dazKLIpFKmMlrIKwTux3s3aPDyV5ERGSs=";
};
cargoHash = "sha256-rjY++cmbs7Z1IELsZg53wFZeUfqe0qEwkGhL7su4fyI=";
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;
};
}