input-leap: init at unstable-2023-05-24

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

authored by James ‘Twey’ Kay Anderson Torres and committed by Anderson Torres c36301bc 93ae7729

+81
+77
pkgs/applications/misc/input-leap/default.nix
··· 1 + { lib 2 + , mkDerivation 3 + , fetchFromGitHub 4 + , cmake 5 + 6 + , withLibei ? true 7 + 8 + , avahi 9 + , curl 10 + , libICE 11 + , libSM 12 + , libX11 13 + , libXdmcp 14 + , libXext 15 + , libXinerama 16 + , libXrandr 17 + , libXtst 18 + , libei 19 + , libportal 20 + , openssl 21 + , pkg-config 22 + , qtbase 23 + , qttools 24 + , wrapGAppsHook 25 + }: 26 + 27 + mkDerivation rec { 28 + pname = "input-leap"; 29 + version = "unstable-2023-05-24"; 30 + 31 + src = fetchFromGitHub { 32 + owner = "input-leap"; 33 + repo = "input-leap"; 34 + rev = "5e2f37bf9ec17627ae33558d99f90b7608ace422"; 35 + hash = "sha256-55RqdRu/Hi2OTiLjAFJ6Gdgg9iO5NIIJCsOkUQjR9hk="; 36 + fetchSubmodules = true; 37 + }; 38 + 39 + nativeBuildInputs = [ pkg-config cmake wrapGAppsHook qttools ]; 40 + buildInputs = [ 41 + curl qtbase avahi 42 + libX11 libXext libXtst libXinerama libXrandr libXdmcp libICE libSM 43 + ] ++ lib.optionals withLibei [ libei libportal ]; 44 + 45 + cmakeFlags = [ 46 + "-DINPUTLEAP_REVISION=${builtins.substring 0 8 src.rev}" 47 + ] ++ lib.optional withLibei "-DINPUTLEAP_BUILD_LIBEI=ON"; 48 + 49 + dontWrapGApps = true; 50 + preFixup = '' 51 + qtWrapperArgs+=( 52 + "''${gappsWrapperArgs[@]}" 53 + --prefix PATH : "${lib.makeBinPath [ openssl ]}" 54 + ) 55 + ''; 56 + 57 + postFixup = '' 58 + substituteInPlace $out/share/applications/input-leap.desktop \ 59 + --replace "Exec=input-leap" "Exec=$out/bin/input-leap" 60 + ''; 61 + 62 + meta = { 63 + description = "Open-source KVM software"; 64 + longDescription = '' 65 + Input Leap is software that mimics the functionality of a KVM switch, which historically 66 + would allow you to use a single keyboard and mouse to control multiple computers by 67 + physically turning a dial on the box to switch the machine you're controlling at any 68 + given moment. Input Leap does this in software, allowing you to tell it which machine 69 + to control by moving your mouse to the edge of the screen, or by using a keypress 70 + to switch focus to a different system. 71 + ''; 72 + homepage = "https://github.com/input-leap/input-leap"; 73 + license = lib.licenses.gpl2Plus; 74 + maintainers = with lib.maintainers; [ kovirobi phryneas twey shymega ]; 75 + platforms = lib.platforms.linux; 76 + }; 77 + }
+4
pkgs/top-level/all-packages.nix
··· 30777 30777 30778 30778 icesl = callPackage ../applications/misc/icesl { }; 30779 30779 30780 + input-leap = libsForQt5.callPackage ../applications/misc/input-leap { 30781 + avahi = avahi.override { withLibdnssdCompat = true; }; 30782 + }; 30783 + 30780 30784 karlender = callPackage ../applications/office/karlender { }; 30781 30785 30782 30786 keepassxc = libsForQt5.callPackage ../applications/misc/keepassxc {