Skip to content

Commit 5af4418

Browse files
windsend-rs: init at 1.4.9 (#383919)
2 parents faed197 + f1021af commit 5af4418

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
rustPlatform,
5+
pkg-config,
6+
wayland,
7+
openssl,
8+
glib,
9+
gtk3,
10+
xdotool,
11+
libayatana-appindicator,
12+
makeDesktopItem,
13+
copyDesktopItems,
14+
nix-update-script,
15+
}:
16+
17+
rustPlatform.buildRustPackage rec {
18+
pname = "windsend-rs";
19+
version = "1.4.9";
20+
21+
src = fetchFromGitHub {
22+
owner = "doraemonkeys";
23+
repo = "WindSend";
24+
tag = "v${version}";
25+
hash = "sha256-jmFhYCUE37yH+TTHq8Q0bO1Lp/p07PnSJDMAOGbhwOM=";
26+
};
27+
28+
useFetchCargoVendor = true;
29+
30+
cargoHash = "sha256-RmtKspTNTd3ZaucuzJk6yfDFRH7wZsOlEyJd2lNApBU=";
31+
32+
sourceRoot = "${src.name}/windSend-rs";
33+
34+
nativeBuildInputs = [
35+
pkg-config
36+
copyDesktopItems
37+
];
38+
39+
buildInputs = [
40+
wayland
41+
openssl
42+
glib
43+
gtk3
44+
xdotool
45+
];
46+
47+
desktopItems = [
48+
(makeDesktopItem {
49+
name = "windsend-rs";
50+
exec = "wind_send";
51+
icon = "windsend-rs";
52+
desktopName = "WindSend";
53+
})
54+
];
55+
56+
postInstall = ''
57+
install -Dm644 icon-192.png $out/share/pixmaps/windsend-rs.png
58+
'';
59+
60+
postFixup = ''
61+
patchelf --add-rpath ${lib.makeLibraryPath [ libayatana-appindicator ]} $out/bin/wind_send
62+
'';
63+
64+
passthru.updateScript = nix-update-script { };
65+
66+
meta = {
67+
description = "Quickly and securely sync clipboard, transfer files and directories between devices";
68+
homepage = "https://github.com/doraemonkeys/WindSend";
69+
mainProgram = "wind_send";
70+
license = with lib.licenses; [ mit ];
71+
maintainers = with lib.maintainers; [ nayeko ];
72+
platforms = lib.platforms.linux;
73+
};
74+
}

0 commit comments

Comments
 (0)