fix tor dependency

This commit is contained in:
Bit Borealis 2023-07-27 12:42:52 +00:00
parent e0f6f3260f
commit 48459fc6a8
Signed by: theotheroracle
GPG key ID: 2D816A2DCA6E5649

View file

@ -3,7 +3,6 @@
, lib
, qtbase
, qtquickcontrols2
, qtdeclarative
, qtmultimedia
, qttools
, cmake
@ -27,27 +26,25 @@ stdenv.mkDerivation rec {
};
buildInputs = [
tor
fmt_9
openssl
qtquickcontrols2
qtmultimedia
protobuf
# qtdeclarative
qttools
qtbase
];
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
qtWrapperArgs = [ "--prefix PATH : ${tor}/bin" ];
cmakeFlags = [
"-S ../src"
# "-B ../build"
"-DCMAKE_BUILD_TYPE=MinSizeRel"
"-DRICOCHET_REFRESH_INSTALL_DESKTOP=ON"
"-DUSE_SUBMODULE_FMT=OFF"
# "-DFORCE_QT5=ON"
# "--debug-find-pkg=Qt6MultimediaQuick"
# "-DQT_DEBUG_FIND_PACKAGE=ON"
];
postUnpack = ''
@ -58,16 +55,6 @@ rm -d $TOR_DIR
mv $TOR_SRC $TOR_DIR
'';
preConfigure = ''
export CMAKE_GENERATOR="Unix Makefiles"
export FORCE_QT5=true
'';
# installPhase = ''
#echo pwd: $(pwd)
#echo out: $out
#'';
postInstall = ''
mv $out/usr/* $out
rm -d $out/usr