From c706309a9ff4e38d3a7cc7182133f2d44d2a2f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 31 Jul 2023 08:19:02 +0200 Subject: [PATCH] plasma5Packages.accounts-qt: fixup a hack that broke https://hydra.nixos.org/build/229681745/nixlog/2/tail For context see commits 91e2f185c0 and f1d5f9766ee8. --- pkgs/development/libraries/accounts-qt/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/accounts-qt/default.nix b/pkgs/development/libraries/accounts-qt/default.nix index dcfe4a4ef27b..2b5baebf10dc 100644 --- a/pkgs/development/libraries/accounts-qt/default.nix +++ b/pkgs/development/libraries/accounts-qt/default.nix @@ -14,8 +14,10 @@ mkDerivation rec { propagatedBuildInputs = [ glib libaccounts-glib ]; nativeBuildInputs = [ doxygen pkg-config qmake ]; - # Hack to avoid TMPDIR in RPATHs. - preFixup = ''rm -rf "$(pwd)" ''; + # remove forbidden reference to $TMPDIR + preFixup = '' + patchelf --shrink-rpath --allowed-rpath-prefixes "/nix/store" "$out"/bin/* + ''; meta = with lib; { description = "Qt library for accessing the online accounts database";