aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorquapka2024-07-26 11:22:35 +0200
committerquapka2024-07-26 11:22:35 +0200
commit11530dfa6766dfc26bef7dc9441c2af8bf1590a5 (patch)
treebfa1bbd775d88a90eecdb6a74addd8cc5b3e39d6 /nix
parent642d697d8e11974f21195cb4d3dbcc1ded6769bb (diff)
downloadECTester-11530dfa6766dfc26bef7dc9441c2af8bf1590a5.tar.gz
ECTester-11530dfa6766dfc26bef7dc9441c2af8bf1590a5.tar.zst
ECTester-11530dfa6766dfc26bef7dc9441c2af8bf1590a5.zip
Build Nettle shim through Nix
Diffstat (limited to 'nix')
-rw-r--r--nix/nettleshim.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nix/nettleshim.nix b/nix/nettleshim.nix
new file mode 100644
index 0000000..f00c4e4
--- /dev/null
+++ b/nix/nettleshim.nix
@@ -0,0 +1,23 @@
+{
+ pkgs
+ , nettle
+}:
+with pkgs; stdenv.mkDerivation rec {
+ name = "NettleShim";
+ src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
+
+ buildInputs = [
+ nettle
+ pkg-config
+ jdk11_headless
+ ];
+
+ buildPhase = ''
+ make nettle
+ '';
+
+ installPhase = ''
+ mkdir --parents $out/lib
+ cp nettle_provider.so $out/lib
+ '';
+}