Merge pull request #417 from the-kenny/g500-control

g500-control: add
This commit is contained in:
Vladimír Čunát 2013-04-03 08:14:18 -07:00
commit 2cd7d9d29e
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{stdenv, fetchurl, coreutils}:
stdenv.mkDerivation rec {
name = "g500-control-0.0.1";
src = fetchurl {
url = "http://g500-control.googlecode.com/files/g500_control_0.0.1.tar.gz";
sha256 = "1xlg9lpxnk3228k81y1i6jjh4df1p4jh64g54w969g6a6v6dazvb";
};
buildInputs = [ coreutils ];
unpackPhase = ''
mkdir -pv g500-control
tar -C g500-control/ -xf $src
'';
buildPhase = ''
cd g500-control
gcc -o g500-control *.c
'';
installPhase = ''
mkdir -pv $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;
};
}

View File

@ -813,6 +813,8 @@ let
uni2ascii = callPackage ../tools/text/uni2ascii { }; uni2ascii = callPackage ../tools/text/uni2ascii { };
g500-control = callPackage ../tools/misc/g500-control { };
gawk = callPackage ../tools/text/gawk { }; gawk = callPackage ../tools/text/gawk { };
gdmap = callPackage ../tools/system/gdmap { }; gdmap = callPackage ../tools/system/gdmap { };