Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amdgpu-i2c: init at 0.0.1 #371679

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22804,6 +22804,12 @@
githubId = 1141680;
name = "Thane Gill";
};
thardin = {
email = "th020394@gmail.com";
github = "Tyler-Hardin";
githubId = 5404976;
name = "Tyler Hardin";
};
thblt = {
name = "Thibault Polge";
email = "thibault@thb.lt";
Expand Down
39 changes: 39 additions & 0 deletions pkgs/os-specific/linux/amdgpu-i2c/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
stdenv,
lib,
fetchFromGitHub,
kernel,
}:

stdenv.mkDerivation rec {
pname = "amdgpu-i2c";
version = "0.0.1";

src = fetchFromGitHub {
owner = "twifty";
repo = pname;
rev = "master";
sha256 = "sha256-GVyrwnwNSBW4OCNDqQMU6e31C4bG14arC0MPkRWfiJQ=";
};

hardeningDisable = [ "pic" ];

nativeBuildInputs = kernel.moduleBuildDependencies;

KDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";

buildPhase = "make -C ${KDIR} M=/build/source modules";
installPhase = ''
make -C ${KDIR} M=/build/source INSTALL_MOD_PATH="$out" modules_install
'';

meta = with lib; {
homepage = "https://github.com/twifty/amd-gpu-i2c";
downloadPage = "https://github.com/twifty/amd-gpu-i2c";
description = "Exposes i2c interface to set colors on AMD GPUs";
broken = kernel.kernelOlder "6.11.0" || kernel.isLibre;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ thardin ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/linux-kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ in {

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

amdgpu-i2c = callPackage ../os-specific/linux/amdgpu-i2c { };

amneziawg = callPackage ../os-specific/linux/amneziawg { };

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