nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge staging-next into staging

authored by

github-actions[bot] and committed by
GitHub
2282e994 55c4a726

+245 -586
+46 -5
pkgs/applications/editors/codeblocks/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, file, zip, wxGTK30-gtk3, gtk3 1 + { lib, stdenv, fetchurl, fetchpatch, pkg-config, file, zip, wxGTK31-gtk3, gtk3 2 2 , contribPlugins ? false, hunspell, gamin, boost, wrapGAppsHook 3 3 }: 4 4 ··· 15 15 }; 16 16 17 17 nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ]; 18 - buildInputs = [ wxGTK30-gtk3 gtk3 ] 18 + buildInputs = [ wxGTK31-gtk3 gtk3 ] 19 19 ++ optionals contribPlugins [ hunspell gamin boost ]; 20 20 enableParallelBuilding = true; 21 - patches = [ ./writable-projects.patch ]; 21 + patches = [ 22 + ./writable-projects.patch 23 + ./fix-clipboard-flush.patch 24 + # Fix build on non-x86 machines 25 + (fetchpatch { 26 + name = "remove-int3.patch"; 27 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/d76c015c456561d2c7987935a5f4dc6c0932b0c4.patch"; 28 + sha256 = "sha256-dpH33vGf2aNdYTeLwxglYDNbvwoY2bGSG6YFRyoGw+A="; 29 + }) 30 + (fetchpatch { 31 + name = "remove-pragmas.patch"; 32 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/966949d5ab7f3cb86e2a2c7ef4e853ee209b5a1a.patch"; 33 + sha256 = "sha256-XjejjGOvDk3gl1/n9R69XATGLj5n7tOZNyG8vIlwfyg="; 34 + }) 35 + # Fix build with GCC 11 36 + (fetchpatch { 37 + name = "use-gcc11-openfilelist.patch"; 38 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/a5ea6ff7ff301d739d3dc8145db1578f504ee4ca.patch"; 39 + sha256 = "sha256-kATaLej8kJf4xm0VicHfRetOepX8O9gOhwdna0qylvQ="; 40 + }) 41 + (fetchpatch { 42 + name = "use-gcc11-ccmanager.patch"; 43 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/04b7c50fb8c6a29b2d84579ee448d2498414d855.patch"; 44 + sha256 = "sha256-VPy/M6IvNBxUE4hZRbLExFm0DJf4gmertrqrvsXQNz4="; 45 + }) 46 + # Fix build with wxGTK 3.1.5 47 + (fetchpatch { 48 + name = "use-wxgtk315.patch"; 49 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/2345b020b862ec855038dd32a51ebb072647f28d.patch"; 50 + sha256 = "sha256-RRjwZA37RllnG8cJdBEnASpEd8z0+ru96fjntO42OvU="; 51 + }) 52 + (fetchpatch { 53 + name = "fix-getstring.patch"; 54 + url = "https://github.com/arnholm/codeblocks_sfmirror/commit/dbdf5c5ea9e3161233f0588a7616b7e4fedc7870.patch"; 55 + sha256 = "sha256-DrEMFluN8vs0LERa7ULGshl7HdejpsuvXAMjIr/K1fQ="; 56 + }) 57 + ]; 22 58 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 23 59 postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig"; 24 - configureFlags = [ "--enable-pch=no" ] 25 - ++ optionals contribPlugins [ "--with-contrib-plugins" "--with-boost-libdir=${boost}/lib" ]; 60 + configureFlags = [ "--enable-pch=no" ] ++ optionals contribPlugins [ 61 + ("--with-contrib-plugins" + optionalString stdenv.isDarwin "=all,-FileManager,-NassiShneiderman") 62 + "--with-boost-libdir=${boost}/lib" 63 + ]; 64 + postInstall = optionalString stdenv.isDarwin '' 65 + ln -s $out/lib/codeblocks/plugins $out/share/codeblocks/plugins 66 + ''; 26 67 27 68 meta = { 28 69 maintainers = [ maintainers.linquize ];
+24
pkgs/applications/editors/codeblocks/fix-clipboard-flush.patch
··· 1 + diff --git a/src/src/app.cpp b/src/src/app.cpp 2 + index 81130fd..f98d37b 100644 3 + --- a/src/src/app.cpp 4 + +++ b/src/src/app.cpp 5 + @@ -602,7 +602,8 @@ bool CodeBlocksApp::OnInit() 6 + m_BatchWindowAutoClose = true; 7 + m_pSingleInstance = nullptr; 8 + 9 + - wxTheClipboard->Flush(); 10 + + if (wxTheClipboard->IsOpened()) 11 + + wxTheClipboard->Flush(); 12 + 13 + wxCmdLineParser& parser = *Manager::GetCmdLineParser(); 14 + parser.SetDesc(cmdLineDesc); 15 + @@ -851,7 +852,8 @@ bool CodeBlocksApp::OnInit() 16 + 17 + int CodeBlocksApp::OnExit() 18 + { 19 + - wxTheClipboard->Flush(); 20 + + if (wxTheClipboard->IsOpened()) 21 + + wxTheClipboard->Flush(); 22 + 23 + if (g_DDEServer) delete g_DDEServer; 24 +
+1 -1
pkgs/applications/editors/gnome-inform7/default.nix
··· 22 22 pkg-config 23 23 docbook2x 24 24 docbook-xsl-nons 25 + wrapGAppsHook 25 26 ]; 26 27 buildInputs = [ 27 28 gtk3 28 29 gobject-introspection 29 30 vala gtk-doc 30 - wrapGAppsHook 31 31 ]; 32 32 }); 33 33
+1 -1
pkgs/applications/networking/instant-messengers/matrix-recorder/composition.nix
··· 2 2 3 3 {pkgs ? import <nixpkgs> { 4 4 inherit system; 5 - }, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}: 5 + }, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}: 6 6 7 7 let 8 8 nodeEnv = import ./node-env.nix {
+2 -2
pkgs/applications/networking/instant-messengers/matrix-recorder/default.nix
··· 6 6 postInstall = '' 7 7 mkdir "$out/bin" 8 8 echo '#!/bin/sh' >> "$out/bin/matrix-recorder" 9 - echo "'${pkgs.nodejs-12_x}/bin/node'" \ 9 + echo "'${pkgs.nodejs-14_x}/bin/node'" \ 10 10 "'$out/lib/node_modules/matrix-recorder/matrix-recorder.js'" \ 11 11 '"$@"' >> "$out/bin/matrix-recorder" 12 12 echo '#!/bin/sh' >> "$out/bin/matrix-recorder-to-html" 13 13 echo 'cd "$1"' >> "$out/bin/matrix-recorder-to-html" 14 14 echo "test -d templates/ || ln -sfT '$out/lib/node_modules/matrix-recorder/templates' templates" >> "$out/bin/matrix-recorder-to-html" 15 - echo "'${pkgs.nodejs-12_x}/bin/node'" \ 15 + echo "'${pkgs.nodejs-14_x}/bin/node'" \ 16 16 "'$out/lib/node_modules/matrix-recorder/recorder-to-html.js'" \ 17 17 '.' >> "$out/bin/matrix-recorder-to-html" 18 18 chmod a+x "$out/bin/matrix-recorder"
+5 -3
pkgs/applications/version-management/mercurial/default.nix
··· 21 21 22 22 self = python3Packages.buildPythonApplication rec { 23 23 pname = "mercurial${lib.optionalString fullBuild "-full"}"; 24 - version = "6.1.1"; 24 + version = "6.1.2"; 25 25 26 26 src = fetchurl { 27 27 url = "https://mercurial-scm.org/release/mercurial-${version}.tar.gz"; 28 - sha256 = "sha256-V7ikYdDOE9muOBfYqL35Ay407fqsPbzLO2a4NdzpM4g="; 28 + sha256 = "sha256-pSgQ/AFAmCjEl00Lwsu1yA6UjVtYTPsadpliPpJKLyo="; 29 29 }; 30 30 31 31 format = "other"; ··· 35 35 cargoDeps = if rustSupport then rustPlatform.fetchCargoTarball { 36 36 inherit src; 37 37 name = "mercurial-${version}"; 38 - sha256 = "sha256-HYH7+OD11kdZdxFrx1KVle1NesS3fAgwVXJpAeiXDTo="; 38 + sha256 = "sha256-OSaeOp+SjQ5n61jV8UthtQQqkneBYJhESoQDCwRSTco="; 39 39 sourceRoot = "mercurial-${version}/rust"; 40 40 } else null; 41 41 cargoRoot = if rustSupport then "rust" else null; ··· 151 151 EOF 152 152 153 153 export HGTEST_REAL_HG="${mercurial}/bin/hg" 154 + # include tests for native components 155 + export HGMODULEPOLICY="rust+c" 154 156 # extended timeout necessary for tests to pass on the busy CI workers 155 157 export HGTESTFLAGS="--blacklist blacklists/nix --timeout 1800 -j$NIX_BUILD_CORES ${flags}" 156 158 make check
+1 -1
pkgs/build-support/skaware/build-skaware-package.nix
··· 22 22 , postInstall 23 23 # : list Maintainer 24 24 , maintainers ? [ ] 25 - # : passtrhu arguments (e.g. tests) 25 + # : passthru arguments (e.g. tests) 26 26 , passthru ? { } 27 27 28 28 }:
+2 -2
pkgs/development/compilers/nim/default.nix
··· 98 98 99 99 nim-unwrapped = stdenv.mkDerivation rec { 100 100 pname = "nim-unwrapped"; 101 - version = "1.6.4"; 101 + version = "1.6.6"; 102 102 strictDeps = true; 103 103 104 104 src = fetchurl { 105 105 url = "https://nim-lang.org/download/nim-${version}.tar.xz"; 106 - hash = "sha256-f8MJKFW1wiAM2f7tEz0EYFgj8lDXO01KxQEwA3DgoMI="; 106 + hash = "sha256-Z7ERzm84YVA7n8wcrln8NNASJWbT7P7zoGSiF0EhpFI="; 107 107 }; 108 108 109 109 buildInputs = [ boehmgc openssl pcre readline sqlite ];
+9
pkgs/development/libraries/vtk/9.x.nix
··· 2 2 majorVersion = "9.0"; 3 3 minorVersion = "3"; 4 4 sourceSha256 = "vD65Ylsrjb/stgUqKrCR/JFAXeQzOw7GjzMjgVFU7Yo="; 5 + 6 + patchesToFetch = [ 7 + # Add missing header includes. 8 + # https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7611 9 + { 10 + url = "https://gitlab.kitware.com/vtk/vtk/-/commit/e066c3f4fbbfe7470c6207db0fc3f3952db633cb.patch"; 11 + sha256 = "ggmDisS3qoMquOqrmIYlCIT7TLxP/DUtW29ktjaEnlM="; 12 + } 13 + ]; 5 14 }
-498
pkgs/development/python-modules/aioamqp/compat-pamqp-3.patch
··· 1 - From 17b5be250cb5ecf95cf4f77c8c930450d876efa6 Mon Sep 17 00:00:00 2001 2 - From: dzen <benoit.calvez@polyconseil.fr> 3 - Date: Thu, 12 Mar 2020 08:32:29 +0100 4 - Subject: [PATCH 1/3] Moves to pamqp 3.0 5 - 6 - --- 7 - aioamqp/channel.py | 114 +++++++++++++++++++------------------- 8 - aioamqp/frame.py | 1 - 9 - aioamqp/protocol.py | 22 ++++---- 10 - aioamqp/tests/testcase.py | 2 +- 11 - 4 files changed, 69 insertions(+), 70 deletions(-) 12 - 13 - diff --git a/aioamqp/channel.py b/aioamqp/channel.py 14 - index 7f0f402..ea164c4 100644 15 - --- a/aioamqp/channel.py 16 - +++ b/aioamqp/channel.py 17 - @@ -9,7 +9,7 @@ 18 - from itertools import count 19 - import warnings 20 - 21 - -import pamqp.specification 22 - +import pamqp.commands 23 - 24 - from . import frame as amqp_frame 25 - from . import exceptions 26 - @@ -78,35 +78,35 @@ def connection_closed(self, server_code=None, server_reason=None, exception=None 27 - 28 - async def dispatch_frame(self, frame): 29 - methods = { 30 - - pamqp.specification.Channel.OpenOk.name: self.open_ok, 31 - - pamqp.specification.Channel.FlowOk.name: self.flow_ok, 32 - - pamqp.specification.Channel.CloseOk.name: self.close_ok, 33 - - pamqp.specification.Channel.Close.name: self.server_channel_close, 34 - - 35 - - pamqp.specification.Exchange.DeclareOk.name: self.exchange_declare_ok, 36 - - pamqp.specification.Exchange.BindOk.name: self.exchange_bind_ok, 37 - - pamqp.specification.Exchange.UnbindOk.name: self.exchange_unbind_ok, 38 - - pamqp.specification.Exchange.DeleteOk.name: self.exchange_delete_ok, 39 - - 40 - - pamqp.specification.Queue.DeclareOk.name: self.queue_declare_ok, 41 - - pamqp.specification.Queue.DeleteOk.name: self.queue_delete_ok, 42 - - pamqp.specification.Queue.BindOk.name: self.queue_bind_ok, 43 - - pamqp.specification.Queue.UnbindOk.name: self.queue_unbind_ok, 44 - - pamqp.specification.Queue.PurgeOk.name: self.queue_purge_ok, 45 - - 46 - - pamqp.specification.Basic.QosOk.name: self.basic_qos_ok, 47 - - pamqp.specification.Basic.ConsumeOk.name: self.basic_consume_ok, 48 - - pamqp.specification.Basic.CancelOk.name: self.basic_cancel_ok, 49 - - pamqp.specification.Basic.GetOk.name: self.basic_get_ok, 50 - - pamqp.specification.Basic.GetEmpty.name: self.basic_get_empty, 51 - - pamqp.specification.Basic.Deliver.name: self.basic_deliver, 52 - - pamqp.specification.Basic.Cancel.name: self.server_basic_cancel, 53 - - pamqp.specification.Basic.Ack.name: self.basic_server_ack, 54 - - pamqp.specification.Basic.Nack.name: self.basic_server_nack, 55 - - pamqp.specification.Basic.RecoverOk.name: self.basic_recover_ok, 56 - - pamqp.specification.Basic.Return.name: self.basic_return, 57 - - 58 - - pamqp.specification.Confirm.SelectOk.name: self.confirm_select_ok, 59 - + pamqp.commands.Channel.OpenOk.name: self.open_ok, 60 - + pamqp.commands.Channel.FlowOk.name: self.flow_ok, 61 - + pamqp.commands.Channel.CloseOk.name: self.close_ok, 62 - + pamqp.commands.Channel.Close.name: self.server_channel_close, 63 - + 64 - + pamqp.commands.Exchange.DeclareOk.name: self.exchange_declare_ok, 65 - + pamqp.commands.Exchange.BindOk.name: self.exchange_bind_ok, 66 - + pamqp.commands.Exchange.UnbindOk.name: self.exchange_unbind_ok, 67 - + pamqp.commands.Exchange.DeleteOk.name: self.exchange_delete_ok, 68 - + 69 - + pamqp.commands.Queue.DeclareOk.name: self.queue_declare_ok, 70 - + pamqp.commands.Queue.DeleteOk.name: self.queue_delete_ok, 71 - + pamqp.commands.Queue.BindOk.name: self.queue_bind_ok, 72 - + pamqp.commands.Queue.UnbindOk.name: self.queue_unbind_ok, 73 - + pamqp.commands.Queue.PurgeOk.name: self.queue_purge_ok, 74 - + 75 - + pamqp.commands.Basic.QosOk.name: self.basic_qos_ok, 76 - + pamqp.commands.Basic.ConsumeOk.name: self.basic_consume_ok, 77 - + pamqp.commands.Basic.CancelOk.name: self.basic_cancel_ok, 78 - + pamqp.commands.Basic.GetOk.name: self.basic_get_ok, 79 - + pamqp.commands.Basic.GetEmpty.name: self.basic_get_empty, 80 - + pamqp.commands.Basic.Deliver.name: self.basic_deliver, 81 - + pamqp.commands.Basic.Cancel.name: self.server_basic_cancel, 82 - + pamqp.commands.Basic.Ack.name: self.basic_server_ack, 83 - + pamqp.commands.Basic.Nack.name: self.basic_server_nack, 84 - + pamqp.commands.Basic.RecoverOk.name: self.basic_recover_ok, 85 - + pamqp.commands.Basic.Return.name: self.basic_return, 86 - + 87 - + pamqp.commands.Confirm.SelectOk.name: self.confirm_select_ok, 88 - } 89 - 90 - if frame.name not in methods: 91 - @@ -144,7 +144,7 @@ async def _write_frame_awaiting_response(self, waiter_id, channel_id, request, 92 - 93 - async def open(self): 94 - """Open the channel on the server.""" 95 - - request = pamqp.specification.Channel.Open() 96 - + request = pamqp.commands.Channel.Open() 97 - return (await self._write_frame_awaiting_response( 98 - 'open', self.channel_id, request, no_wait=False, check_open=False)) 99 - 100 - @@ -159,7 +159,7 @@ async def close(self, reply_code=0, reply_text="Normal Shutdown"): 101 - if not self.is_open: 102 - raise exceptions.ChannelClosed("channel already closed or closing") 103 - self.close_event.set() 104 - - request = pamqp.specification.Channel.Close(reply_code, reply_text, class_id=0, method_id=0) 105 - + request = pamqp.commands.Channel.Close(reply_code, reply_text, class_id=0, method_id=0) 106 - return (await self._write_frame_awaiting_response( 107 - 'close', self.channel_id, request, no_wait=False, check_open=False)) 108 - 109 - @@ -169,7 +169,7 @@ async def close_ok(self, frame): 110 - self.protocol.release_channel_id(self.channel_id) 111 - 112 - async def _send_channel_close_ok(self): 113 - - request = pamqp.specification.Channel.CloseOk() 114 - + request = pamqp.commands.Channel.CloseOk() 115 - await self._write_frame(self.channel_id, request) 116 - 117 - async def server_channel_close(self, frame): 118 - @@ -183,7 +183,7 @@ async def server_channel_close(self, frame): 119 - self.connection_closed(results['reply_code'], results['reply_text']) 120 - 121 - async def flow(self, active): 122 - - request = pamqp.specification.Channel.Flow(active) 123 - + request = pamqp.commands.Channel.Flow(active) 124 - return (await self._write_frame_awaiting_response( 125 - 'flow', self.channel_id, request, no_wait=False, 126 - check_open=False)) 127 - @@ -201,7 +201,7 @@ async def flow_ok(self, frame): 128 - 129 - async def exchange_declare(self, exchange_name, type_name, passive=False, durable=False, 130 - auto_delete=False, no_wait=False, arguments=None): 131 - - request = pamqp.specification.Exchange.Declare( 132 - + request = pamqp.commands.Exchange.Declare( 133 - exchange=exchange_name, 134 - exchange_type=type_name, 135 - passive=passive, 136 - @@ -222,7 +222,7 @@ async def exchange_declare_ok(self, frame): 137 - return future 138 - 139 - async def exchange_delete(self, exchange_name, if_unused=False, no_wait=False): 140 - - request = pamqp.specification.Exchange.Delete(exchange=exchange_name, if_unused=if_unused, nowait=no_wait) 141 - + request = pamqp.commands.Exchange.Delete(exchange=exchange_name, if_unused=if_unused, nowait=no_wait) 142 - return await self._write_frame_awaiting_response( 143 - 'exchange_delete', self.channel_id, request, no_wait) 144 - 145 - @@ -235,7 +235,7 @@ async def exchange_bind(self, exchange_destination, exchange_source, routing_key 146 - no_wait=False, arguments=None): 147 - if arguments is None: 148 - arguments = {} 149 - - request = pamqp.specification.Exchange.Bind( 150 - + request = pamqp.commands.Exchange.Bind( 151 - destination=exchange_destination, 152 - source=exchange_source, 153 - routing_key=routing_key, 154 - @@ -255,7 +255,7 @@ async def exchange_unbind(self, exchange_destination, exchange_source, routing_k 155 - if arguments is None: 156 - arguments = {} 157 - 158 - - request = pamqp.specification.Exchange.Unbind( 159 - + request = pamqp.commands.Exchange.Unbind( 160 - destination=exchange_destination, 161 - source=exchange_source, 162 - routing_key=routing_key, 163 - @@ -297,7 +297,7 @@ async def queue_declare(self, queue_name=None, passive=False, durable=False, 164 - 165 - if not queue_name: 166 - queue_name = 'aioamqp.gen-' + str(uuid.uuid4()) 167 - - request = pamqp.specification.Queue.Declare( 168 - + request = pamqp.commands.Queue.Declare( 169 - queue=queue_name, 170 - passive=passive, 171 - durable=durable, 172 - @@ -327,7 +327,7 @@ async def queue_delete(self, queue_name, if_unused=False, if_empty=False, no_wai 173 - if_empty: bool, the queue is deleted if it has no messages. Raise if not. 174 - no_wait: bool, if set, the server will not respond to the method 175 - """ 176 - - request = pamqp.specification.Queue.Delete( 177 - + request = pamqp.commands.Queue.Delete( 178 - queue=queue_name, 179 - if_unused=if_unused, 180 - if_empty=if_empty, 181 - @@ -346,7 +346,7 @@ async def queue_bind(self, queue_name, exchange_name, routing_key, no_wait=False 182 - if arguments is None: 183 - arguments = {} 184 - 185 - - request = pamqp.specification.Queue.Bind( 186 - + request = pamqp.commands.Queue.Bind( 187 - queue=queue_name, 188 - exchange=exchange_name, 189 - routing_key=routing_key, 190 - @@ -367,7 +367,7 @@ async def queue_unbind(self, queue_name, exchange_name, routing_key, arguments=N 191 - if arguments is None: 192 - arguments = {} 193 - 194 - - request = pamqp.specification.Queue.Unbind( 195 - + request = pamqp.commands.Queue.Unbind( 196 - queue=queue_name, 197 - exchange=exchange_name, 198 - routing_key=routing_key, 199 - @@ -383,7 +383,7 @@ async def queue_unbind_ok(self, frame): 200 - logger.debug("Queue unbound") 201 - 202 - async def queue_purge(self, queue_name, no_wait=False): 203 - - request = pamqp.specification.Queue.Purge( 204 - + request = pamqp.commands.Queue.Purge( 205 - queue=queue_name, nowait=no_wait 206 - ) 207 - return (await self._write_frame_awaiting_response( 208 - @@ -406,7 +406,7 @@ async def basic_publish(self, payload, exchange_name, routing_key, 209 - if properties is None: 210 - properties = {} 211 - 212 - - method_request = pamqp.specification.Basic.Publish( 213 - + method_request = pamqp.commands.Basic.Publish( 214 - exchange=exchange_name, 215 - routing_key=routing_key, 216 - mandatory=mandatory, 217 - @@ -417,7 +417,7 @@ async def basic_publish(self, payload, exchange_name, routing_key, 218 - 219 - header_request = pamqp.header.ContentHeader( 220 - body_size=len(payload), 221 - - properties=pamqp.specification.Basic.Properties(**properties) 222 - + properties=pamqp.commands.Basic.Properties(**properties) 223 - ) 224 - await self._write_frame(self.channel_id, header_request, drain=False) 225 - 226 - @@ -446,7 +446,7 @@ async def basic_qos(self, prefetch_size=0, prefetch_count=0, connection_global=F 227 - settings should apply per-consumer channel; and global=true to mean 228 - that the QoS settings should apply per-channel. 229 - """ 230 - - request = pamqp.specification.Basic.Qos( 231 - + request = pamqp.commands.Basic.Qos( 232 - prefetch_size, prefetch_count, connection_global 233 - ) 234 - return (await self._write_frame_awaiting_response( 235 - @@ -490,7 +490,7 @@ async def basic_consume(self, callback, queue_name='', consumer_tag='', no_local 236 - if arguments is None: 237 - arguments = {} 238 - 239 - - request = pamqp.specification.Basic.Consume( 240 - + request = pamqp.commands.Basic.Consume( 241 - queue=queue_name, 242 - consumer_tag=consumer_tag, 243 - no_local=no_local, 244 - @@ -561,7 +561,7 @@ async def server_basic_cancel(self, frame): 245 - callback, error) 246 - 247 - async def basic_cancel(self, consumer_tag, no_wait=False): 248 - - request = pamqp.specification.Basic.Cancel(consumer_tag, no_wait) 249 - + request = pamqp.commands.Basic.Cancel(consumer_tag, no_wait) 250 - return (await self._write_frame_awaiting_response( 251 - 'basic_cancel', self.channel_id, request, no_wait=no_wait) 252 - ) 253 - @@ -575,7 +575,7 @@ async def basic_cancel_ok(self, frame): 254 - logger.debug("Cancel ok") 255 - 256 - async def basic_get(self, queue_name='', no_ack=False): 257 - - request = pamqp.specification.Basic.Get(queue=queue_name, no_ack=no_ack) 258 - + request = pamqp.commands.Basic.Get(queue=queue_name, no_ack=no_ack) 259 - return (await self._write_frame_awaiting_response( 260 - 'basic_get', self.channel_id, request, no_wait=False) 261 - ) 262 - @@ -606,11 +606,11 @@ async def basic_get_empty(self, frame): 263 - future.set_exception(exceptions.EmptyQueue) 264 - 265 - async def basic_client_ack(self, delivery_tag, multiple=False): 266 - - request = pamqp.specification.Basic.Ack(delivery_tag, multiple) 267 - + request = pamqp.commands.Basic.Ack(delivery_tag, multiple) 268 - await self._write_frame(self.channel_id, request) 269 - 270 - async def basic_client_nack(self, delivery_tag, multiple=False, requeue=True): 271 - - request = pamqp.specification.Basic.Nack(delivery_tag, multiple, requeue) 272 - + request = pamqp.commands.Basic.Nack(delivery_tag, multiple, requeue) 273 - await self._write_frame(self.channel_id, request) 274 - 275 - async def basic_server_ack(self, frame): 276 - @@ -620,15 +620,15 @@ async def basic_server_ack(self, frame): 277 - fut.set_result(True) 278 - 279 - async def basic_reject(self, delivery_tag, requeue=False): 280 - - request = pamqp.specification.Basic.Reject(delivery_tag, requeue) 281 - + request = pamqp.commands.Basic.Reject(delivery_tag, requeue) 282 - await self._write_frame(self.channel_id, request) 283 - 284 - async def basic_recover_async(self, requeue=True): 285 - - request = pamqp.specification.Basic.RecoverAsync(requeue) 286 - + request = pamqp.commands.Basic.RecoverAsync(requeue) 287 - await self._write_frame(self.channel_id, request) 288 - 289 - async def basic_recover(self, requeue=True): 290 - - request = pamqp.specification.Basic.Recover(requeue) 291 - + request = pamqp.commands.Basic.Recover(requeue) 292 - return (await self._write_frame_awaiting_response( 293 - 'basic_recover', self.channel_id, request, no_wait=False) 294 - ) 295 - @@ -681,7 +681,7 @@ async def publish(self, payload, exchange_name, routing_key, properties=None, ma 296 - delivery_tag = next(self.delivery_tag_iter) # pylint: disable=stop-iteration-return 297 - fut = self._set_waiter('basic_server_ack_{}'.format(delivery_tag)) 298 - 299 - - method_request = pamqp.specification.Basic.Publish( 300 - + method_request = pamqp.commands.Basic.Publish( 301 - exchange=exchange_name, 302 - routing_key=routing_key, 303 - mandatory=mandatory, 304 - @@ -689,7 +689,7 @@ async def publish(self, payload, exchange_name, routing_key, properties=None, ma 305 - ) 306 - await self._write_frame(self.channel_id, method_request, drain=False) 307 - 308 - - properties = pamqp.specification.Basic.Properties(**properties) 309 - + properties = pamqp.commands.Basic.Properties(**properties) 310 - header_request = pamqp.header.ContentHeader( 311 - body_size=len(payload), properties=properties 312 - ) 313 - @@ -710,7 +710,7 @@ async def publish(self, payload, exchange_name, routing_key, properties=None, ma 314 - async def confirm_select(self, *, no_wait=False): 315 - if self.publisher_confirms: 316 - raise ValueError('publisher confirms already enabled') 317 - - request = pamqp.specification.Confirm.Select(nowait=no_wait) 318 - + request = pamqp.commands.Confirm.Select(nowait=no_wait) 319 - 320 - return (await self._write_frame_awaiting_response( 321 - 'confirm_select', self.channel_id, request, no_wait) 322 - diff --git a/aioamqp/frame.py b/aioamqp/frame.py 323 - index d70cfd7..af27ab5 100644 324 - --- a/aioamqp/frame.py 325 - +++ b/aioamqp/frame.py 326 - @@ -42,7 +42,6 @@ 327 - import socket 328 - 329 - import pamqp.encode 330 - -import pamqp.specification 331 - import pamqp.frame 332 - 333 - from . import exceptions 334 - diff --git a/aioamqp/protocol.py b/aioamqp/protocol.py 335 - index e111dea..f0b928d 100644 336 - --- a/aioamqp/protocol.py 337 - +++ b/aioamqp/protocol.py 338 - @@ -5,9 +5,9 @@ 339 - import asyncio 340 - import logging 341 - 342 - +import pamqp.commands 343 - import pamqp.frame 344 - import pamqp.heartbeat 345 - -import pamqp.specification 346 - 347 - from . import channel as amqp_channel 348 - from . import constants as amqp_constants 349 - @@ -159,7 +159,7 @@ async def close(self, no_wait=False, timeout=None): 350 - """Close connection (and all channels)""" 351 - await self.ensure_open() 352 - self.state = CLOSING 353 - - request = pamqp.specification.Connection.Close( 354 - + request = pamqp.commands.Connection.Close( 355 - reply_code=0, 356 - reply_text='', 357 - class_id=0, 358 - @@ -254,11 +254,11 @@ async def dispatch_frame(self, frame_channel=None, frame=None): 359 - """Dispatch the received frame to the corresponding handler""" 360 - 361 - method_dispatch = { 362 - - pamqp.specification.Connection.Close.name: self.server_close, 363 - - pamqp.specification.Connection.CloseOk.name: self.close_ok, 364 - - pamqp.specification.Connection.Tune.name: self.tune, 365 - - pamqp.specification.Connection.Start.name: self.start, 366 - - pamqp.specification.Connection.OpenOk.name: self.open_ok, 367 - + pamqp.commands.Connection.Close.name: self.server_close, 368 - + pamqp.commands.Connection.CloseOk.name: self.close_ok, 369 - + pamqp.commands.Connection.Tune.name: self.tune, 370 - + pamqp.commands.Connection.Start.name: self.start, 371 - + pamqp.commands.Connection.OpenOk.name: self.open_ok, 372 - } 373 - if frame_channel is None and frame is None: 374 - frame_channel, frame = await self.get_frame() 375 - @@ -395,7 +395,7 @@ async def start_ok(self, client_properties, mechanism, auth, locale): 376 - def credentials(): 377 - return '\0{LOGIN}\0{PASSWORD}'.format(**auth) 378 - 379 - - request = pamqp.specification.Connection.StartOk( 380 - + request = pamqp.commands.Connection.StartOk( 381 - client_properties=client_properties, 382 - mechanism=mechanism, 383 - locale=locale, 384 - @@ -417,7 +417,7 @@ async def server_close(self, frame): 385 - self._stream_writer.close() 386 - 387 - async def _close_ok(self): 388 - - request = pamqp.specification.Connection.CloseOk() 389 - + request = pamqp.commands.Connection.CloseOk() 390 - await self._write_frame(0, request) 391 - 392 - async def tune(self, frame): 393 - @@ -426,7 +426,7 @@ async def tune(self, frame): 394 - self.server_heartbeat = frame.heartbeat 395 - 396 - async def tune_ok(self, channel_max, frame_max, heartbeat): 397 - - request = pamqp.specification.Connection.TuneOk( 398 - + request = pamqp.commands.Connection.TuneOk( 399 - channel_max, frame_max, heartbeat 400 - ) 401 - await self._write_frame(0, request) 402 - @@ -436,7 +436,7 @@ async def secure_ok(self, login_response): 403 - 404 - async def open(self, virtual_host, capabilities='', insist=False): 405 - """Open connection to virtual host.""" 406 - - request = pamqp.specification.Connection.Open( 407 - + request = pamqp.commands.Connection.Open( 408 - virtual_host, capabilities, insist 409 - ) 410 - await self._write_frame(0, request) 411 - diff --git a/aioamqp/tests/testcase.py b/aioamqp/tests/testcase.py 412 - index 120104b..d6d702b 100644 413 - --- a/aioamqp/tests/testcase.py 414 - +++ b/aioamqp/tests/testcase.py 415 - @@ -147,7 +147,7 @@ def server_version(self, amqp=None): 416 - if amqp is None: 417 - amqp = self.amqp 418 - 419 - - server_version = tuple(int(x) for x in amqp.server_properties['version'].decode().split('.')) 420 - + server_version = tuple(int(x) for x in amqp.server_properties['version'].split('.')) 421 - return server_version 422 - 423 - async def check_exchange_exists(self, exchange_name): 424 - 425 - From c900f6d5e8ef273000d221d0e46ab81ed4aed2a2 Mon Sep 17 00:00:00 2001 426 - From: dzen <benoit.calvez@polyconseil.fr> 427 - Date: Wed, 25 Mar 2020 11:02:04 +0100 428 - Subject: [PATCH 2/3] fix pamqp version for tests on travis 429 - 430 - --- 431 - setup.py | 2 +- 432 - 1 file changed, 1 insertion(+), 1 deletion(-) 433 - 434 - diff --git a/setup.py b/setup.py 435 - index a740243..2277b28 100644 436 - --- a/setup.py 437 - +++ b/setup.py 438 - @@ -25,7 +25,7 @@ 439 - 'aioamqp', 440 - ], 441 - install_requires=[ 442 - - 'pamqp>=2.2.0,<3', 443 - + 'pamqp>=3.0.0', # TODO(bcalvez): for tests purpose, until 3.0 is released 444 - ], 445 - classifiers=[ 446 - "Development Status :: 4 - Beta", 447 - 448 - From 836340e8d881a93b0111b9aed6f2bb2926f38de6 Mon Sep 17 00:00:00 2001 449 - From: dzen <benoit.calvez@polyconseil.fr> 450 - Date: Wed, 25 Mar 2020 11:37:45 +0100 451 - Subject: [PATCH 3/3] pamqp 3.0 is no more compatible with 3.5 452 - 453 - --- 454 - .travis.yml | 1 - 455 - setup.cfg | 2 +- 456 - setup.py | 2 +- 457 - 3 files changed, 2 insertions(+), 3 deletions(-) 458 - 459 - diff --git a/.travis.yml b/.travis.yml 460 - index 1069e7c..46d6fea 100644 461 - --- a/.travis.yml 462 - +++ b/.travis.yml 463 - @@ -1,7 +1,6 @@ 464 - language: python 465 - dist: bionic 466 - python: 467 - -- 3.5 468 - - 3.6 469 - - 3.7-dev 470 - - 3.8 471 - diff --git a/setup.cfg b/setup.cfg 472 - index 0ab7d0b..d0ba16e 100644 473 - --- a/setup.cfg 474 - +++ b/setup.cfg 475 - @@ -1,2 +1,2 @@ 476 - [bdist_wheel] 477 - -python-tag = py35.py36.py37.py38 478 - +python-tag = py36.py37.py38 479 - diff --git a/setup.py b/setup.py 480 - index 2277b28..c413078 100644 481 - --- a/setup.py 482 - +++ b/setup.py 483 - @@ -27,6 +27,7 @@ 484 - install_requires=[ 485 - 'pamqp==3.0.0a6', # TODO(bcalvez): for tests purpose, until 3.0 is released 486 - ], 487 - + python_requires=">=3.6", 488 - classifiers=[ 489 - "Development Status :: 4 - Beta", 490 - "Intended Audience :: Developers", 491 - @@ -34,7 +35,6 @@ 492 - "Operating System :: OS Independent", 493 - "Programming Language :: Python", 494 - "Programming Language :: Python :: 3", 495 - - "Programming Language :: Python :: 3.5", 496 - "Programming Language :: Python :: 3.6", 497 - "Programming Language :: Python :: 3.7", 498 - "Programming Language :: Python :: 3.8",
+13 -18
pkgs/development/python-modules/aioamqp/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , pamqp 5 - , pytest 6 - , asynctest 7 - , pyrabbit2 8 - , isPy27 5 + , pythonOlder 9 6 }: 10 7 11 8 buildPythonPackage rec { 12 9 pname = "aioamqp"; 13 - version = "0.14.0"; 14 - disabled = isPy27; 10 + version = "0.15.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 15 14 16 15 src = fetchFromGitHub { 17 16 owner = "Polyconseil"; 18 17 repo = pname; 19 18 rev = "${pname}-${version}"; 20 - sha256 = "1gpfsrc2vi6w33c9zsycd2qn589pr7a222rb41r85m915283zy48"; 19 + hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk="; 21 20 }; 22 - 23 - patches = [ ./compat-pamqp-3.patch ]; 24 21 25 22 propagatedBuildInputs = [ 26 23 pamqp 27 24 ]; 28 25 29 - checkInputs = [ 30 - pytest 31 - asynctest 32 - pyrabbit2 33 - ]; 34 - 35 - # tests assume rabbitmq server running 26 + # Tests assume rabbitmq server running 36 27 doCheck = false; 37 28 29 + pythonImportsCheck = [ 30 + "aioamqp" 31 + ]; 32 + 38 33 meta = with lib; { 39 - homepage = "https://github.com/polyconseil/aioamqp"; 40 34 description = "AMQP implementation using asyncio"; 35 + homepage = "https://github.com/polyconseil/aioamqp"; 41 36 license = licenses.bsd3; 42 - maintainers = [ maintainers.costrouc ]; 37 + maintainers = with maintainers; [ costrouc ]; 43 38 }; 44 39 }
+17 -18
pkgs/development/python-modules/ecos/default.nix
··· 1 1 { lib 2 - , pythonOlder 3 2 , buildPythonPackage 4 3 , fetchFromGitHub 5 - , pkgs 6 - , numpy 7 - , scipy 8 - # check inputs 9 4 , nose 5 + , numpy 6 + , pythonOlder 7 + , scipy 10 8 }: 11 9 12 10 buildPythonPackage rec { 13 11 pname = "ecos"; 14 - version = "2.0.8"; 12 + version = "2.0.10"; 13 + format = "setuptools"; 15 14 16 15 disabled = pythonOlder "3.6"; 17 16 18 17 src = fetchFromGitHub { 19 18 owner = "embotech"; 20 19 repo = "ecos-python"; 21 - rev = version; 22 - sha256 = "sha256-2OJqbcOZceeD2fO5cu9fohuUVaA2LwQOQSWR4jRv3mk="; 20 + rev = "v${version}"; 21 + sha256 = "sha256-TPxrTyVZ1KXgPoDbZZqXT5+NEIEndg9qepujqFQwK+Q="; 23 22 fetchSubmodules = true; 24 23 }; 25 - 26 - prePatch = '' 27 - echo '__version__ = "${version}"' >> ./src/ecos/version.py 28 - ''; 29 24 30 25 propagatedBuildInputs = [ 31 26 numpy 32 27 scipy 33 28 ]; 34 29 35 - checkInputs = [ nose ]; 30 + checkInputs = [ 31 + nose 32 + ]; 33 + 36 34 checkPhase = '' 37 - # Run tests 38 35 cd ./src 39 36 nosetests test_interface.py test_interface_bb.py 40 37 ''; 41 - pythonImportsCheck = [ "ecos" ]; 38 + 39 + pythonImportsCheck = [ 40 + "ecos" 41 + ]; 42 42 43 43 meta = with lib; { 44 44 description = "Python package for ECOS: Embedded Cone Solver"; 45 - downloadPage = "https://github.com/embotech/ecos-python/releases"; 46 - homepage = pkgs.ecos.meta.homepage; 47 - license = licenses.asl20; 45 + homepage = "https://github.com/embotech/ecos-python"; 46 + license = licenses.gpl3Only; 48 47 maintainers = with maintainers; [ drewrisinger ]; 49 48 }; 50 49 }
+3 -3
pkgs/development/python-modules/elkm1-lib/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "elkm1-lib"; 14 - version = "1.3.6"; 14 + version = "2.0.0"; 15 15 format = "pyproject"; 16 16 17 - disabled = pythonOlder "3.6"; 17 + disabled = pythonOlder "3.9"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "gwww"; 21 21 repo = "elkm1"; 22 22 rev = version; 23 - hash = "sha256-aIqwb2YHw/kYHBqydelTRs2+75WimgJ+4X0BYcwogh8="; 23 + hash = "sha256-o0RQgAP38W7paVJonrfj54y2OhMmTihT9xiipEyNVaM="; 24 24 }; 25 25 26 26 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/http-sfv/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "http-sfv"; 10 - version = "0.9.5"; 10 + version = "0.9.6"; 11 11 format = "pyproject"; 12 12 13 13 disabled = pythonOlder "3.7"; ··· 16 16 owner = "mnot"; 17 17 repo = "http_sfv"; 18 18 rev = "http_sfv-${version}"; 19 - hash = "sha256-hzg5vRX0vNKS/hYLF6n8mLK5qiwP7do4M8YMlBAA66I="; 19 + hash = "sha256-S+cbcDx+cXwN2TpfiUpr6xK1GFRxSYgfHdUavfzeyAE="; 20 20 }; 21 21 22 22 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/meilisearch/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "meilisearch"; 10 - version = "0.18.2"; 10 + version = "0.18.3"; 11 11 format = "setuptools"; 12 12 13 13 disabled = pythonOlder "3.7"; ··· 16 16 owner = "meilisearch"; 17 17 repo = "meilisearch-python"; 18 18 rev = "v${version}"; 19 - hash = "sha256-U9fdMcxPdtLiUStgTez99SPRh93WLZNVn8uIj4lNWh4="; 19 + hash = "sha256-Ym3AbIEf8eMSrtP8W1dPXqL0mTVN2bd8hlxdFhW/dkQ="; 20 20 }; 21 21 22 22 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/nettigo-air-monitor/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "nettigo-air-monitor"; 15 - version = "1.2.3"; 15 + version = "1.2.4"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.8"; ··· 21 21 owner = "bieniu"; 22 22 repo = pname; 23 23 rev = version; 24 - sha256 = "sha256-aCDw3JwX8LVrJp3jYvuYQ3ycRHjSnWU0n1LdTjV08VA="; 24 + sha256 = "sha256-zmmJ3F2Fl4u7vOx1h5Z0LtWL0/5xmZiFRY2NU8Tc0MY="; 25 25 }; 26 26 27 27 propagatedBuildInputs = [
+6
pkgs/development/python-modules/prox-tv/default.nix
··· 6 6 , fetchFromGitHub 7 7 , nose 8 8 , numpy 9 + , stdenv 9 10 }: 10 11 11 12 buildPythonPackage { ··· 28 27 numpy 29 28 cffi 30 29 ]; 30 + 31 + # this test is known to fail on darwin 32 + checkPhase = '' 33 + nosetests ${lib.optionalString stdenv.isDarwin " --exclude=test_tv2_1d"} 34 + ''; 31 35 32 36 propagatedNativeBuildInputs = [ cffi ]; 33 37
+27 -1
pkgs/development/python-modules/pydeck/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, ipykernel, ipywidgets, pythonOlder, pytestCheckHook, pandas }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , fetchpatch 5 + , ipykernel 6 + , ipywidgets 7 + , pythonOlder 8 + , pytestCheckHook 9 + , pandas 10 + , jinja2 11 + , numpy 12 + , traitlets 13 + }: 2 14 3 15 buildPythonPackage rec { 4 16 pname = "pydeck"; 5 17 version = "0.7.1"; 18 + format = "pyproject"; 6 19 7 20 disabled = pythonOlder "3.7"; 21 + 22 + patches = [ 23 + # fixes build with latest setuptools 24 + (fetchpatch { 25 + url = "https://github.com/visgl/deck.gl/commit/9e68f73b28aa3bf0f2a887a4d8ccd2dc35677039.patch"; 26 + sha256 = "sha256-YVVoVbVdY5nV+17OwYIs9AwKGyzgKZHi655f4BLcdMU="; 27 + stripLen = 2; 28 + }) 29 + ]; 8 30 9 31 src = fetchPypi { 10 32 inherit pname version; ··· 36 14 pythonImportsCheck = [ "pydeck" ]; 37 15 38 16 checkInputs = [ pytestCheckHook pandas ]; 17 + 39 18 # tries to start a jupyter server 40 19 disabledTests = [ "test_nbconvert" ]; 41 20 42 21 propagatedBuildInputs = [ 43 22 ipykernel 44 23 ipywidgets 24 + jinja2 25 + numpy 26 + traitlets 45 27 ]; 46 28 47 29 meta = with lib; {
+2 -2
pkgs/development/python-modules/scmrepo/default.nix
··· 14 14 15 15 buildPythonPackage rec { 16 16 pname = "scmrepo"; 17 - version = "0.0.20"; 17 + version = "0.0.22"; 18 18 format = "pyproject"; 19 19 20 20 disabled = pythonOlder "3.7"; ··· 23 23 owner = "iterative"; 24 24 repo = pname; 25 25 rev = "refs/tags/${version}"; 26 - hash = "sha256-3gNHWncP9laevuX3EcnmNJ825eQehoLp75WJ5V5/R9w="; 26 + hash = "sha256-hV0BusvuJUEGfmue7OHR3YYmpBcFTgbQE7UuHmTUBo0="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+15 -3
pkgs/development/tools/knightos/scas/default.nix
··· 1 - { fetchFromGitHub, lib, stdenv, cmake }: 1 + { fetchFromGitHub, lib, stdenv, cmake, buildPackages, asciidoc, libxslt }: 2 + 3 + let 4 + isCrossCompiling = stdenv.hostPlatform != stdenv.buildPlatform; 5 + in 2 6 3 7 stdenv.mkDerivation rec { 4 8 pname = "scas"; ··· 16 12 }; 17 13 18 14 cmakeFlags = [ "-DSCAS_LIBRARY=1" ]; 19 - 15 + postPatch = '' 16 + substituteInPlace CMakeLists.txt \ 17 + --replace "TARGETS scas scdump scwrap" "TARGETS scas scdump scwrap generate_tables" 18 + ''; 20 19 strictDeps = true; 21 20 22 - nativeBuildInputs = [ cmake ]; 21 + depsBuildBuild = lib.optionals isCrossCompiling [ buildPackages.knightos-scas ]; 22 + nativeBuildInputs = [ asciidoc libxslt.bin cmake ]; 23 + postInstall = '' 24 + cd .. 25 + make DESTDIR=$out install_man 26 + ''; 23 27 24 28 meta = with lib; { 25 29 homepage = "https://knightos.org/";
+16 -13
pkgs/development/tools/rust/cargo-geiger/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub 2 - , rustPlatform, pkg-config, openssl 3 - # darwin dependencies 4 - , Security, CoreFoundation, libiconv 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , rustPlatform 5 + , pkg-config 6 + , openssl 7 + # darwin dependencies 8 + , Security 9 + , CoreFoundation 10 + , libiconv 11 + , curl 5 12 }: 6 13 7 14 rustPlatform.buildRustPackage rec { ··· 23 16 }; 24 17 cargoSha256 = "sha256-i7xDEzZAN2ubW1Q6MhY+xsb9XiUajNDHLdtDuO5r6jA="; 25 18 26 - buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ]; 27 - nativeBuildInputs = [ pkg-config ]; 28 - 29 - # FIXME: Use impure version of CoreFoundation because of missing symbols. 30 - # CFURLSetResourcePropertyForKey is defined in the headers but there's no 31 - # corresponding implementation in the sources from opensource.apple.com. 32 - preConfigure = lib.optionalString stdenv.isDarwin '' 33 - export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE" 34 - ''; 19 + buildInputs = [ openssl ] 20 + ++ lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv curl ]; 21 + nativeBuildInputs = [ pkg-config ] 22 + # curl-sys wants to run curl-config on darwin 23 + ++ lib.optionals stdenv.isDarwin [ curl.dev ]; 35 24 36 25 # skip tests with networking or other failures 37 26 checkFlags = [
+4 -4
pkgs/misc/drivers/xow/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "xow"; 5 - version = "0.5"; 5 + version = "unstable-2022-04-24"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "medusalix"; 9 9 repo = "xow"; 10 - rev = "v${version}"; 11 - sha256 = "071r2kx44k1sc49cad3i607xg618mf34ki1ykr5lnfx9y6qyz075"; 10 + rev = "d335d6024f8380f52767a7de67727d9b2f867871"; 11 + sha256 = "0q5nr21p4dlx2a99hiivwz6qj9anrqqsdhiz6xi375yqkxis4251"; 12 12 }; 13 13 14 14 firmware = fetchurl { ··· 18 18 19 19 makeFlags = [ 20 20 "BUILD=RELEASE" 21 - "VERSION=${version}" 21 + "VERSION=${version}-${src.rev}" 22 22 "BINDIR=${placeholder "out"}/bin" 23 23 "UDEVDIR=${placeholder "out"}/lib/udev/rules.d" 24 24 "MODLDIR=${placeholder "out"}/lib/modules-load.d"
+10 -2
pkgs/os-specific/darwin/goku/default.nix
··· 1 - {lib, stdenv, fetchurl }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , unzip 5 + }: 2 6 3 7 stdenv.mkDerivation rec { 4 8 pname = "goku"; 5 9 version = "0.5.1"; 6 10 7 11 src = fetchurl { 8 - url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.tar.gz"; 12 + url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.zip"; 9 13 sha256 = "7c9304a5b4265575ca154bc0ebc04fcf812d14981775966092946cf82f65c782"; 10 14 }; 15 + 16 + nativeBuildInputs = [ 17 + unzip 18 + ]; 11 19 12 20 sourceRoot = "."; 13 21
+6
pkgs/os-specific/linux/firejail/default.nix
··· 47 47 # Upstream fix https://github.com/netblue30/firejail/pull/5131 48 48 # Upstream hopefully fixed in later versions > 0.9.68 49 49 ./whitelist-nix-profile.patch 50 + 51 + # Fix OpenGL support for various applications including Firefox 52 + # Issue: https://github.com/NixOS/nixpkgs/issues/55191 53 + # Upstream fix: https://github.com/netblue30/firejail/pull/5132 54 + # Hopefully fixed upstream in version > 0.9.68 55 + ./fix-opengl-support.patch 50 56 ]; 51 57 52 58 prePatch = ''
+7
pkgs/os-specific/linux/firejail/fix-opengl-support.patch
··· 1 + --- a/etc/inc/whitelist-run-common.inc.org 2022-05-07 11:27:32.264849186 +0200 2 + +++ b/etc/inc/whitelist-run-common.inc 2022-05-07 11:27:55.577778211 +0200 3 + @@ -13,3 +13,4 @@ 4 + whitelist /run/systemd/resolve/resolv.conf 5 + whitelist /run/systemd/resolve/stub-resolv.conf 6 + whitelist /run/udev/data 7 + +whitelist /run/opengl-driver # NixOS
+2
pkgs/tools/cd-dvd/cdrkit/default.nix
··· 23 23 ln -s $out/bin/wodim $out/bin/cdrecord 24 24 ''; 25 25 26 + cmakeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "-DBITFIELDS_HTOL=0" ]; 27 + 26 28 makeFlags = [ "PREFIX=\$(out)" ]; 27 29 28 30 meta = {
+10 -1
pkgs/tools/filesystems/dosfstools/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv, gettext, xxd }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libiconv, gettext, xxd }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "dosfstools"; ··· 10 10 rev = "v${version}"; 11 11 sha256 = "sha256-2gxB0lQixiHOHw8uTetHekaM57fvUd9zOzSxWnvUz/c="; 12 12 }; 13 + 14 + patches = [ 15 + # macOS build fixes backported from master 16 + # TODO: remove on the next release 17 + (fetchpatch { 18 + url = "https://github.com/dosfstools/dosfstools/commit/77ffb87e8272760b3bb2dec8f722103b0effb801.patch"; 19 + sha256 = "sha256-xHxIs3faHK/sK3vAVoG8JcTe4zAV+ZtkozWIIFBvPWI="; 20 + }) 21 + ]; 13 22 14 23 nativeBuildInputs = [ autoreconfHook pkg-config ] 15 24 ++ lib.optional stdenv.isDarwin libiconv;
+2 -1
pkgs/tools/misc/gotify-desktop/default.nix
··· 1 - { lib, fetchFromGitHub, rustPlatform, openssl, pkg-config}: 1 + { lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, stdenv}: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "gotify-desktop"; ··· 22 22 homepage = "https://github.com/desbma/gotify-desktop"; 23 23 license = licenses.gpl3Plus; 24 24 maintainers = with maintainers; [ bryanasdev000 genofire ]; 25 + broken = stdenv.isDarwin; 25 26 }; 26 27 }
+4
pkgs/tools/misc/nbench/default.nix
··· 16 16 substituteInPlace Makefile --replace "-static" "" 17 17 ''; 18 18 19 + buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ 20 + stdenv.glibc.static 21 + ]; 22 + 19 23 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 20 24 21 25 installPhase = ''
+4 -1
pkgs/tools/system/netdata/default.nix
··· 27 27 fetchSubmodules = true; 28 28 }; 29 29 30 - nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ]; 30 + strictDeps = true; 31 + 32 + nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper protobuf ]; 31 33 buildInputs = [ curl.dev zlib.dev protobuf ] 32 34 ++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ] 33 35 ++ optionals (!stdenv.isDarwin) [ libcap.dev libuuid.dev ] ··· 82 80 configureFlags = [ 83 81 "--localstatedir=/var" 84 82 "--sysconfdir=/etc" 83 + "--disable-ebpf" 85 84 ] ++ optionals withCloud [ 86 85 "--enable-cloud" 87 86 "--with-aclk-ng"