1

Derivations/Unityhub: Add custom unityhub 3.13 derivation with fixed libxml and removed Gconf

nixpkgs issues/419634#issuecomment-3052547176
This commit is contained in:
2025-07-22 19:24:00 +02:00
parent 1418e62598
commit 6db7efe71b
6 changed files with 14 additions and 10 deletions

View File

@ -7,5 +7,6 @@
monolisa = pkgs.callPackage ./monolisa {};
msty = pkgs.callPackage ./msty {};
unityhub = pkgs.callPackage ./unityhub {};
tidal-dl-ng = pkgs.callPackage ./tidal-dl-ng {};
}

View File

@ -1,4 +1,3 @@
# Taken from pull/422785
{
lib,
stdenv,
@ -47,7 +46,15 @@ stdenv.mkDerivation rec {
++ extraPkgs pkgs;
multiPkgs = pkgs:
with pkgs;
with pkgs; let
libxml2-legacy = libxml2.overrideAttrs (previousAttrs: rec {
version = "2.13.8";
src = fetchurl {
url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz";
hash = "sha256-J3KUyzMRmrcbK8gfL0Rem8lDW4k60VuyzSsOhZoO6Eo=";
};
});
in
[
# Unity Hub ldd dependencies
cups
@ -94,7 +101,7 @@ stdenv.mkDerivation rec {
xorg.libXcursor
glib
gdk-pixbuf
libxml2
libxml2-legacy
zlib
clang
git # for git-based packages in unity package manager

View File

@ -77,10 +77,6 @@
# Realtime audio
# musnix.url = "github:musnix/musnix";
# musnix.inputs.nixpkgs.follows = "nixpkgs";
# Pinned versions
# v4l2loopback-pinned.url = "github:nixos/nixpkgs/4684fd6b0c01e4b7d99027a34c93c2e09ecafee2";
# unityhub-pinned.url = "github:huantianad/nixpkgs/9542b0bc7701e173a10e6977e57bbba68bb3051f";
};
# Outputs is a function that takes the inputs as arguments.

View File

@ -126,7 +126,7 @@
# Unity Stuff
# TODO: Unity module
# unityhub # TODO: Wait for https://nixpk.gs/pr-tracker.html?pr=422785
unityhub
rider-unity
dotnetCore
mono
@ -214,7 +214,7 @@
"com.usebottles.bottles"
"io.github.lawstorant.boxflat"
"com.unity.UnityHub"
# "com.unity.UnityHub"
];
overrides = {

View File

@ -20,7 +20,7 @@
# Overriding specific packages from a different nixpkgs (e.g. a pull request)
# can be done like this. Note that this creates an additional nixpkgs instance.
# https://github.com/NixOS/nixpkgs/issues/418451
# unityhub_pinned_3_13 =
# unityhub_3_13 =
# (import inputs.unityhub-pinned {
# config.allowUnfree = true;
# localSystem = {inherit (prev) system;};