From 139eb11a6d471bb78aed90d6da827f66f727c429 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 11 Sep 2018 22:56:51 +0200 Subject: [PATCH 01/11] alock: mark linux only The darwin build fails and it's probably not particularly useful there. utils.c:33:19: error: use of undeclared identifier 'CLOCK_MONOTONIC' clock_gettime(CLOCK_MONOTONIC, &t); /cc ZHF #45961 --- pkgs/misc/screensavers/alock/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/misc/screensavers/alock/default.nix b/pkgs/misc/screensavers/alock/default.nix index 596668b0ce9..59d5a146e16 100644 --- a/pkgs/misc/screensavers/alock/default.nix +++ b/pkgs/misc/screensavers/alock/default.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { xscreensaver and never will. It's just for locking the current X session. ''; - platforms = platforms.unix; # Cygwin had problems at one point + platforms = platforms.linux; maintainers = with maintainers; [ ftrvxmtrx chris-martin ]; license = licenses.mit; }; From 80a4e48e4509a9545e582a4258d9948dca2454c5 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 20:07:49 +0200 Subject: [PATCH 02/11] asio: mark broken on darwin Started to fail since 1.12.1. Undefined symbols for architecture x86_64: "boost::chrono::steady_clock::now()", referenced from: pinger::start_send() in ping.o asio::detail::timer_queue > >::wait_duration_msec(long) const in ping.o asio::detail::timer_queue > >::wait_duration_usec(long) const in ping.o asio::detail::timer_queue > >::get_ready_timers(asio::detail::op_queue&) in ping.o pinger::handle_receive(unsigned long) in p /cc ZHF #45961 --- pkgs/development/libraries/asio/generic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/asio/generic.nix b/pkgs/development/libraries/asio/generic.nix index 58dd4f61423..72305cb633f 100644 --- a/pkgs/development/libraries/asio/generic.nix +++ b/pkgs/development/libraries/asio/generic.nix @@ -20,6 +20,7 @@ stdenv.mkDerivation { homepage = http://asio.sourceforge.net/; description = "Cross-platform C++ library for network and low-level I/O programming"; license = licenses.boost; + broken = stdenv.isDarwin; # test when updating to >=1.12.1 platforms = platforms.unix; }; } From f1542f612b1a85871676751e8fd4f1940a6ec514 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 20:49:10 +0200 Subject: [PATCH 03/11] atlas: mark broken on darwin Started to fail since 3.10.3. /private/tmp/nix-build-atlas-3.10.3.drv-0/ATLAS/build/bin/ATLrun.sh: line 4: 31119 Segmentation fault: 11 $atldir/$* make[3]: *** [Makefile:1695: ssanity_test] Error 139 /cc ZHF #45961 --- pkgs/development/libraries/science/math/atlas/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/science/math/atlas/default.nix b/pkgs/development/libraries/science/math/atlas/default.nix index 8b740bdb6f6..fb90ed754da 100644 --- a/pkgs/development/libraries/science/math/atlas/default.nix +++ b/pkgs/development/libraries/science/math/atlas/default.nix @@ -110,6 +110,7 @@ stdenv.mkDerivation { homepage = http://math-atlas.sourceforge.net/; description = "Automatically Tuned Linear Algebra Software (ATLAS)"; license = stdenv.lib.licenses.bsd3; + broken = stdenv.isDarwin; # test when updating to >=3.10.3 platforms = stdenv.lib.platforms.unix; longDescription = '' From cf9d1a6d3043c46c75c2eb60c4627cb77b595bcc Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 20:55:53 +0200 Subject: [PATCH 04/11] bitcoin-abc: mark broken on darwin Last successful build https://hydra.nixos.org/build/74552872. /cc ZHF #45961 --- pkgs/applications/altcoins/bitcoin-abc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/altcoins/bitcoin-abc.nix b/pkgs/applications/altcoins/bitcoin-abc.nix index bd365e16730..1e11f0eefc4 100644 --- a/pkgs/applications/altcoins/bitcoin-abc.nix +++ b/pkgs/applications/altcoins/bitcoin-abc.nix @@ -38,6 +38,7 @@ stdenv.mkDerivation rec { homepage = https://bitcoinabc.org/; maintainers = with maintainers; [ lassulus ]; license = licenses.mit; + broken = stdenv.isDarwin; platforms = platforms.unix; }; } From d990bae6ef6448aac894c58b601cd6824ba3f2ba Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 20:58:23 +0200 Subject: [PATCH 05/11] bitcoin-classic: mark broken on darwin Last successful build https://hydra.nixos.org/build/74552951. /cc ZHF #45961 --- pkgs/applications/altcoins/bitcoin-classic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/altcoins/bitcoin-classic.nix b/pkgs/applications/altcoins/bitcoin-classic.nix index 31c8ed6fc8d..34faf77e980 100644 --- a/pkgs/applications/altcoins/bitcoin-classic.nix +++ b/pkgs/applications/altcoins/bitcoin-classic.nix @@ -46,6 +46,7 @@ stdenv.mkDerivation rec { homepage = https://bitcoinclassic.com/; maintainers = with maintainers; [ jefdaj ]; license = licenses.mit; + broken = stdenv.isDarwin; platforms = platforms.unix; }; } From eaff0b74c035077c2b2b1e6e14be6f704247080c Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 21:01:03 +0200 Subject: [PATCH 06/11] bitcoin-unlimited: mark broken on darwin /cc ZHF #45961 --- pkgs/applications/altcoins/bitcoin-unlimited.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/altcoins/bitcoin-unlimited.nix b/pkgs/applications/altcoins/bitcoin-unlimited.nix index 5a67dc565aa..13ec55bb589 100644 --- a/pkgs/applications/altcoins/bitcoin-unlimited.nix +++ b/pkgs/applications/altcoins/bitcoin-unlimited.nix @@ -62,6 +62,7 @@ stdenv.mkDerivation rec { homepage = https://www.bitcoinunlimited.info/; maintainers = with maintainers; [ DmitryTsygankov ]; license = licenses.mit; + broken = stdenv.isDarwin; platforms = platforms.unix; }; } From 8f6ede967e00242a2944e88cfb24486814995798 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 21:02:24 +0200 Subject: [PATCH 07/11] bitcoin-xt: mark broken on darwin /cc ZHF #45961 --- pkgs/applications/altcoins/bitcoin-xt.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/altcoins/bitcoin-xt.nix b/pkgs/applications/altcoins/bitcoin-xt.nix index feb2924f865..cab1b388a12 100644 --- a/pkgs/applications/altcoins/bitcoin-xt.nix +++ b/pkgs/applications/altcoins/bitcoin-xt.nix @@ -43,6 +43,7 @@ stdenv.mkDerivation rec{ homepage = https://bitcoinxt.software/; maintainers = with maintainers; [ jefdaj ]; license = licenses.mit; + broken = stdenv.isDarwin; platforms = platforms.unix; }; } From e7ecf593e27e9505c51fba93c260e892c17cdf06 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 21:04:48 +0200 Subject: [PATCH 08/11] ethsign: mark broken on darwin Could be caused by our older 10.10.5 CoreFoundation. go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:51:216: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:162:47: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithCStringNoCopy go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:163:225: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal /cc ZHF #45961 --- pkgs/applications/altcoins/ethsign/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/altcoins/ethsign/default.nix b/pkgs/applications/altcoins/ethsign/default.nix index 35fd4bc718c..8e89de4d690 100644 --- a/pkgs/applications/altcoins/ethsign/default.nix +++ b/pkgs/applications/altcoins/ethsign/default.nix @@ -54,6 +54,7 @@ buildGoPackage rec { meta = with stdenv.lib; { homepage = https://github.com/dapphub/ethsign; description = "Make raw signed Ethereum transactions"; + broken = stdenv.isDarwin; # test with CoreFoundation 10.11 license = [licenses.gpl3]; }; } From 0dff3d5c736ba419d2b9d5c6612322f5a6fde650 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 21:50:33 +0200 Subject: [PATCH 09/11] litecoin: add missing framework and mark broken on darwin In file included from qt/bitcoin.cpp:9: ./qt/bitcoingui.h:14:10: fatal error: 'QLabel' file not found #include ^~~~~~~~ 1 error generated. /cc ZHF #45961 --- pkgs/applications/altcoins/default.nix | 6 ++++-- pkgs/applications/altcoins/litecoin.nix | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index 4236cd7910b..90cefed13aa 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -62,8 +62,10 @@ rec { buildGoPackage = buildGo110Package; }; - litecoin = callPackage ./litecoin.nix { withGui = true; }; - litecoind = callPackage ./litecoin.nix { withGui = false; }; + litecoin = callPackage ./litecoin.nix { + inherit (darwin.apple_sdk.frameworks) AppKit; + }; + litecoind = litecoin.override { withGui = false; }; masari = callPackage ./masari.nix { }; diff --git a/pkgs/applications/altcoins/litecoin.nix b/pkgs/applications/altcoins/litecoin.nix index b930923e8f4..ed268e34946 100644 --- a/pkgs/applications/altcoins/litecoin.nix +++ b/pkgs/applications/altcoins/litecoin.nix @@ -2,9 +2,12 @@ , pkgconfig, autoreconfHook , openssl, db48, boost, zlib, miniupnpc , glib, protobuf, utillinux, qt4, qrencode -, withGui, libevent }: +, AppKit +, withGui ? true, libevent +}: with stdenv.lib; + stdenv.mkDerivation rec { name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version; @@ -20,6 +23,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig autoreconfHook ]; buildInputs = [ openssl db48 boost zlib miniupnpc glib protobuf utillinux libevent ] + ++ optionals stdenv.isDarwin [ AppKit ] ++ optionals withGui [ qt4 qrencode ]; configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] @@ -39,6 +43,7 @@ stdenv.mkDerivation rec { homepage = https://litecoin.org/; platforms = platforms.unix; license = licenses.mit; - maintainers = with maintainers; [ offline AndersonTorres ]; + broken = stdenv.isDarwin; + maintainers = with maintainers; [ offline AndersonTorres ]; }; } From b8148813941f026af03b7e8a94e66a4bcfe83c64 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 21:56:52 +0200 Subject: [PATCH 10/11] aws-okta: mark broken on darwin Could be caused by our older 10.10.5 CoreFoundation. # github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:35:33: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFDataCreate go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:61: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:98:41: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithBytes go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:133: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal /cc ZHF #45961 --- pkgs/tools/security/aws-okta/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/aws-okta/default.nix b/pkgs/tools/security/aws-okta/default.nix index 7ec5b024de1..cdb35453d3d 100644 --- a/pkgs/tools/security/aws-okta/default.nix +++ b/pkgs/tools/security/aws-okta/default.nix @@ -1,4 +1,5 @@ { buildGoPackage, fetchFromGitHub, stdenv }: + buildGoPackage rec { name = "aws-okta-${version}"; version = "0.19.0"; @@ -19,6 +20,7 @@ buildGoPackage rec { description = "aws-vault like tool for Okta authentication"; license = licenses.mit; maintainers = [maintainers.imalsogreg]; + broken = stdenv.isDarwin; # test with CoreFoundation 10.11 platforms = platforms.all; homepage = https://github.com/segmentio/aws-okta; downloadPage = "https://github.com/segmentio/aws-okta"; From 9fc6f1123df05698644849d301e4b8c8aaf686b5 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 12 Sep 2018 22:39:38 +0200 Subject: [PATCH 11/11] asymptote: mark broken on darwin It only builds with gc-7.6.0 on darwin for some reason. /cc ZHF #45961 --- pkgs/tools/graphics/asymptote/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 1aa4fff8224..a0bf0a43447 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -1,5 +1,5 @@ {stdenv, fetchurl - , freeglut, ghostscriptX, imagemagick, fftw + , freeglut, ghostscriptX, imagemagick, fftw , boehmgc, libGLU, libGL, mesa_noglu, ncurses, readline, gsl, libsigsegv , python, zlib, perl, texLive, texinfo, xz , darwin @@ -35,7 +35,7 @@ stdenv.mkDerivation { preConfigure = '' export HOME="$PWD" - patchShebangs . + patchShebangs . sed -e 's@epswrite@eps2write@g' -i runlabel.in xz -d < ${texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex cp texinfo-*/doc/texinfo.tex doc/ @@ -63,6 +63,7 @@ stdenv.mkDerivation { description = "A tool for programming graphics intended to replace Metapost"; license = licenses.gpl3Plus; maintainers = [ maintainers.raskin maintainers.peti ]; + broken = stdenv.isDarwin; # https://github.com/vectorgraphics/asymptote/issues/69 platforms = platforms.linux ++ platforms.darwin; }; }