3
0
Fork 0
forked from mirrors/nixpkgs

linuxPackages.ddcci-driver: 0.3.2 -> 0.3.3

This commit is contained in:
Bernardo Meurer 2020-04-02 21:59:44 -07:00
parent 926a875def
commit 79045d9051
No known key found for this signature in database
GPG key ID: E421C74191EA186C

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 \#
'';