NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.16k stars 13.42k forks source link

Build failure: jetbrains.clion #304151

Closed jasper-at-windswept closed 4 months ago

jasper-at-windswept commented 4 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Build clion

Build log

searching for dependencies of /nix/store/knn28bv5bp1788al7fwzvfd4lrhvdbwg-clion-2024.1/clion/plugins/platform-ijent-impl/ijent-x86_64-unknown-linux-musl-release
auto-patchelf: 2 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libfontconfig.so.1 wanted by /nix/store/knn28bv5bp1788al7fwzvfd4lrhvdbwg-clion-2024.1/clion/plugins/clion-radler/dotTrace.dotMemory/DotFiles/linux-x64/libSkiaSharp.so
error: auto-patchelf could not satisfy dependency liblttng-ust.so.0 wanted by /nix/store/knn28bv5bp1788al7fwzvfd4lrhvdbwg-clion-2024.1/clion/plugins/clion-radler/DotFiles/linux-x64/dotnet/shared/Microsoft.NETCore.App/8.0.1/libcoreclrtraceptprovider.so
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.

Additional context

Installing as a package through a development flake.

{
  inputs = {
    nixpkgs.url = "nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
        libraries = with pkgs;[
          webkitgtk
          gtk3
          cairo
          gdk-pixbuf
          glib
          dbus
          openssl_3
          librsvg
     libxkbcommon
     wayland
     fontconfig
     alsa-lib
     vulkan-loader
        ];
        packages = with pkgs; [
          curl
          wget
          pkg-config
          dbus
          openssl_3
     alsa-lib
     libxkbcommon
     vulkan-loader 
          glib
          gtk3
          libsoup
          webkitgtk
          librsvg
     rustup
     jetbrains.clion
        ];
      in
      {
        devShell = pkgs.mkShell {
          buildInputs = packages;
          shellHook =
            ''
              export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH
              export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS
            '';
        };
      });
}

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.5, NixOS, 24.05 (Uakari), 24.05.20240412.a0c9e3a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/a4s7vp7qw512b6mhp46raqdc5g6qw0pw-source`

Add a :+1: reaction to issues you find important.

Cryolitia commented 4 months ago

may could be closed by #304223