spacenavd: init at 0.6
This commit is contained in:
parent
a40f288305
commit
c1b09c9d7b
|
@ -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
|
||||
|
|
31
nixos/modules/services/hardware/spacenavd.nix
Normal file
31
nixos/modules/services/hardware/spacenavd.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
23
pkgs/misc/drivers/spacenavd/default.nix
Normal file
23
pkgs/misc/drivers/spacenavd/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user