summary refs log tree commit diff
path: root/pkgs/tools/misc/opencorsairlink/default.nix
blob: 1c18cb82c590217f3529b0a01602e26b983668a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, libusb1, pkg-config }:

stdenv.mkDerivation rec {
  pname = "OpenCorsairLink";
  version = "unstable-2019-12-23";

  buildInputs = [ libusb1 ];
  nativeBuildInputs = [ pkg-config ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  src = fetchFromGitHub {
    owner = "audiohacked";
    repo = "OpenCorsairLink";
    rev = "46dbf206e19a40d6de6bd73142ed93bdb26c5c1a";
    sha256 = "1nizicl0mc9pslc6065mnrs0fnn8sh7ca8iiw7w9ix57zrhabpld";
  };

  meta = with lib; {
    description = "Linux and Mac OS support for the CorsairLink Devices ";
    homepage = "https://github.com/audiohacked/OpenCorsairLink";
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = [ lib.maintainers.expipiplus1 ];
  };
}