microsoft-ergonomic-keyboard: init at 1.0

This commit is contained in:
FliegendeWurst 2023-10-16 08:45:04 +02:00
parent b5c5a0936e
commit b12a87bc83
2 changed files with 32 additions and 0 deletions

View File

@ -17,6 +17,7 @@
diskgraph = pkgs.callPackage ./pkgs/diskgraph { };
freqtop = pkgs.callPackage ./pkgs/freqtop { };
map = pkgs.callPackage ./pkgs/map { };
microsoft-ergonomic-keyboard = pkgs.callPackage ./pkgs/microsoft-ergonomic-keyboard { };
openscad-snapshot = pkgs.callPackage ./pkgs/openscad-snapshot { };
q = pkgs.callPackage ./pkgs/q { };
# TODO: fix dependency specification

View File

@ -0,0 +1,31 @@
{ stdenv, lib, fetchFromGitLab, kernel, kmod }:
stdenv.mkDerivation rec {
name = "microsoft-ergonomic-keyboard-${version}-${kernel.version}";
version = "1.0";
src = fetchFromGitLab {
owner = "arnekeller";
repo = "microsoft-ergonomic-keyboard";
rev = "f23be31228daa7ce62f019acb8f7a127e5bd846c";
sha256 = "0knjkx4bqjxqsm2wly3dj96w1ljzhxavs26a3m65bb04phcb2n8w";
};
hardeningDisable = [ "pic" "format" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = [
"KERNELRELEASE=${kernel.modDirVersion}"
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
];
meta = with lib; {
description = "A kernel module to fix the office key on MS ergonomic keyboards";
homepage = "https://gitlab.com/arnekeller/microsoft-ergonomic-keyboard";
license = licenses.gpl2Only;
maintainers = [ maintainers.fliegendewurst ];
platforms = platforms.linux;
};
}