-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qc71_slimbook_laptop: init at 0-unstable-2024-12-18
Package fork of the qc71_laptop package for Slimbook laptop compatibility The difference between the packaging files is minimal. Beyond modifying the source, name, version and expected meta.*, also modify license to follow upstream: < license = licenses.gpl2Plus; --- > license = licenses.gpl2Only;
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
pkgs/os-specific/linux/qc71_slimbook_laptop/001-fix-warning.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/events.c b/events.c | ||
--- a/events.c | ||
+++ b/events.c | ||
@@ -120,7 +120,7 @@ static void emit_keyboard_led_hw_changed(void) | ||
up_read(&leds_list_lock); | ||
} | ||
#else | ||
-static inline emit_keyboard_led_hw_changed(void) | ||
+static inline void emit_keyboard_led_hw_changed(void) | ||
{ } | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
kernel, | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "qc71_slimbook_laptop"; | ||
version = "0-unstable-2024-12-18"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Slimbook-Team"; | ||
repo = "qc71_laptop"; | ||
rev = "e130a03628dfc12105f4832ecf59f487f32bcdd7"; | ||
hash = "sha256-xgGxkZyJ2UMgEweUfmSdvsnqwOyghafz2kxGeKCLqqg="; | ||
}; | ||
|
||
patches = [ | ||
./001-fix-warning.patch | ||
]; | ||
|
||
nativeBuildInputs = kernel.moduleBuildDependencies; | ||
|
||
makeFlags = kernel.makeFlags ++ [ | ||
"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 | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Linux driver for QC71 laptop, with Slimbook patches"; | ||
homepage = "https://github.com/Slimbook-Team/qc71_laptop/"; | ||
license = licenses.gpl2Only; | ||
maintainers = with maintainers; [ lucasfa ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters