Merge pull request #174028 from trofi/fix-fno-common-for-opencorsairlink

opencorsairlink: pull upstream fix for -fno-common toolchains
This commit is contained in:
Sandro 2022-05-25 00:34:37 +02:00 committed by GitHub
commit e2db663d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, libusb1, pkg-config }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, libusb1, pkg-config }:
stdenv.mkDerivation rec {
pname = "OpenCorsairLink";
@ -16,6 +16,15 @@ stdenv.mkDerivation rec {
sha256 = "1nizicl0mc9pslc6065mnrs0fnn8sh7ca8iiw7w9ix57zrhabpld";
};
patches = [
# Pull upstream fix for -fno-common toolchain
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/audiohacked/OpenCorsairLink/commit/d600c7ff032a3911d30b039844a31f0b3acfe26a.patch";
sha256 = "030rwka5bvf79x6ir18vqb09izhz1crp94x5gqjxwv3b20vvv4kx";
})
];
meta = with lib; {
description = "Linux and Mac OS support for the CorsairLink Devices ";
homepage = "https://github.com/audiohacked/OpenCorsairLink";