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
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
qmake,
|
|
qtbase,
|
|
libGLU,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libqglviewer";
|
|
version = "2.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GillesDebunne";
|
|
repo = "libQGLViewer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-T8KAcw3cXbp0FZm53OjlQBnUvLRFdoj80dIQzQY0/yw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
buildInputs = [
|
|
qtbase
|
|
libGLU
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
# Fix build on darwin, and install dylib instead of framework
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
substituteInPlace QGLViewer/QGLViewer.pro \
|
|
--replace-fail \
|
|
"LIB_DIR_ = /Library/Frameworks" \
|
|
"LIB_DIR_ = \$\$""{PREFIX_}/lib" \
|
|
--replace-fail \
|
|
"!staticlib: CONFIG *= lib_bundle" \
|
|
""
|
|
'';
|
|
|
|
preConfigure = ''
|
|
cd QGLViewer
|
|
'';
|
|
|
|
meta = {
|
|
description = "C++ library based on Qt that eases the creation of OpenGL 3D viewers";
|
|
homepage = "https://github.com/GillesDebunne/libQGLViewer";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|