diff options
| author | quapka | 2024-07-25 15:23:51 +0200 |
|---|---|---|
| committer | quapka | 2024-07-25 15:23:51 +0200 |
| commit | 07bce9657c2975f11baaed7f920ccd7592c7efbd (patch) | |
| tree | 064b5f2a9573154e41ac50544da7da3bb3fdd7c8 /nix/gcryptshim.nix | |
| parent | 7600a40601b9ab9d417b240188316b1c0e299e8b (diff) | |
| download | ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.tar.gz ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.tar.zst ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.zip | |
Diffstat (limited to 'nix/gcryptshim.nix')
| -rw-r--r-- | nix/gcryptshim.nix | 25 |
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/ + ''; +} |
