From e70954f8c856c76a25a03c838b182d666ea59374 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Wed, 27 Mar 2013 19:51:32 +0100 Subject: [PATCH] New package: g500-control g500-control is a small tool to configure internal profiles of a Logitech G500 mouse. Signed-off-by: Moritz Ulrich --- pkgs/tools/misc/g500-control/default.nix | 34 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/misc/g500-control/default.nix diff --git a/pkgs/tools/misc/g500-control/default.nix b/pkgs/tools/misc/g500-control/default.nix new file mode 100644 index 000000000000..1055b3c8d5be --- /dev/null +++ b/pkgs/tools/misc/g500-control/default.nix @@ -0,0 +1,34 @@ +{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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e72c0fe3d10e..94f8a018bd0e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -811,6 +811,8 @@ let uni2ascii = callPackage ../tools/text/uni2ascii { }; + g500-control = callPackage ../tools/misc/g500-control { }; + gawk = callPackage ../tools/text/gawk { }; gdmap = callPackage ../tools/system/gdmap { };