aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquapka2024-07-25 14:25:36 +0200
committerquapka2024-07-25 14:25:36 +0200
commitf251b602bf597ad42d061dd0501baae8634a830a (patch)
treeace9ab258c4b8355cca9137c6a5f4ea16ccfe528
parentb29f697ad640653c976f9f25c97358aa96a509a9 (diff)
downloadECTester-f251b602bf597ad42d061dd0501baae8634a830a.tar.gz
ECTester-f251b602bf597ad42d061dd0501baae8634a830a.tar.zst
ECTester-f251b602bf597ad42d061dd0501baae8634a830a.zip
-rw-r--r--nix/botanshim.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nix/botanshim.nix b/nix/botanshim.nix
new file mode 100644
index 0000000..f6de723
--- /dev/null
+++ b/nix/botanshim.nix
@@ -0,0 +1,22 @@
+{
+ pkgs
+}:
+with pkgs; stdenv.mkDerivation {
+ name = "BotanShim";
+ src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
+
+ buildInputs = [
+ botan2
+ pkg-config
+ jdk11_headless
+ ];
+
+ buildPhase = ''
+ make botan
+ '';
+
+ installPhase = ''
+ mkdir --parents $out/lib
+ cp botan_provider.so $out/lib/
+ '';
+}