Merge pull request #84161 from lovesegfault/ddcci-0.3.3

ddcci: 0.3.2 -> 0.3.3
This commit is contained in:
worldofpeace 2020-04-07 23:36:12 -04:00 committed by GitHub
commit 9fa5658672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,28 +2,26 @@
stdenv.mkDerivation rec {
pname = "ddcci-driver";
version = "0.3.2";
version = "0.3.3";
name = "${pname}-${kernel.version}-${version}";
src = fetchFromGitLab {
owner = "${pname}-linux";
repo = "${pname}-linux";
rev = "v${version}";
sha256 = "0jl4l3vvxn85cbqr80p6bgyhf2vx9kbadrwx086wkj9ni8k6x5m6";
sha256 = "0vkkja3ykjil783zjpwp0vz7jy2fp9ccazzi3afd4fjk8gldin7f";
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
NIX_CFLAGS_COMPILE = [ "-Wno-error=incompatible-pointer-types" ];
prePatch = ''
substituteInPlace ./ddcci/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace '"$(src)"' '$(PWD)' \
--replace depmod \#
substituteInPlace ./ddcci-backlight/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace '"$(src)"' '$(PWD)' \
--replace depmod \#
'';