2021-08-20 16:02:11 +01:00
|
|
|
{ lib
|
|
|
|
, dbus
|
|
|
|
, stdenv
|
|
|
|
, gst_all_1
|
|
|
|
, xorg
|
|
|
|
, libdrm
|
|
|
|
, libva
|
|
|
|
, fetchzip
|
|
|
|
, copyDesktopItems
|
|
|
|
, fontconfig
|
|
|
|
, libpng
|
|
|
|
, autoPatchelfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "weylus";
|
2021-10-31 23:16:53 +00:00
|
|
|
version = "0.11.4";
|
2021-08-20 16:02:11 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/H-M-H/Weylus/releases/download/v${version}/linux.zip";
|
2021-10-31 23:16:53 +00:00
|
|
|
sha256 = "sha256-EW3TdI4F4d4X/BeSqI05QtS77ym1U5jdswFfNtSFyFk=";
|
2021-08-20 16:02:11 +01:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-09-02 03:20:00 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2021-08-20 16:02:11 +01:00
|
|
|
install -Dm755 ./weylus $out/bin/weylus
|
|
|
|
copyDesktopItems ./weylus.desktop
|
2021-09-02 03:20:00 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-08-20 16:02:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
2021-12-01 23:19:48 +00:00
|
|
|
maintainers = with maintainers; [ lom ];
|
2021-08-20 16:02:11 +01:00
|
|
|
};
|
|
|
|
}
|