Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
758 B
Nix
39 lines
758 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";
|
|
};
|
|
}
|