diff options
| -rw-r--r-- | nix/botanshim.nix | 22 |
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/ + ''; +} |
