aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquapka2024-07-23 10:49:56 +0200
committerquapka2024-07-23 10:49:56 +0200
commit4bb7652c58962fe0e97c7941003f5468c0ba0673 (patch)
tree4f5b538574608b5827e8bb0fc0941b704956d9f8 /flake.nix
parent50c9d5b3b7c9bbf3273ba588c5ff9ce1dee2db1a (diff)
downloadECTester-4bb7652c58962fe0e97c7941003f5468c0ba0673.tar.gz
ECTester-4bb7652c58962fe0e97c7941003f5468c0ba0673.tar.zst
ECTester-4bb7652c58962fe0e97c7941003f5468c0ba0673.zip
Clean up old build instructions
Diffstat (limited to '')
-rw-r--r--flake.nix86
1 files changed, 0 insertions, 86 deletions
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 <libfile>', 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/";