mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
28 lines
733 B
Nix
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";
|
|
};
|
|
}
|