Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
}:
stdenv.mkDerivation rec {
pname = "universal-pidff";
version = "0.2.0";
src = fetchFromGitHub {
owner = "JacKeTUs";
repo = "universal-pidff";
tag = version;
hash = "sha256-qjnQTkQiufHPEwMH+F+XE+VBc/DSTX6d0vxot35xbUc=";
};
postPatch = ''
sed -i 's|depmod|#depmod|' Makefile
'';
hardeningDisable = [
"pic"
"format"
];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"KVERSION=${kernel.modDirVersion}"
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
];
installTargets = [ "install" ];
meta = {
description = "PIDFF driver with useful patches for initialization of FFB devices";
homepage = "https://github.com/JacKeTUs/universal-pidff";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
computerdane
racci
];
platforms = lib.platforms.linux;
# Broken due to missing linux/minmax.h
broken = kernel.kernelOlder "5.10";
};
}