2022-05-22 17:24:17 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, libusb1, pkg-config }:
|
2020-02-08 03:57:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "OpenCorsairLink";
|
|
|
|
version = "unstable-2019-12-23";
|
2020-02-08 03:57:19 +00:00
|
|
|
|
|
|
|
buildInputs = [ libusb1 ];
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-02-08 03:57:19 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "audiohacked";
|
|
|
|
repo = "OpenCorsairLink";
|
|
|
|
rev = "46dbf206e19a40d6de6bd73142ed93bdb26c5c1a";
|
|
|
|
sha256 = "1nizicl0mc9pslc6065mnrs0fnn8sh7ca8iiw7w9ix57zrhabpld";
|
|
|
|
};
|
|
|
|
|
2022-05-22 17:24:17 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for -fno-common toolchain
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/audiohacked/OpenCorsairLink/commit/d600c7ff032a3911d30b039844a31f0b3acfe26a.patch";
|
|
|
|
sha256 = "030rwka5bvf79x6ir18vqb09izhz1crp94x5gqjxwv3b20vvv4kx";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-08 03:57:19 +00:00
|
|
|
description = "Linux and Mac OS support for the CorsairLink Devices ";
|
|
|
|
homepage = "https://github.com/audiohacked/OpenCorsairLink";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = [ lib.maintainers.expipiplus1 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "OpenCorsairLink.elf";
|
2020-02-08 03:57:19 +00:00
|
|
|
};
|
|
|
|
}
|