@jaspermayone.com's dotfiles
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "wut";
9 version = "0.1.3";
10
11 src = fetchFromGitHub {
12 owner = "simonbs";
13 repo = "wut";
14 rev = "v${version}";
15 hash = "sha256-HQ/UmVVurP3N/dfXZO7j8d8PlZxceYTz5h0NKMcc2Gw=";
16 };
17
18 vendorHash = null; # No vendor dependencies
19
20 # Override to allow Go to download required toolchain
21 preBuild = ''
22 export GOTOOLCHAIN=auto
23 '';
24
25 ldflags = [
26 "-s"
27 "-w"
28 ];
29
30 meta = with lib; {
31 description = "Workspace manager for Git worktrees";
32 homepage = "https://github.com/simonbs/wut";
33 license = licenses.mit;
34 maintainers = [ ];
35 mainProgram = "wut";
36 };
37}