-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwush.nix
35 lines (30 loc) · 869 Bytes
/
wush.nix
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
# [wush](https://github.com/coder/wush) is a fast way to transfer files between computers with wireguard
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "wush";
version = "0.1.2";
src = fetchFromGitHub {
owner = "coder";
repo = "wush";
rev = "v${version}";
hash = "sha256-r6LKEL9GxyiyQgM4AuLU/FcmYKOCg7EZDmAZQznCx8E=";
};
vendorHash = "sha256-e1XcoiJ55UoSNFUto6QM8HrQkkrBf8sv4L9J+7Lnu2I=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
"-X=main.commitDate=0"
];
meta = {
description = "Simplest & fastest way to transfer files between computers via wireguard";
homepage = "https://github.com/coder/wush/releases/tag/v0.1.2";
license = lib.licenses.cc0;
maintainers = with lib.maintainers; [ jpetrucciani ];
mainProgram = "wush";
};
}