Nixpkgs version
Describe the bug
unity hub after manually remove unity 2019 support installed, but cant create any project, when tried to lunch editor manually with nix-ld i'm getting error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Steps to reproduce
install unityhub with
{
lib,
stdenv,
fetchurl,
dpkg,
makeWrapper,
buildFHSEnv,
extraPkgs ? pkgs: [ ],
extraLibs ? pkgs: [ ],
}:
stdenv.mkDerivation rec {
pname = "unityhub";
version = "3.12.1";
src = fetchurl {
url = "https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${version}.deb";
sha256 = "sha256-Zpzl3H8cgVmPqpRAakL3m12OZ04Ddzpm+2krkuEkwrk=";
};
nativeBuildInputs = [
dpkg
makeWrapper
];
fhsEnv = buildFHSEnv {
pname = "${pname}-fhs-env";
inherit version;
runScript = "";
targetPkgs =
pkgs:
with pkgs;
[
# Unity Hub binary dependencies
xorg.libXrandr
xdg-utils
# GTK filepicker
gsettings-desktop-schemas
hicolor-icon-theme
# Bug Reporter dependencies
fontconfig
freetype
lsb-release
]
++ extraPkgs pkgs;
multiPkgs =
pkgs:
with pkgs;
[
# Unity Hub ldd dependencies
cups
gtk3
expat
libxkbcommon
lttng-ust_2_12
krb5
alsa-lib
nss
libdrm
libgbm
nspr
atk
dbus
at-spi2-core
pango
xorg.libXcomposite
xorg.libXext
xorg.libXdamage
xorg.libXfixes
xorg.libxcb
xorg.libxshmfence
xorg.libXScrnSaver
xorg.libXtst
# Unity Hub additional dependencies
libva
openssl
cairo
libnotify
libuuid
libsecret
udev
libappindicator
wayland
cpio
icu
libpulseaudio
# Unity Editor dependencies
libglvnd # provides ligbl
xorg.libX11
xorg.libXcursor
glib
gdk-pixbuf
libxml2
zlib
clang
git # for git-based packages in unity package manager
# Unity Editor 6000 specific dependencies
harfbuzz
vulkan-loader
# Unity Bug Reporter specific dependencies
xorg.libICE
xorg.libSM
# Fonts used by built-in and third party editor tools
corefonts
dejavu_fonts
liberation_ttf
]
++ extraLibs pkgs;
};
unpackCmd = "dpkg -x $curSrc src";
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
mv opt/ usr/share/ $out
# `/opt/unityhub/unityhub` is a shell wrapper that runs `/opt/unityhub/unityhub-bin`
# Which we don't need and overwrite with our own custom wrapper
makeWrapper ${fhsEnv}/bin/${pname}-fhs-env $out/opt/unityhub/unityhub \
--add-flags $out/opt/unityhub/unityhub-bin \
--argv0 unityhub
# Link binary
mkdir -p $out/bin
ln -s $out/opt/unityhub/unityhub $out/bin/unityhub
# Replace absolute path in desktop file to correctly point to nix store
substituteInPlace $out/share/applications/unityhub.desktop \
--replace /opt/unityhub/unityhub $out/opt/unityhub/unityhub
runHook postInstall
'';
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Official Unity3D app to download and manage Unity Projects and installations";
homepage = "https://unity.com/";
downloadPage = "https://unity.com/unity-hub";
changelog = "https://unity.com/unity-hub/release-notes";
license = licenses.unfree;
maintainers = with maintainers; [
tesq0
huantian
];
platforms = [ "x86_64-linux" ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}
and try create any project
Expected behaviour
project created and editor lunch
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux"
- host os:
Linux 6.15.3, NixOS, 25.11 (Xantusia), 25.11.20250621.4206c4c
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.28.3
- channels(root):
"nixos-25.05"
- nixpkgs:
/nix/store/si3k775n94ax09w3cjgc5hr2vjs84v7m-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Describe the bug
unity hub after manually remove unity 2019 support installed, but cant create any project, when tried to lunch editor manually with nix-ld i'm getting error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Steps to reproduce
install unityhub with
and try create any project
Expected behaviour
project created and editor lunch
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"Linux 6.15.3, NixOS, 25.11 (Xantusia), 25.11.20250621.4206c4cyesyesnix-env (Nix) 2.28.3"nixos-25.05"/nix/store/si3k775n94ax09w3cjgc5hr2vjs84v7m-sourceNotify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.