diff --git a/pkgs/applications/audio/openutau/default.nix b/pkgs/applications/audio/openutau/default.nix index bb5c43f29fb7..f797215b607b 100644 --- a/pkgs/applications/audio/openutau/default.nix +++ b/pkgs/applications/audio/openutau/default.nix @@ -5,9 +5,6 @@ , dotnetCorePackages , dbus , fontconfig -, libICE -, libSM -, libX11 , portaudio }: @@ -32,9 +29,6 @@ buildDotnetModule rec { runtimeDeps = [ dbus - libICE - libSM - libX11 portaudio ]; diff --git a/pkgs/applications/version-management/git-credential-manager/default.nix b/pkgs/applications/version-management/git-credential-manager/default.nix index fb70c4b71888..c9df6aff549a 100644 --- a/pkgs/applications/version-management/git-credential-manager/default.nix +++ b/pkgs/applications/version-management/git-credential-manager/default.nix @@ -2,21 +2,16 @@ , fetchFromGitHub , buildDotnetModule , dotnetCorePackages -, libX11 -, libICE -, libSM , libsecret , git , git-credential-manager , gnupg , pass , testers -, withGuiSupport ? true , withLibsecretSupport ? true , withGpgSupport ? true }: -assert withLibsecretSupport -> withGuiSupport; buildDotnetModule rec { pname = "git-credential-manager"; version = "2.5.1"; @@ -36,8 +31,7 @@ buildDotnetModule rec { executables = [ "git-credential-manager" ]; runtimeDeps = - lib.optionals withGuiSupport [ libX11 libICE libSM ] - ++ lib.optional withLibsecretSupport libsecret; + lib.optional withLibsecretSupport libsecret; makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath ([ git ] ++ lib.optionals withGpgSupport [ gnupg pass ])}" ]; diff --git a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix b/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix index 384505a65cd2..f4bc1976e0eb 100644 --- a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix +++ b/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix @@ -3,7 +3,11 @@ dotnetCorePackages, fontconfig, lib, + libICE, + libSM, + libX11, stdenv, + writeText, }: { # e.g. @@ -13,22 +17,39 @@ # buildInputs = old.buildInputs or [ ] ++ [ hello ]; # }); + "Avalonia.X11" = + package: + package.overrideAttrs ( + old: + lib.optionalAttrs (!stdenv.isDarwin) { + setupHook = writeText "setupHook.sh" '' + prependToVar dotnetRuntimeDeps \ + "${lib.getLib libICE}" \ + "${lib.getLib libSM}" \ + "${lib.getLib libX11}" + ''; + } + ); + "SkiaSharp.NativeAssets.Linux" = package: - package.overrideAttrs (old: { - nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ autoPatchelfHook ]; + package.overrideAttrs ( + old: + lib.optionalAttrs stdenv.isLinux { + nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ autoPatchelfHook ]; - buildInputs = old.buildInputs or [ ] ++ [ fontconfig ]; + buildInputs = old.buildInputs or [ ] ++ [ fontconfig ]; - preInstall = - old.preInstall or "" - + '' - cd runtimes - for platform in *; do - [[ $platform == "${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system}" ]] || - rm -r "$platform" - done - cd - >/dev/null - ''; - }); + preInstall = + old.preInstall or "" + + '' + cd runtimes + for platform in *; do + [[ $platform == "${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system}" ]] || + rm -r "$platform" + done + cd - >/dev/null + ''; + } + ); } diff --git a/pkgs/by-name/be/beatsabermodmanager/package.nix b/pkgs/by-name/be/beatsabermodmanager/package.nix index a44d30f7fa70..e11f60c39508 100644 --- a/pkgs/by-name/be/beatsabermodmanager/package.nix +++ b/pkgs/by-name/be/beatsabermodmanager/package.nix @@ -5,10 +5,6 @@ dotnetCorePackages, - libX11, - libICE, - libSM, - xdg-utils, }: @@ -37,11 +33,6 @@ buildDotnetModule rec { nugetDeps = ./deps.nix; - runtimeDeps = [ - libX11 - libICE - libSM - ]; # Required for OneClick makeWrapperArgs = [ diff --git a/pkgs/by-name/bl/blendfarm/package.nix b/pkgs/by-name/bl/blendfarm/package.nix index ba7bfc21af3c..4eeabc18efaf 100644 --- a/pkgs/by-name/bl/blendfarm/package.nix +++ b/pkgs/by-name/bl/blendfarm/package.nix @@ -6,9 +6,6 @@ dotnetCorePackages, xz, pcre, - libX11, - libICE, - libSM, autoPatchelfHook, bintools, fixDarwinDylibNames, @@ -77,9 +74,6 @@ buildDotnetModule rec { runtimeDeps = [ xz pcre - libX11 - libICE - libSM libgdiplus glib libXrandr diff --git a/pkgs/by-name/kn/knossosnet/package.nix b/pkgs/by-name/kn/knossosnet/package.nix index ab767a89300d..7abcb75f3c9a 100644 --- a/pkgs/by-name/kn/knossosnet/package.nix +++ b/pkgs/by-name/kn/knossosnet/package.nix @@ -3,7 +3,6 @@ , fetchFromGitHub , lib , openal - , xorg }: buildDotnetModule rec { @@ -22,7 +21,7 @@ buildDotnetModule rec { nugetDeps = ./deps.nix; executables = [ "Knossos.NET" ]; - runtimeDeps = [ openal xorg.libX11 xorg.libICE xorg.libSM ]; + runtimeDeps = [ openal ]; meta = with lib; { homepage = "https://github.com/KnossosNET/Knossos.NET"; diff --git a/pkgs/by-name/li/libation/package.nix b/pkgs/by-name/li/libation/package.nix index ff736584a33d..b84469c716fb 100644 --- a/pkgs/by-name/li/libation/package.nix +++ b/pkgs/by-name/li/libation/package.nix @@ -6,13 +6,6 @@ dotnetCorePackages, wrapGAppsHook3, - libX11, - libICE, - libSM, - libXi, - libXcursor, - libXext, - libXrandr, glew, gtk3, }: @@ -47,13 +40,6 @@ buildDotnetModule rec { runtimeDeps = [ # For Avalonia UI - libX11 - libICE - libSM - libXi - libXcursor - libXext - libXrandr glew # For file dialogs gtk3 diff --git a/pkgs/by-name/lu/lumafly/package.nix b/pkgs/by-name/lu/lumafly/package.nix index 676b00cfa646..c15e290b465c 100644 --- a/pkgs/by-name/lu/lumafly/package.nix +++ b/pkgs/by-name/lu/lumafly/package.nix @@ -6,9 +6,6 @@ zlib, icu, openssl, - libX11, - libICE, - libSM, icoutils, copyDesktopItems, makeDesktopItem, @@ -36,9 +33,6 @@ buildDotnetModule rec { zlib icu openssl - libX11 - libICE - libSM ]; nativeBuildInputs = [ diff --git a/pkgs/by-name/ne/nexusmods-app/package.nix b/pkgs/by-name/ne/nexusmods-app/package.nix index a55bb43e0007..6d07a5b93f9e 100644 --- a/pkgs/by-name/ne/nexusmods-app/package.nix +++ b/pkgs/by-name/ne/nexusmods-app/package.nix @@ -7,9 +7,6 @@ fetchFromGitHub, fontconfig, lib, - libICE, - libSM, - libX11, runCommand, pname ? "nexusmods-app", }: @@ -62,12 +59,6 @@ buildDotnetModule (finalAttrs: { runtimeInputs = [ desktop-file-utils ]; - runtimeDeps = [ - libICE - libSM - libX11 - ]; - executables = [ "NexusMods.App" ]; doCheck = true; diff --git a/pkgs/by-name/re/retrospy/package.nix b/pkgs/by-name/re/retrospy/package.nix index 869b6debfb1a..a207150e1e47 100644 --- a/pkgs/by-name/re/retrospy/package.nix +++ b/pkgs/by-name/re/retrospy/package.nix @@ -4,10 +4,6 @@ , copyDesktopItems , makeDesktopItem , lib -, libX11 -, libXcursor -, libICE -, libSM , runCommandLocal }: let @@ -42,13 +38,6 @@ buildDotnetModule { copyDesktopItems ]; - runtimeDeps = [ - libX11 - libICE - libXcursor - libSM - ]; - projectFile = [ "RetroSpyX/RetroSpyX.csproj" "GBPemuX/GBPemuX.csproj" diff --git a/pkgs/by-name/ry/ryujinx/package.nix b/pkgs/by-name/ry/ryujinx/package.nix index cbf8e5281008..5ff91a281cd4 100644 --- a/pkgs/by-name/ry/ryujinx/package.nix +++ b/pkgs/by-name/ry/ryujinx/package.nix @@ -10,12 +10,6 @@ , sndio , pulseaudio , vulkan-loader -, libICE -, libSM -, libXi -, libXcursor -, libXext -, libXrandr , glew , libGL , udev @@ -54,12 +48,6 @@ buildDotnetModule rec { udev # Avalonia UI - libICE - libSM - libXi - libXcursor - libXext - libXrandr glew # Headless executable diff --git a/pkgs/games/space-station-14-launcher/space-station-14-launcher.nix b/pkgs/games/space-station-14-launcher/space-station-14-launcher.nix index 909b57277f61..10dfea3d7dee 100644 --- a/pkgs/games/space-station-14-launcher/space-station-14-launcher.nix +++ b/pkgs/games/space-station-14-launcher/space-station-14-launcher.nix @@ -6,13 +6,6 @@ , iconConvTools , copyDesktopItems , makeDesktopItem -, libX11 -, libICE -, libSM -, libXi -, libXcursor -, libXext -, libXrandr , glew , SDL2 , glfw @@ -94,13 +87,6 @@ buildDotnetModule rec { gdk-pixbuf # Avalonia UI dependencies. - libX11 - libICE - libSM - libXi - libXcursor - libXext - libXrandr glew ]; diff --git a/pkgs/tools/games/scarab/default.nix b/pkgs/tools/games/scarab/default.nix index e3bce4d7e574..02dec25949e0 100644 --- a/pkgs/tools/games/scarab/default.nix +++ b/pkgs/tools/games/scarab/default.nix @@ -3,9 +3,6 @@ , fetchFromGitHub , glibc , zlib -, libX11 -, libICE -, libSM , gtk3 , copyDesktopItems , icoutils @@ -31,9 +28,6 @@ buildDotnetModule rec { runtimeDeps = [ glibc zlib - libX11 - libICE - libSM gtk3 ]; diff --git a/pkgs/tools/networking/mqttmultimeter/default.nix b/pkgs/tools/networking/mqttmultimeter/default.nix index a265f1dfa472..29990cbc83a8 100644 --- a/pkgs/tools/networking/mqttmultimeter/default.nix +++ b/pkgs/tools/networking/mqttmultimeter/default.nix @@ -4,7 +4,6 @@ , dotnet-runtime_8 , buildDotnetModule , fetchFromGitHub -, xorg , libglvnd , makeDesktopItem , copyDesktopItems @@ -41,9 +40,6 @@ buildDotnetModule rec { runtimeDeps = [ libglvnd - xorg.libSM - xorg.libICE - xorg.libX11 ]; desktopItems = makeDesktopItem {