diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-03-05 23:42:15 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-03-05 23:42:15 -0300 |
| commit | 8c640a262969ef44cd8bc0e0abe95e2a54f4c3f5 (patch) | |
| tree | 84f9ddd9e41236fb7a6f540aab07e65db9bc93cb /deps/libressl.nix | |
| parent | 295c6a5a1f2b0db9d756ffe7bf413553a0c02737 (diff) | |
| download | Sakura-8c640a262969ef44cd8bc0e0abe95e2a54f4c3f5.tar.gz Sakura-8c640a262969ef44cd8bc0e0abe95e2a54f4c3f5.zip | |
ocaml re-migration
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..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 + ''; +} |
