aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquapka2024-07-25 14:31:20 +0200
committerquapka2024-07-25 14:31:20 +0200
commit943c182453bb22e7bd704dfe8ac9414286d06690 (patch)
treeb8bfd325ea929e131973f70a6d9dfa88c45fdbc2
parentf251b602bf597ad42d061dd0501baae8634a830a (diff)
downloadECTester-943c182453bb22e7bd704dfe8ac9414286d06690.tar.gz
ECTester-943c182453bb22e7bd704dfe8ac9414286d06690.tar.zst
ECTester-943c182453bb22e7bd704dfe8ac9414286d06690.zip
Add missing Nix derivation for TomCrypt shim
-rw-r--r--nix/tomcryptshim.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nix/tomcryptshim.nix b/nix/tomcryptshim.nix
new file mode 100644
index 0000000..64e22b4
--- /dev/null
+++ b/nix/tomcryptshim.nix
@@ -0,0 +1,25 @@
+{
+ pkgs
+ , libtomcrypt
+ , libtommath
+}:
+with pkgs; stdenv.mkDerivation {
+ name = "TomCryptShim";
+ src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
+
+ buildInputs = [
+ libtommath
+ libtomcrypt
+ pkg-config
+ jdk11_headless
+ ];
+
+ buildPhase = ''
+ make tomcrypt
+ '';
+
+ installPhase = ''
+ mkdir --parents $out/lib
+ cp tomcrypt_provider.so $out/lib
+ '';
+}