diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2024-10-16 01:31:05 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2024-10-16 01:31:05 -0300 |
| commit | e339fa975e21c1b589a8dfc6ac083aba2b0a6394 (patch) | |
| tree | 556b4fd1873fd7ec900ccd736543b04a68b02572 /deps/libressl.nix | |
| parent | 0d01055df0b99bb696fb6a2e480513cebf8890a3 (diff) | |
| download | Sakura-e339fa975e21c1b589a8dfc6ac083aba2b0a6394.tar.gz Sakura-e339fa975e21c1b589a8dfc6ac083aba2b0a6394.zip | |
dune environment vars with flake and C++ interop with stubs
Diffstat (limited to 'deps/libressl.nix')
| -rw-r--r-- | deps/libressl.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/libressl.nix b/deps/libressl.nix new file mode 100644 index 0000000..ad33870 --- /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 + ''; +} |
