nixos/spacenavd: run as user service

This commit is contained in:
sohalt
2021-05-22 12:48:12 +02:00
committed by Gabriel Ebner
parent f8ed803385
commit be01cb8b97
5 changed files with 175 additions and 2 deletions
@@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
buildInputs = [ libX11 ];
patches = [
# Changes the socket path from /run/spnav.sock to $XDG_RUNTIME_DIR/spnav.sock
# to allow for a user service
./configure-socket-path.patch
];
configureFlags = [ "--disable-debug"];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];