diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-09-21 22:04:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 22:04:38 +0200 |
commit | f18f2d87f36316155345e764f693b42baac027ee (patch) | |
tree | 3167630b0c7318011418f5a84600a40a49186e41 /pkgs/applications/graphics | |
parent | cbd06e48a60a5c4d5048b3ea5ac8ff83f2d0004e (diff) | |
parent | 525846372100f5c43a0fd27866995ab89d05fc2e (diff) |
Merge pull request #135284 from legendofmiracles/weylus
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/weylus/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/weylus/default.nix b/pkgs/applications/graphics/weylus/default.nix new file mode 100644 index 0000000000000..54b86c09341e7 --- /dev/null +++ b/pkgs/applications/graphics/weylus/default.nix @@ -0,0 +1,58 @@ +{ lib +, dbus +, stdenv +, gst_all_1 +, xorg +, libdrm +, libva +, fetchzip +, copyDesktopItems +, fontconfig +, libpng +, autoPatchelfHook +}: + +stdenv.mkDerivation rec { + pname = "weylus"; + version = "0.11.2"; + + src = fetchzip { + url = "https://github.com/H-M-H/Weylus/releases/download/v${version}/linux.zip"; + sha256 = "sha256-coA8qUpUgRjVBF/0LZgimx61fTTpdck/AO6e+r2uNu0="; + stripRoot = false; + }; + + installPhase = '' + runHook preInstall + + install -Dm755 ./weylus $out/bin/weylus + copyDesktopItems ./weylus.desktop + + runHook postInstall + ''; + + buildInputs = [ + libpng + dbus + libdrm + fontconfig + libva + gst_all_1.gst-plugins-base + # autoPatchelfHook complains if these are missing, even on wayland + xorg.libXft + xorg.libXinerama + xorg.libXcursor + xorg.libXrandr + xorg.libXcomposite + xorg.libXtst + ]; + + nativeBuildInputs = [ copyDesktopItems autoPatchelfHook ]; + + meta = with lib; { + description = "Use your tablet as graphic tablet/touch screen on your computer"; + homepage = "https://github.com/H-M-H/Weylus"; + license = with licenses; [ agpl3Only ]; + maintainers = with maintainers; [ legendofmiracles ]; + }; +} |