blob: 9d42c7d68d53086024873ef73c23b2242e7e192b (
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
27
28
29
30
31
32
33
34
|
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "g500-control-0.0.1";
src = fetchurl {
url = "http://g500-control.googlecode.com/files/g500_control_0.0.1.tar.gz";
sha256 = "1xlg9lpxnk3228k81y1i6jjh4df1p4jh64g54w969g6a6v6dazvb";
};
unpackPhase = ''
mkdir -p g500-control
tar -C g500-control/ -xf $src
'';
buildPhase = ''
cd g500-control
gcc -o g500-control *.c
'';
installPhase = ''
mkdir -p $out/bin/
cp g500-control $out/bin/
'';
meta = {
homepage = http://code.google.com/p/g500-control/;
description = "Configure Logitech G500's internal profile under Linux";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
};
}
|