New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libamqpcpp: init at 2.7.4 #32073
libamqpcpp: init at 2.7.4 #32073
Conversation
{ stdenv, fetchurl }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "libamqpcpp-2.7.4"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use a 2 space indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
stdenv.mkDerivation rec { | ||
name = "libamqpcpp-2.7.4"; | ||
|
||
src = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchFromGitHub may be preferable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much more suitable - thank you!
It appears to download the same file, but calculates a different hash for it; is this expected?
@GrahamcOfBorg build libamqpcpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-darwin
make -C src all
make[1]: Entering directory '/private/tmp/nix-build-libamqpcpp-2.7.4.drv-0/AMQP-CPP-2.7.4/src'
g++ -Wall -c -I. -std=c++11 -MD -g -fpic -o deferredconsumer.o deferredconsumer.cpp
/nix/store/i6xy9nh39wwzs048hh6fabb2fbqphvya-bash-4.4-p12/bin/bash: g++: command not found
make[1]: *** [Makefile:52: deferredconsumer.o] Error 127
make[1]: Leaving directory '/private/tmp/nix-build-libamqpcpp-2.7.4.drv-0/AMQP-CPP-2.7.4/src'
make: *** [Makefile:9: all] Error 2
builder for '/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv' failed with exit code 2
error: build of '/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv' failed on ‘mac1’
error: build of ‘/nix/store/lr009h2fq2wz9i4b7ljg0flpq4x36jh6-libamqpcpp-2.7.4.drv’ failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success for system: x86_64-linux
ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7
ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so
ln -r -s -f /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.a.2.7.4 /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.a
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4
shrinking /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib/libamqpcpp.so.2.7.4
stripping (with flags -S) in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4/lib
patching script interpreter paths in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4
checking for references to /tmp/nix-build-libamqpcpp-2.7.4.drv-0 in /nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4...
/nix/store/77zi1nmbsdm6zqvgnafy7mzy5ranmd7v-libamqpcpp-2.7.4
f12cfe3
to
9e069f0
Compare
Should I try to fix the Darwin build failure? I've looked at the default.nix files for a few other C++ libraries, but none of them seem to include g++ as a dependency explicitly, as far as I can see. Being quite new to Nix I'm not entirely sure how to proceed. |
9e069f0
to
3aecf95
Compare
Fixed compatibility with Darwin, moved to the proper place in |
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)