2021-01-15 15:45:37 +01:00
|
|
|
{lib, stdenv, fetchFromGitHub, linuxHeaders}:
|
2016-07-18 23:37:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gfxtablet-uinput-driver";
|
2016-07-18 23:37:47 +02:00
|
|
|
|
2013-10-22 07:30:49 +02:00
|
|
|
buildInputs = [
|
|
|
|
linuxHeaders
|
|
|
|
];
|
2016-07-18 23:37:47 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfc2822";
|
|
|
|
repo = "GfxTablet";
|
|
|
|
rev = "android-app-${version}";
|
|
|
|
sha256 = "1i2m98yypfa9phshlmvjlgw7axfisxmldzrvnbzm5spvv5s4kvvb";
|
2013-10-22 07:30:49 +02:00
|
|
|
};
|
2016-07-18 23:37:47 +02:00
|
|
|
|
2021-01-24 10:19:10 +01:00
|
|
|
preBuild = "cd driver-uinput";
|
2016-07-18 23:37:47 +02:00
|
|
|
|
2013-10-22 07:30:49 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp networktablet "$out/bin"
|
|
|
|
mkdir -p "$out/share/doc/gfxtablet/"
|
|
|
|
cp ../*.md "$out/share/doc/gfxtablet/"
|
|
|
|
'';
|
2016-07-18 23:37:47 +02:00
|
|
|
|
2013-10-22 07:30:49 +02:00
|
|
|
meta = {
|
2021-01-24 10:19:10 +01:00
|
|
|
description = "Uinput driver for Android GfxTablet tablet-as-input-device app";
|
2021-01-15 15:45:37 +01:00
|
|
|
license = lib.licenses.mit ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2013-10-22 07:30:49 +02:00
|
|
|
};
|
|
|
|
}
|