mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
47 lines
1000 B
Nix
47 lines
1000 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "universal-pidff";
|
|
version = "0.0.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JacKeTUs";
|
|
repo = "universal-pidff";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-BViobWl+9ypTcQJWtZ9pbeU4cmHcFNZWlsmQUOO64Vc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's|depmod|#depmod|' Makefile
|
|
'';
|
|
|
|
hardeningDisable = [
|
|
"pic"
|
|
"format"
|
|
];
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = [
|
|
"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;
|
|
};
|
|
}
|