2013-11-29 04:10:01 +04:00
|
|
|
{ stdenv, fetchurl }:
|
2013-03-27 22:51:32 +04:00
|
|
|
|
2013-11-29 04:10:01 +04:00
|
|
|
stdenv.mkDerivation {
|
2013-03-27 22:51:32 +04:00
|
|
|
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 = ''
|
2013-11-29 04:10:01 +04:00
|
|
|
mkdir -p g500-control
|
2013-03-27 22:51:32 +04:00
|
|
|
tar -C g500-control/ -xf $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd g500-control
|
|
|
|
gcc -o g500-control *.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2013-11-29 04:10:01 +04:00
|
|
|
mkdir -p $out/bin/
|
2013-03-27 22:51:32 +04:00
|
|
|
cp g500-control $out/bin/
|
|
|
|
'';
|
2013-11-29 04:10:01 +04:00
|
|
|
|
2013-03-27 22:51:32 +04:00
|
|
|
meta = {
|
|
|
|
homepage = http://code.google.com/p/g500-control/;
|
|
|
|
description = "Configure Logitech G500's internal profile under Linux";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-03-27 23:59:57 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-11-29 04:10:01 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2013-03-27 22:51:32 +04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|