Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, lib
|
|
, darwin
|
|
, glib
|
|
, gtk4
|
|
, libadwaita
|
|
, libX11
|
|
, libXtst
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lan-mouse";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "feschber";
|
|
repo = "lan-mouse";
|
|
rev = "v${version}";
|
|
hash = "sha256-BadpYZnZJcifhe916/X+OGvTQ4FQeTLnoy0gP/i5cLA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
glib # needed in both {b,nativeB}uildInptus
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
libadwaita
|
|
libX11
|
|
libXtst
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.CoreGraphics;
|
|
|
|
cargoHash = "sha256-pDdpmZPaClU8KjFHO7v3FDQp9D83GQN+SnFg53q2fjs=";
|
|
|
|
meta = {
|
|
description = "Software KVM switch for sharing a mouse and keyboard with multiple hosts through the network";
|
|
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;
|
|
};
|
|
}
|