nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 29 lines 698 B view raw
1{ stdenv, lib, libspnav, libX11, mesa_glu }: 2 3stdenv.mkDerivation { 4 pname = "spacenav-cube-example"; 5 version = libspnav.version; 6 7 src = libspnav.src; 8 9 sourceRoot = "source/examples/cube"; 10 11 buildInputs = [ libX11 mesa_glu libspnav ]; 12 13 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 14 15 installPhase = '' 16 runHook preInstall 17 mkdir -p $out/bin 18 cp cube $out/bin/spacenav-cube-example 19 runHook postInstall 20 ''; 21 22 meta = with lib; { 23 homepage = "https://spacenav.sourceforge.net/"; 24 description = "An example application to test the spacenavd driver"; 25 license = licenses.bsd3; 26 platforms = platforms.unix; 27 maintainers = with maintainers; [ sohalt ]; 28 }; 29}