From f251b602bf597ad42d061dd0501baae8634a830a Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 14:25:36 +0200 Subject: Add missing Nix derivation for Botan shim --- nix/botanshim.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nix/botanshim.nix 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/ + ''; +} -- cgit v1.3.1