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