aboutsummaryrefslogtreecommitdiff
path: root/nix/gcryptshim.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/gcryptshim.nix')
-rw-r--r--nix/gcryptshim.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nix/gcryptshim.nix b/nix/gcryptshim.nix
new file mode 100644
index 0000000..bfe027b
--- /dev/null
+++ b/nix/gcryptshim.nix
@@ -0,0 +1,25 @@
+{
+ pkgs
+ , libgcrypt
+ , libgpg-error
+}:
+with pkgs; stdenv.mkDerivation {
+ name = "Gcrypt Shim";
+ src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
+
+ buildInputs = [
+ libgcrypt
+ libgpg-error
+ pkg-config
+ jdk11_headless
+ ];
+
+ buildPhase = ''
+ make gcrypt
+ '';
+
+ installPhase = ''
+ mkdir --parents $out/lib
+ cp gcrypt_provider.so $out/lib/
+ '';
+}