Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
libusb1,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "OpenCorsairLink";
|
|
version = "0-unstable-2019-12-23";
|
|
|
|
buildInputs = [ libusb1 ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "audiohacked";
|
|
repo = "OpenCorsairLink";
|
|
rev = "46dbf206e19a40d6de6bd73142ed93bdb26c5c1a";
|
|
sha256 = "1nizicl0mc9pslc6065mnrs0fnn8sh7ca8iiw7w9ix57zrhabpld";
|
|
};
|
|
|
|
# Fix GCC 14 build.
|
|
# from incompatible pointer type [-Wincompatible-pointer-types]
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
|
|
|
|
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";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
mainProgram = "OpenCorsairLink.elf";
|
|
};
|
|
}
|