summary refs log tree commit diff
path: root/pkgs/os-specific/linux/system76-io
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2022-06-16 10:25:24 -0400
committerShea Levy <shea@shealevy.com>2022-06-16 10:25:24 -0400
commit76a936228ac9ac60d727c80c90079eacc04f6124 (patch)
tree7d1c8de6befc4305e20b953796edc450aab587fa /pkgs/os-specific/linux/system76-io
parentfe306509ced63cdd09c958ba3edb3b3e40d53a09 (diff)
downloadnixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar.gz
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar.bz2
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar.lz
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar.xz
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.tar.zst
nixpkgs-76a936228ac9ac60d727c80c90079eacc04f6124.zip
linuxPackages.system76-io: Fix building on newer kernels.
See https://github.com/pop-os/system76-io-dkms/issues/7
Diffstat (limited to 'pkgs/os-specific/linux/system76-io')
-rw-r--r--pkgs/os-specific/linux/system76-io/default.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/system76-io/default.nix b/pkgs/os-specific/linux/system76-io/default.nix
index fb697430f61..ab8c422d2da 100644
--- a/pkgs/os-specific/linux/system76-io/default.nix
+++ b/pkgs/os-specific/linux/system76-io/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, kernel }:
+{ lib, stdenv, fetchFromGitHub, kernel, fetchpatch }:
 let
   version = "1.0.1";
   sha256 = "0qkgkkjy1isv6ws6hrcal75dxjz98rpnvqbm7agdcc6yv0c17wwh";
@@ -15,6 +15,19 @@ stdenv.mkDerivation {
     inherit sha256;
   };
 
+  patches = [
+    (fetchpatch {
+      name = "Fix_GCC_declaration-after-statement_error.patch";
+      url = "https://patch-diff.githubusercontent.com/raw/pop-os/system76-io-dkms/pull/5.patch";
+      sha256 = "sha256-G8SM5tdNbeLuwigmo1HKLN9o16WPpowLXxfM7Xi4aRI=";
+    })
+    (fetchpatch {
+      name = "Fix_GCC_unused-function_error.patch";
+      url = "https://patch-diff.githubusercontent.com/raw/pop-os/system76-io-dkms/pull/6.patch";
+      sha256 = "sha256-vCXEzszmXa+wmI84oR8WduN4WnLTZA3M4GX+Jc4p/5o=";
+    })
+  ];
+
   hardeningDisable = [ "pic" ];
 
   nativeBuildInputs = kernel.moduleBuildDependencies;