Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380248
D3793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3793.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3793: Add amqp-cpp
Attached
Detach File
Event Timeline
Log In to Comment