openhmd: drop (#458945)
This commit is contained in:
@@ -22,16 +22,6 @@ buildFHSEnv {
|
||||
stdenv.cc.libc
|
||||
gcc
|
||||
])
|
||||
++
|
||||
# OpenHMD dependencies
|
||||
(
|
||||
pkgs.openhmd.buildInputs
|
||||
++ pkgs.openhmd.nativeBuildInputs
|
||||
++ (with pkgs; [
|
||||
meson
|
||||
])
|
||||
)
|
||||
|
||||
++ (
|
||||
# OpenComposite dependencies
|
||||
pkgs.opencomposite.buildInputs ++ pkgs.opencomposite.nativeBuildInputs
|
||||
@@ -138,7 +128,6 @@ buildFHSEnv {
|
||||
kebabToCamel = x: pascalToCamel (kebabToPascal x);
|
||||
profiles = [
|
||||
"lighthouse-default"
|
||||
"openhmd-default"
|
||||
"simulated-default"
|
||||
"survive-default"
|
||||
"wmr-default"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
nix-update-script,
|
||||
onnxruntime,
|
||||
opencv4,
|
||||
openhmd,
|
||||
openvr,
|
||||
orc,
|
||||
pcre2,
|
||||
@@ -126,7 +125,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libXrandr
|
||||
onnxruntime
|
||||
opencv4
|
||||
openhmd
|
||||
openvr
|
||||
orc
|
||||
pcre2
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
pkg-config,
|
||||
hidapi,
|
||||
SDL2,
|
||||
libGL,
|
||||
glew,
|
||||
withExamples ? true,
|
||||
}:
|
||||
|
||||
let
|
||||
examplesOnOff = if withExamples then "ON" else "OFF";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openhmd";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenHMD";
|
||||
repo = "OpenHMD";
|
||||
rev = version;
|
||||
sha256 = "1hkpdl4zgycag5k8njvqpx01apxmm8m8pvhlsxgxpqiqy9a38ccg";
|
||||
};
|
||||
|
||||
# substitute for CMake 4 compat
|
||||
# "OpenHMD is currently NOT ACTIVELY MAINTAINED" in upstream README
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
hidapi
|
||||
]
|
||||
++ lib.optionals withExamples [
|
||||
SDL2
|
||||
glew
|
||||
libGL
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_BOTH_STATIC_SHARED_LIBS=ON"
|
||||
"-DOPENHMD_EXAMPLE_SIMPLE=${examplesOnOff}"
|
||||
"-DOPENHMD_EXAMPLE_SDL=${examplesOnOff}"
|
||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||
|
||||
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString withExamples ''
|
||||
mkdir -p $out/bin
|
||||
install -D examples/simple/simple $out/bin/openhmd-example-simple
|
||||
install -D examples/opengl/openglexample $out/bin/openhmd-example-opengl
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.openhmd.net"; # https does not work
|
||||
description = "Library API and drivers immersive technology";
|
||||
longDescription = ''
|
||||
OpenHMD is a very simple FLOSS C library and a set of drivers
|
||||
for interfacing with Virtual Reality (VR) Headsets aka
|
||||
Head-mounted Displays (HMDs), controllers and trackers like
|
||||
Oculus Rift, HTC Vive, Windows Mixed Reality, and etc.
|
||||
'';
|
||||
license = licenses.boost;
|
||||
maintainers = with maintainers; [ oxij ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -1202,6 +1202,7 @@ mapAliases {
|
||||
opencl-clang = throw "opencl-clang has been integrated into intel-graphics-compiler"; # Added 2025-09-10
|
||||
openconnect_gnutls = throw "'openconnect_gnutls' has been renamed to/replaced by 'openconnect'"; # Converted to throw 2025-10-27
|
||||
openexr_3 = throw "'openexr_3' has been renamed to/replaced by 'openexr'"; # Converted to throw 2025-10-27
|
||||
openhmd = throw "'openhmd' has been removed due to being unmaintained upstream"; # Added 2025-11-05
|
||||
openimageio2 = throw "'openimageio2' has been renamed to/replaced by 'openimageio'"; # Converted to throw 2025-10-27
|
||||
openjdk23 = throw "OpenJDK 23 was removed as it has reached its end of life"; # Added 2025-11-04
|
||||
openjdk23_headless = throw "OpenJDK 23 was removed as it has reached its end of life"; # Added 2025-11-04
|
||||
|
||||
Reference in New Issue
Block a user