nixos-config/packages/veikk-driver.nix
Gabriel Arazas ef12c29f36 Update the Nix config
A bunch of minor updates here, a bunch of minor changes there.
All of the Nix changes is here for all the world to see.
2020-10-07 06:56:04 +08:00

34 lines
874 B
Nix
Executable File

{ stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "veikk-linux-driver";
version = "2.0.0";
src = fetchFromGitHub {
owner = "jlam55555";
repo = "veikk-linux-driver";
rev = "v2.0";
sha256 = "11mg74ds58jwvdmi3i7c4chxs6v9g09r9ll22pc2kbxjdnrp8zrn";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
patchPhase = ''
sed -i Makefile -e 's/modprobe veikk//' -e 's/depmod//'
'';
INSTALL_MOD_PATH = "\${out}";
makeFlags = [
"BUILD_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
meta = with stdenv.lib; {
description = "Linux device driver for supported VEIKK tablets (e.g., S640, A50, A30).";
homepage = "https://github.com/jlam55555/veikk-linux-driver";
licenses = licenses.free;
maintainers = with maintainers; [ foo-dogsquared ];
platforms = platforms.linux;
};
}