Loading pkgs/applications/graphics/apitrace/default.nix +56 −50 Original line number Diff line number Diff line Loading @@ -30,21 +30,25 @@ stdenv.mkDerivation rec { # LD_PRELOAD wrappers need to be statically linked to work against all kinds # of games -- so it's fine to use e.g. bundled snappy. buildInputs = [ buildInputs = [ libX11 procps libdwarf gtest brotli ] ++ lib.optionals enableGui [ ] ++ lib.optionals enableGui [ qtbase ]; nativeBuildInputs = [ nativeBuildInputs = [ cmake pkg-config python3 ] ++ lib.optionals enableGui [ ] ++ lib.optionals enableGui [ wrapQtAppsHook ]; Loading @@ -56,7 +60,8 @@ stdenv.mkDerivation rec { # `qapitrace`. dontWrapQtApps = true; postFixup = '' postFixup = '' # Since https://github.com/NixOS/nixpkgs/pull/60985, we add `/run-opengl-driver[-32]` # to the `RUNPATH` of dispatcher libraries `dlopen()` ing OpenGL drivers. Loading Loading @@ -90,7 +95,8 @@ stdenv.mkDerivation rec { patchelf --set-rpath "${lib.makeLibraryPath [ libglvnd ]}:$(patchelf --print-rpath $i)" $i done '' + lib.optionalString enableGui '' '' + lib.optionalString enableGui '' wrapQtApp $out/bin/qapitrace ''; Loading Loading
pkgs/applications/graphics/apitrace/default.nix +56 −50 Original line number Diff line number Diff line Loading @@ -30,21 +30,25 @@ stdenv.mkDerivation rec { # LD_PRELOAD wrappers need to be statically linked to work against all kinds # of games -- so it's fine to use e.g. bundled snappy. buildInputs = [ buildInputs = [ libX11 procps libdwarf gtest brotli ] ++ lib.optionals enableGui [ ] ++ lib.optionals enableGui [ qtbase ]; nativeBuildInputs = [ nativeBuildInputs = [ cmake pkg-config python3 ] ++ lib.optionals enableGui [ ] ++ lib.optionals enableGui [ wrapQtAppsHook ]; Loading @@ -56,7 +60,8 @@ stdenv.mkDerivation rec { # `qapitrace`. dontWrapQtApps = true; postFixup = '' postFixup = '' # Since https://github.com/NixOS/nixpkgs/pull/60985, we add `/run-opengl-driver[-32]` # to the `RUNPATH` of dispatcher libraries `dlopen()` ing OpenGL drivers. Loading Loading @@ -90,7 +95,8 @@ stdenv.mkDerivation rec { patchelf --set-rpath "${lib.makeLibraryPath [ libglvnd ]}:$(patchelf --print-rpath $i)" $i done '' + lib.optionalString enableGui '' '' + lib.optionalString enableGui '' wrapQtApp $out/bin/qapitrace ''; Loading