2024-04-21 15:54:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, darwin
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libX11
|
|
|
|
, libXtst
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lan-mouse";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.8.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "feschber";
|
|
|
|
repo = "lan-mouse";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-s80oaUDuFnbCluImLLliv1b1RDpIKrBWdX4hHy3xUIU=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
glib # needed in both {b,nativeB}uildInptus
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
]
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreGraphics;
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Software KVM switch for sharing a mouse and keyboard with multiple hosts through the network";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/feschber/lan-mouse";
|
|
|
|
changelog = "https://github.com/feschber/lan-mouse/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
mainProgram = "lan-mouse";
|
|
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
|
|
|
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
|
|
|
};
|
|
|
|
}
|