Skip to content

Commit ea825a8

Browse files
amdgpu-i2c: init at 0-unstable-2024-12-16 (NixOS#371679)
2 parents a0d9ccc + 98d4d38 commit ea825a8

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

maintainers/maintainer-list.nix

+6
Original file line numberDiff line numberDiff line change
@@ -23350,6 +23350,12 @@
2335023350
githubId = 7060816;
2335123351
name = "Thao-Tran Le-Phuong";
2335223352
};
23353+
thardin = {
23354+
email = "th020394@gmail.com";
23355+
github = "Tyler-Hardin";
23356+
githubId = 5404976;
23357+
name = "Tyler Hardin";
23358+
};
2335323359
thblt = {
2335423360
name = "Thibault Polge";
2335523361
email = "thibault@thb.lt";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchFromGitHub,
5+
kernel,
6+
}:
7+
8+
let
9+
KDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
10+
in
11+
stdenv.mkDerivation {
12+
pname = "amdgpu-i2c";
13+
version = "0-unstable-2024-12-16";
14+
15+
src = fetchFromGitHub {
16+
owner = "twifty";
17+
repo = "amd-gpu-i2c";
18+
rev = "06ca41fd12fb90f970d3ebd4785cc26cc0a3f3b0";
19+
sha256 = "sha256-GVyrwnwNSBW4OCNDqQMU6e31C4bG14arC0MPkRWfiJQ=";
20+
};
21+
22+
hardeningDisable = [ "pic" ];
23+
24+
nativeBuildInputs = kernel.moduleBuildDependencies;
25+
26+
buildPhase = "make -C ${KDIR} M=/build/source modules";
27+
installPhase = ''
28+
make -C ${KDIR} M=/build/source INSTALL_MOD_PATH="$out" modules_install
29+
'';
30+
31+
meta = with lib; {
32+
homepage = "https://github.com/twifty/amd-gpu-i2c";
33+
downloadPage = "https://github.com/twifty/amd-gpu-i2c";
34+
description = "Exposes i2c interface to set colors on AMD GPUs";
35+
broken = kernel.kernelOlder "6.1.0" || kernel.isLibre;
36+
license = licenses.gpl2Plus;
37+
platforms = platforms.linux;
38+
maintainers = with maintainers; [ thardin ];
39+
};
40+
}

pkgs/top-level/linux-kernels.nix

+2
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ in {
338338

339339
akvcam = callPackage ../os-specific/linux/akvcam { };
340340

341+
amdgpu-i2c = callPackage ../os-specific/linux/amdgpu-i2c { };
342+
341343
amneziawg = callPackage ../os-specific/linux/amneziawg { };
342344

343345
apfs = callPackage ../os-specific/linux/apfs { };

0 commit comments

Comments
 (0)