mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
amdgpu-i2c: init at 0-unstable-2024-12-16
This commit is contained in:
parent
887522a521
commit
98d4d387a7
2 changed files with 42 additions and 0 deletions
40
pkgs/os-specific/linux/amdgpu-i2c/default.nix
Normal file
40
pkgs/os-specific/linux/amdgpu-i2c/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
kernel,
|
||||
}:
|
||||
|
||||
let
|
||||
KDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "amdgpu-i2c";
|
||||
version = "0-unstable-2024-12-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twifty";
|
||||
repo = "amd-gpu-i2c";
|
||||
rev = "06ca41fd12fb90f970d3ebd4785cc26cc0a3f3b0";
|
||||
sha256 = "sha256-GVyrwnwNSBW4OCNDqQMU6e31C4bG14arC0MPkRWfiJQ=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
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.1.0" || kernel.isLibre;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ thardin ];
|
||||
};
|
||||
}
|
|
@ -338,6 +338,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 { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue