linuxKernel.packages.tp_smapi: fix build for 6.4+
This commit is contained in:
parent
ba7cf6a456
commit
55c8c19601
@ -1,4 +1,15 @@
|
||||
{ stdenv, lib, fetchFromGitHub, kernel, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, runtimeShell
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, kernel
|
||||
, writeScript
|
||||
, coreutils
|
||||
, gnugrep
|
||||
, jq
|
||||
, curl
|
||||
, common-updater-scripts
|
||||
, runtimeShell
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -6,13 +17,21 @@ stdenv.mkDerivation rec {
|
||||
version = "0.43";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "evgeni";
|
||||
owner = "linux-thinkpad";
|
||||
repo = "tp_smapi";
|
||||
rev = "tp-smapi/${version}";
|
||||
sha256 = "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g";
|
||||
name = "tp-smapi-${version}";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# update DEFINE_SEMAPHORE usage for linux 6.4+
|
||||
# https://github.com/linux-thinkpad/tp_smapi/pull/45
|
||||
(fetchpatch {
|
||||
url = "https://github.com/linux-thinkpad/tp_smapi/commit/0c3398b1acf2a2cabd9cee91dc3fe3d35805fa8b.patch";
|
||||
hash = "sha256-J/WvijrpHGwFOZMMxnHdNin5eh8vViTcNb4nwsCqsLs=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
@ -39,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "IBM ThinkPad hardware functions driver";
|
||||
homepage = "https://github.com/evgeni/tp_smapi";
|
||||
homepage = "https://github.com/linux-thinkpad/tp_smapi";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ ];
|
||||
# driver is only ment for linux thinkpads i think bellow platforms should cover it.
|
||||
|
Loading…
Reference in New Issue
Block a user