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