diff options
Diffstat (limited to 'nix/tomcryptshim.nix')
| -rw-r--r-- | nix/tomcryptshim.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nix/tomcryptshim.nix b/nix/tomcryptshim.nix new file mode 100644 index 0000000..bcdc984 --- /dev/null +++ b/nix/tomcryptshim.nix @@ -0,0 +1,26 @@ +{ + 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 + ''; +} |
