tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxKernel.packages.tp_smapi: fix build for 6.4+
Kirill Radzikhovskyy
2 years ago
55c8c196
ba7cf6a4
+23
-4
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
tp_smapi
default.nix
+23
-4
pkgs/os-specific/linux/tp_smapi/default.nix
···
1
-
{ stdenv, lib, fetchFromGitHub, kernel, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, runtimeShell
0
0
0
0
0
0
0
0
0
0
0
2
}:
3
4
stdenv.mkDerivation rec {
···
6
version = "0.43";
7
8
src = fetchFromGitHub {
9
-
owner = "evgeni";
10
repo = "tp_smapi";
11
rev = "tp-smapi/${version}";
12
sha256 = "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g";
13
-
name = "tp-smapi-${version}";
14
};
0
0
0
0
0
0
0
0
0
15
16
nativeBuildInputs = kernel.moduleBuildDependencies;
17
···
39
40
meta = {
41
description = "IBM ThinkPad hardware functions driver";
42
-
homepage = "https://github.com/evgeni/tp_smapi";
43
license = lib.licenses.gpl2;
44
maintainers = [ ];
45
# driver is only ment for linux thinkpads i think bellow platforms should cover it.
···
1
+
{ stdenv
2
+
, lib
3
+
, fetchFromGitHub
4
+
, fetchpatch
5
+
, kernel
6
+
, writeScript
7
+
, coreutils
8
+
, gnugrep
9
+
, jq
10
+
, curl
11
+
, common-updater-scripts
12
+
, runtimeShell
13
}:
14
15
stdenv.mkDerivation rec {
···
17
version = "0.43";
18
19
src = fetchFromGitHub {
20
+
owner = "linux-thinkpad";
21
repo = "tp_smapi";
22
rev = "tp-smapi/${version}";
23
sha256 = "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g";
0
24
};
25
+
26
+
patches = [
27
+
# update DEFINE_SEMAPHORE usage for linux 6.4+
28
+
# https://github.com/linux-thinkpad/tp_smapi/pull/45
29
+
(fetchpatch {
30
+
url = "https://github.com/linux-thinkpad/tp_smapi/commit/0c3398b1acf2a2cabd9cee91dc3fe3d35805fa8b.patch";
31
+
hash = "sha256-J/WvijrpHGwFOZMMxnHdNin5eh8vViTcNb4nwsCqsLs=";
32
+
})
33
+
];
34
35
nativeBuildInputs = kernel.moduleBuildDependencies;
36
···
58
59
meta = {
60
description = "IBM ThinkPad hardware functions driver";
61
+
homepage = "https://github.com/linux-thinkpad/tp_smapi";
62
license = lib.licenses.gpl2;
63
maintainers = [ ];
64
# driver is only ment for linux thinkpads i think bellow platforms should cover it.