From b2e9fff168ca23a8ce7469a5c3b782c4d954767d Mon Sep 17 00:00:00 2001 From: sohalt Date: Fri, 13 Oct 2023 15:39:47 +0200 Subject: [PATCH] spacenavd: 0.8 -> 1.2 --- pkgs/misc/drivers/spacenavd/default.nix | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/pkgs/misc/drivers/spacenavd/default.nix b/pkgs/misc/drivers/spacenavd/default.nix index eb2fc165cccb..cf0a0e760869 100644 --- a/pkgs/misc/drivers/spacenavd/default.nix +++ b/pkgs/misc/drivers/spacenavd/default.nix @@ -1,33 +1,16 @@ { stdenv, lib, fetchFromGitHub, fetchpatch, libX11, IOKit }: stdenv.mkDerivation rec { - version = "0.8"; + version = "1.2"; pname = "spacenavd"; src = fetchFromGitHub { owner = "FreeSpacenav"; repo = "spacenavd"; rev = "v${version}"; - sha256 = "1zz0cm5cgvp9s5n4nzksl8rb11c7sw214bdafzra74smvqfjcjcf"; + sha256 = "sha256-UuM/HTgictvIvlUnHZ5Ha8XwBhDTbt7CG9c4jzKQl0s="; }; - patches = [ - # Fixes Darwin: https://github.com/FreeSpacenav/spacenavd/pull/38 - (fetchpatch { - url = "https://github.com/FreeSpacenav/spacenavd/commit/d6a25d5c3f49b9676d039775efc8bf854737c43c.patch"; - sha256 = "02pdgcvaqc20qf9hi3r73nb9ds7yk2ps9nnxaj0x9p50xjnhfg5c"; - }) - # Changes the socket path from /run/spnav.sock to $XDG_RUNTIME_DIR/spnav.sock - # to allow for a user service - ./configure-socket-path.patch - # Changes the pidfile path from /run/spnavd.pid to $XDG_RUNTIME_DIR/spnavd.pid - # to allow for a user service - ./configure-pidfile-path.patch - # Changes the config file path from /etc/spnavrc to $XDG_CONFIG_HOME/spnavrc or $HOME/.config/spnavrc - # to allow for a user service - ./configure-cfgfile-path.patch - ]; - buildInputs = [ libX11 ] ++ lib.optional stdenv.isDarwin IOKit;