From 4bb7652c58962fe0e97c7941003f5468c0ba0673 Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 23 Jul 2024 10:49:56 +0200 Subject: Clean up old build instructions --- flake.nix | 90 ++------------------------------------------------------------- 1 file changed, 2 insertions(+), 88 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 7a8256b..8485e17 100644 --- a/flake.nix +++ b/flake.nix @@ -312,94 +312,8 @@ ]; BORINGSSL_CFLAGS = "${patched_boringssl.dev.outPath}/include"; - # CFLAGS = with pkgs; [ - # patched_boringssl.dev - # ]; - - # NOTE: Mixing postVenvCreation aznd shellHook results in only shellHook being called - # shellHook = '' - # source ${venvDir}/bin/activate - # export PATH=$PATH:$HOME/projects/ts-spect-compiler/build/src/apps; - # export TS_REPO_ROOT=`pwd`; - # ''; - - # NIX_CFLAGS_COMPILE=""; - - buildBoringSSL = '' - mkdir --parents build - pushd build - cmake -GNinja -DBUILD_SHARED_LIBS=1 .. - ninja - popd - ''; - - buildLibreSSL = '' - ./autogen.sh - mkdir --parents build - pushd build - cmake -GNinja -DBUILD_SHARED_LIBS=1 .. - ninja - popd - ''; - - # TODO OpenJDK 64-Bit Server VM warning: You have loaded library - # /home/qup/.local/share/ECTesterStandalone/lib/lib_ippcp.so which - # might have disabled stack guard. The VM will try to fix the stack - # guard now. It's highly recommended that you fix the library with - # 'execstack -c ', or link it with '-z noexecstack'. - buildIppCrypto = '' - CC=clang CXX=clang++ cmake CMakeLists.txt -GNinja -Bbuild -DARCH=intel64 # Does not work with GCC 12+ - mkdir --parents build - pushd build - ninja - popd - ''; - - buildMbedTLS = '' - python -m venv virt - . virt/bin/activate - pip install -r scripts/basic.requirements.txt - cmake -GNinja -Bbuild -DUSE_SHARED_MBEDTLS_LIBRARY=On - cd build - ninja - ''; - - wolfCrypt-JNI = '' - mkdir junit - wget -P junit/ https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar - wget -P junit/ https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar - make -f makefile.linux - env JUNIT_HOME=junit/ ant build-jce-release - ''; - - # TODO add LD_LIB properly - # shellHook = '' - # export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$HOME/projects/ts-spect-compiler/build/src/cosim - # NIX_CFLAGS_COMPILE= - # ''; - - # pushd ext/wolfcrypt-jni - # ${wolfCrypt-JNI} - # popd - - # pushd ext/mbedtls - # ${buildMbedTLS} - # popd - # ''; - # git submodule update --init --recursive - - # pushd ext/boringssl - # ${buildBoringSSL} - # popd - - # pushd ext/ipp-crypto - # ${buildIppCrypto} - # popd - - # pushd ext/libressl - # ${buildLibreSSL} - # popd - # ''; + + IPP_CRYPTO_HEADER = "${customPkgs.ipp-crypto.dev}/include"; IPP_CRYPTO_LIB = "${customPkgs.ipp-crypto}/lib/"; -- cgit v1.2.3-70-g09d2