mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
30 lines
698 B
Nix
30 lines
698 B
Nix
{ 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 ];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp cube $out/bin/spacenav-cube-example
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://spacenav.sourceforge.net/";
|
|
description = "An example application to test the spacenavd driver";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sohalt ];
|
|
};
|
|
}
|