blob: f326f7763ba7bd367d8f4795fd891c002e060bbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "qc71_laptop";
version = "0-unstable-2025-01-07";
src = fetchFromGitHub {
owner = "pobrn";
repo = "qc71_laptop";
rev = "ebab4af0b2c5b162bb9f27c80cd284c36b8fb7a9";
hash = "sha256-sRvxcdocYKnwMH/qYkKj66uClI1bSmMSxXHrHsc7uco=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"VERSION=${version}"
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
installPhase = ''
runHook preInstall
install -D qc71_laptop.ko -t $out/lib/modules/${kernel.modDirVersion}/extra
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = {
description = "Linux driver for QC71 laptop";
homepage = "https://github.com/pobrn/qc71_laptop/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [
aacebedo
lucasfa
];
platforms = [ "x86_64-linux" ];
};
}
|