Commit a101d383 authored by György Kurucz's avatar György Kurucz
Browse files

apitrace: reformat using nixfmt

parent 76834c2b
Loading
Loading
Loading
Loading
+56 −50
Original line number Diff line number Diff line
@@ -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
    ];

@@ -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.
@@ -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
    '';