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 | |
| 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')
| -rw-r--r-- | deps/libressl.nix | 13 | ||||
| -rw-r--r-- | deps/merklecpp.nix | 22 |
2 files changed, 35 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 + ''; +} diff --git a/deps/merklecpp.nix b/deps/merklecpp.nix new file mode 100644 index 0000000..459a957 --- /dev/null +++ b/deps/merklecpp.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: +pkgs.stdenv.mkDerivation rec { + name = "merklecpp"; + + src = pkgs.fetchFromGitHub { + owner = "microsoft"; + repo = "merklecpp"; + rev = "master"; + sha256 = "jJJ6FEn+AkMknqun0GkXh5DSXsJnFbdE7U8BQ7Dd/Fw="; + }; + + prePatch = '' + ''; + configurePhase = '' + ''; + buildPhase = '' + ''; + installPhase = '' + mkdir -p $out/include + mv merklecpp.h $out/include/merklecpp.h + ''; +} |
