windsend-rs: init at 1.4.9 (#383919)
This commit is contained in:
commit
5af44182f8
74
pkgs/by-name/wi/windsend-rs/package.nix
Normal file
74
pkgs/by-name/wi/windsend-rs/package.nix
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
{
|
||||||
|
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=";
|
||||||
|
};
|
||||||
|
|
||||||
|
useFetchCargoVendor = true;
|
||||||
|
|
||||||
|
cargoHash = "sha256-RmtKspTNTd3ZaucuzJk6yfDFRH7wZsOlEyJd2lNApBU=";
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
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; [ nayeko ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user