1 { stdenv, lib, libspnav, libX11, mesa_glu }:
4 pname = "spacenav-cube-example";
5 inherit (libspnav) version src;
7 sourceRoot = "${libspnav.src.name}/examples/cube";
9 buildInputs = [ libX11 mesa_glu libspnav ];
11 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
16 cp cube $out/bin/spacenav-cube-example
21 homepage = "https://spacenav.sourceforge.net/";
22 description = "An example application to test the spacenavd driver";
23 license = licenses.bsd3;
24 platforms = platforms.unix;
25 maintainers = with maintainers; [ sohalt ];
26 mainProgram = "spacenav-cube-example";