aboutsummaryrefslogtreecommitdiffstats
path: root/deps/libressl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'deps/libressl.nix')
-rw-r--r--deps/libressl.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/libressl.nix b/deps/libressl.nix
new file mode 100644
index 0000000..a517dab
--- /dev/null
+++ b/deps/libressl.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+pkgs.stdenv.mkDerivation {
+ name = "libressl-lib";
+ src = ./.;
+ buildInputs = with pkgs; [ libressl.dev pkg-config ];
+ installPhase = ''
+ mkdir -p $out/lib
+ mkdir -p $out/include
+ libressl_path=$(${pkgs.pkg-config}/bin/pkg-config --libs ${pkgs.libressl.dev}/lib/pkgconfig/libssl.pc | awk '{sub(/^-L/, ""); sub(/ -lssl$/, ""); print}')
+ cp -r $libressl_path/* $out/lib
+ cp -r ${pkgs.libressl.dev}/include/* $out/include
+ '';
+}