spacenavd: init at 0.6

This commit is contained in:
Markus Kohlhase 2016-01-16 10:29:33 +01:00 committed by Georges Dupéron
parent a40f288305
commit c1b09c9d7b
4 changed files with 56 additions and 0 deletions

View File

@ -188,6 +188,7 @@
./services/hardware/pcscd.nix
./services/hardware/pommed.nix
./services/hardware/sane.nix
./services/hardware/spacenavd.nix
./services/hardware/tcsd.nix
./services/hardware/tlp.nix
./services/hardware/thinkfan.nix

View File

@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.hardware.spacenavd;
in {
options = {
hardware.spacenavd = {
enable = mkOption {
default = false;
description = ''
Whether to enable spacenavd to support 3DConnexion devices
'';
};
};
};
config = mkIf cfg.enable {
systemd.services.spacenavd = {
description = "spacenavd";
after = [ "basic.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "forking";
ExecStart = "${pkgs.spacenavd}/bin/spacenavd";
};
};
};
}

View File

@ -0,0 +1,23 @@
{stdenv, fetchurl, libX11}:
stdenv.mkDerivation rec {
version = "0.6";
name = "spacenavd-${version}";
src = fetchurl {
url = "http://downloads.sourceforge.net/spacenav/${name}.tar.gz";
sha256 = "1ayhi06pv5lx36m5abwbib1wbs75svjkz92605cmkaf5jszh7ln2";
};
buildInputs = [ libX11 ];
configureFlags = [ "--disable-debug"];
meta = {
homepage = "http://spacenav.sourceforge.net/";
description = "A free, compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 3D input devices (called 'space navigator', 'space pilot', 'space traveller', etc).";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.flosse ];
};
}

View File

@ -8279,6 +8279,7 @@ in
libspectre = callPackage ../development/libraries/libspectre { };
libspnav = callPackage ../development/libraries/libspnav { };
spacenavd = callPackage ../misc/drivers/spacenavd { };
libgsf = callPackage ../development/libraries/libgsf { };