12 stdenv.mkDerivation rec {
17 url = "https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${version}.deb";
18 sha256 = "sha256-9dm6tVQ5nsDC8X2clrT4cAl8jg4wLwcihE4bnFgdU+A=";
26 fhsEnv = buildFHSEnv {
27 pname = "${pname}-fhs-env";
35 # Unity Hub binary dependencies
40 gsettings-desktop-schemas
43 # Bug Reporter dependencies
54 # Unity Hub ldd dependencies
79 # Unity Hub additional dependencies
93 # Unity Editor dependencies
94 libglvnd # provides ligbl
102 git # for git-based packages in unity package manager
104 # Unity Editor 2019 specific dependencies
110 # Unity Editor 6000 specific dependencies
116 unpackCmd = "dpkg -x $curSrc src";
118 dontConfigure = true;
125 mv opt/ usr/share/ $out
127 # `/opt/unityhub/unityhub` is a shell wrapper that runs `/opt/unityhub/unityhub-bin`
128 # Which we don't need and overwrite with our own custom wrapper
129 makeWrapper ${fhsEnv}/bin/${pname}-fhs-env $out/opt/unityhub/unityhub \
130 --add-flags $out/opt/unityhub/unityhub-bin \
135 ln -s $out/opt/unityhub/unityhub $out/bin/unityhub
137 # Replace absolute path in desktop file to correctly point to nix store
138 substituteInPlace $out/share/applications/unityhub.desktop \
139 --replace /opt/unityhub/unityhub $out/opt/unityhub/unityhub
144 passthru.updateScript = ./update.sh;
147 description = "Official Unity3D app to download and manage Unity Projects and installations";
148 homepage = "https://unity.com/";
149 downloadPage = "https://unity.com/unity-hub";
150 changelog = "https://unity.com/unity-hub/release-notes";
151 license = licenses.unfree;
152 maintainers = with maintainers; [
156 platforms = [ "x86_64-linux" ];
157 sourceProvenance = with sourceTypes; [ binaryNativeCode ];