8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
13 owner = "FreeSpacenav";
16 hash = "sha256-qBewSOiwf5iaGKLGRWOQUoHkUADuH8Q1mJCLiWCXmuQ=";
19 buildInputs = [ libX11 ];
21 configureFlags = [ "--disable-debug" ];
24 "CC=${stdenv.cc.targetPrefix}cc"
25 "AR=${stdenv.cc.targetPrefix}ar"
27 ++ lib.optionals stdenv.hostPlatform.isDarwin [
29 "shared+=-Wl,-install_name,$(out)/lib/$(lib_so)"
33 mkdir -p $out/{lib,include}
37 homepage = "https://spacenav.sourceforge.net/";
38 description = "Device driver and SDK for 3Dconnexion 3D input devices";
39 longDescription = "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)";
40 license = licenses.bsd3;
41 platforms = platforms.unix;
42 maintainers = with maintainers; [ sohalt ];