Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6de8b8f14498
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e7e5fc958486
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on May 13, 2019

  1. ddcci-driver: init at 0.3.2

    bricewge committed May 13, 2019
    Copy the full SHA
    4c468c5 View commit details

Commits on Jan 4, 2020

  1. Merge pull request #61387 from bricewge/ddcci-driver-linux

    ddcci-driver: init at 0.3.2
    ryantm authored Jan 4, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    e7e5fc9 View commit details
Showing with 44 additions and 0 deletions.
  1. +42 −0 pkgs/os-specific/linux/ddcci/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
42 changes: 42 additions & 0 deletions pkgs/os-specific/linux/ddcci/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ stdenv, fetchFromGitLab, kernel }:

stdenv.mkDerivation rec {
pname = "ddcci-driver";
version = "0.3.2";
name = "${pname}-${kernel.version}-${version}";

src = fetchFromGitLab {
owner = "${pname}-linux";
repo = "${pname}-linux";
rev = "v${version}";
sha256 = "0jl4l3vvxn85cbqr80p6bgyhf2vx9kbadrwx086wkj9ni8k6x5m6";
};

hardeningDisable = [ "pic" ];

nativeBuildInputs = kernel.moduleBuildDependencies;

prePatch = ''
substituteInPlace ./ddcci/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace depmod \#
substituteInPlace ./ddcci-backlight/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace depmod \#
'';

makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"KVER=${kernel.modDirVersion}"
"KERNEL_MODLIB=$(out)/lib/modules/${kernel.modDirVersion}"
"INCLUDEDIR=$(out)/include"
];

meta = with stdenv.lib; {
description = "Kernel module driver for DDC/CI monitors";
homepage = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux";
license = licenses.gpl2;
maintainers = with maintainers; [ bricewge ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -16380,6 +16380,8 @@ in

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

ddcci-driver = callPackage ../os-specific/linux/ddcci { };

deepin-anything = callPackage ../os-specific/linux/deepin-anything { };

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