depot/third_party/nixpkgs/pkgs/applications/misc/spacenav-cube-example/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
733 B
Nix

{ stdenv, lib, libspnav, libX11, mesa_glu }:
stdenv.mkDerivation {
pname = "spacenav-cube-example";
inherit (libspnav) version src;
sourceRoot = "${libspnav.src.name}/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 = "Example application to test the spacenavd driver";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ sohalt ];
mainProgram = "spacenav-cube-example";
};
}