27 rustPlatform.buildRustPackage rec {
29 version = "unstable-2022-06-07";
31 src = fetchFromGitHub {
34 rev = "b169a6be2bf3e8d105273d92f032cca5438de53a";
35 sha256 = "sha256-J9eVFIfmyBviVuT1MYKb5yoacbPqOAT3A8jahWv5qw8=";
41 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
46 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
49 gst_all_1.gst-plugins-base
70 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
77 lockFile = ./Cargo.lock;
79 "autopilot-0.4.0" = "sha256-1DRuhAAXaIADUmXlDVr8UNbI/Ab2PYdrx9Qh0j9rTX8=";
83 cargoBuildFlags = [ "--features=ffmpeg-system" ];
84 cargoTestFlags = [ "--features=ffmpeg-system" ];
87 GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
88 gst_all_1.gst-plugins-base
91 in lib.optionalString stdenv.hostPlatform.isLinux ''
92 wrapProgram $out/bin/weylus --prefix GST_PLUGIN_PATH : ${GST_PLUGIN_PATH}
96 install -vDm755 weylus.desktop $out/share/applications/weylus.desktop
100 broken = stdenv.hostPlatform.isDarwin;
101 description = "Use your tablet as graphic tablet/touch screen on your computer";
102 mainProgram = "weylus";
103 homepage = "https://github.com/H-M-H/Weylus";
104 license = with licenses; [ agpl3Only ];
105 maintainers = with maintainers; [ lom ];