Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windsend-rs: init at 1.4.9 #372189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions pkgs/by-name/wi/windsend-rs/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
wayland,
openssl,
glib,
gtk3,
xdotool,
libayatana-appindicator,
makeDesktopItem,
copyDesktopItems,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
pname = "windsend-rs";
version = "1.4.9";

src = fetchFromGitHub {
owner = "doraemonkeys";
repo = "WindSend";
tag = "v${version}";
hash = "sha256-jmFhYCUE37yH+TTHq8Q0bO1Lp/p07PnSJDMAOGbhwOM=";
};

cargoHash = "sha256-5tm9VWqtqJXwYjEiygheL7G618fJBTjAJcg5AAECi/M=";

sourceRoot = "${src.name}/windSend-rs";

nativeBuildInputs = [
pkg-config
copyDesktopItems
];

buildInputs = [
wayland
openssl
glib
gtk3
xdotool
];

desktopItems = [
(makeDesktopItem {
name = "windsend-rs";
exec = "wind_send";
icon = "windsend-rs";
desktopName = "WindSend";
})
];

postInstall = ''
install -Dm644 icon-192.png $out/share/pixmaps/windsend-rs.png
'';

postFixup = ''
patchelf --add-rpath ${lib.makeLibraryPath [ libayatana-appindicator ]} $out/bin/wind_send
'';

aucub marked this conversation as resolved.
Show resolved Hide resolved
passthru.updateScript = nix-update-script { };

meta = {
description = "Quickly and securely sync clipboard, transfer files and directories between devices";
homepage = "https://github.com/doraemonkeys/WindSend";
mainProgram = "wind_send";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ aucub ];
platforms = lib.platforms.linux;
};
}