Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ stdenv, lib, fetchFromGitHub, kernel,}:
let KDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";instdenv.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 ]; };}