1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "tran";
9 version = "0.1.43";
10
11 src = fetchFromGitHub {
12 owner = "abdfnx";
13 repo = "tran";
14 rev = "v${version}";
15 sha256 = "sha256-qp4g1ZLRIIz0CZ/Zey354g0j9ePE4pGb82IivLezU7s=";
16 };
17
18 vendorHash = "sha256-JmRTI5ZBSFULfI+ki3hI8TPaS6IVP9D14r4DwK/nx1Y=";
19
20 ldflags = [
21 "-w"
22 "-s"
23 "-X main.version=v${version}"
24 ];
25
26 subPackages = [ "." ];
27
28 meta = with lib; {
29 description = "Securely transfer and send anything between computers with TUI";
30 homepage = "https://github.com/abdfnx/tran";
31 license = licenses.mit;
32 maintainers = with maintainers; [ dit7ya ];
33 mainProgram = "tran";
34 };
35}