2019-12-18 11:38:04 +00:00
|
|
|
{ stdenv, lib, libspnav, libX11, mesa_glu }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "spacenav-cube-example";
|
|
|
|
version = libspnav.version;
|
|
|
|
|
|
|
|
src = libspnav.src;
|
|
|
|
|
|
|
|
sourceRoot = "source/examples/cube";
|
|
|
|
|
|
|
|
buildInputs = [ libX11 mesa_glu libspnav ];
|
|
|
|
|
2021-05-18 12:56:08 +01:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2019-12-18 11:38:04 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp cube $out/bin/spacenav-cube-example
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://spacenav.sourceforge.net/";
|
|
|
|
description = "An example application to test the spacenavd driver";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ sohalt ];
|
|
|
|
};
|
|
|
|
}
|