2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, linuxHeaders}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4";
|
|
|
|
pname = "gfxtablet-uinput-driver";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
linuxHeaders
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfc2822";
|
|
|
|
repo = "GfxTablet";
|
|
|
|
rev = "android-app-${version}";
|
|
|
|
sha256 = "1i2m98yypfa9phshlmvjlgw7axfisxmldzrvnbzm5spvv5s4kvvb";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
preBuild = "cd driver-uinput";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp networktablet "$out/bin"
|
|
|
|
mkdir -p "$out/share/doc/gfxtablet/"
|
|
|
|
cp ../*.md "$out/share/doc/gfxtablet/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Uinput driver for Android GfxTablet tablet-as-input-device app";
|
|
|
|
license = lib.licenses.mit ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|