depot/third_party/nixpkgs/pkgs/os-specific/linux/gfxtablet/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

33 lines
772 B
Nix

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