Page MenuHomePhabricator

D3793.diff
No OneTemporary

D3793.diff

diff --git a/nix/amqp-cpp.nix b/nix/amqp-cpp.nix
new file mode 100644
--- /dev/null
+++ b/nix/amqp-cpp.nix
@@ -0,0 +1,35 @@
+{ stdenv
+, lib
+, cmake
+, fetchFromGitHub
+, openssl
+, darwin
+}:
+
+stdenv.mkDerivation rec {
+ pname = "amqp-cpp";
+ version = "4.3.16";
+
+ src = fetchFromGitHub {
+ owner = "CopernicaMarketingSoftware";
+ repo = "amqp-cpp";
+ rev = "v${version}";
+ sha256 = "sha256-aBLNdw9LhHFwnIt70vIYlX1/j2IUTmpm5Ub+ZImF8FI=";
+ };
+
+ nativeBuildInputs = [
+ cmake
+ ];
+
+ buildInputs = lib.optionals stdenv.isLinux [
+ # needed for linux's tcp extension
+ openssl
+ ];
+
+ cmakeFlags = lib.optionals (stdenv.isLinux || stdenv.isDarwin) [
+ "-DAMQP-CPP_BUILD_SHARED=ON"
+ ] ++ lib.optionals stdenv.isLinux [
+ "-DAMQP-CPP_LINUX_TCP=ON"
+ ];
+}
+
diff --git a/nix/overlay.nix b/nix/overlay.nix
--- a/nix/overlay.nix
+++ b/nix/overlay.nix
@@ -11,5 +11,7 @@
{
# add packages meant for just this repository
+ amqp-cpp = prev.callPackage ./amqp-cpp.nix { };
+
devShell = final.callPackage ./dev-shell.nix { };
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 10:27 PM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595029
Default Alt Text
D3793.diff (1 KB)

Event Timeline