From dae16c0339ff6187fdabbf8ddf9382b980c839d8 Mon Sep 17 00:00:00 2001 From: Babbaj Date: Tue, 7 Nov 2023 02:15:33 -0500 Subject: openrazer-daemon: fix notifications --- pkgs/development/python-modules/openrazer/daemon.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix index 622917e8a3e70..ea90e089ec345 100644 --- a/pkgs/development/python-modules/openrazer/daemon.nix +++ b/pkgs/development/python-modules/openrazer/daemon.nix @@ -11,6 +11,7 @@ , pyudev , setproctitle , wrapGAppsHook +, notify2 }: let @@ -39,6 +40,7 @@ buildPythonPackage (common // { pygobject3 pyudev setproctitle + notify2 ]; postInstall = '' -- cgit 1.4.1 From e24783fe6faeff5d04f9bf4608fbb41bc99b08bb Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 8 Nov 2023 14:26:20 +0100 Subject: yosys: add Luflosi as maintainer --- pkgs/development/compilers/yosys/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development') diff --git a/pkgs/development/compilers/yosys/default.nix b/pkgs/development/compilers/yosys/default.nix index 0ea755f7348b3..73fbb209b1ba9 100644 --- a/pkgs/development/compilers/yosys/default.nix +++ b/pkgs/development/compilers/yosys/default.nix @@ -150,6 +150,6 @@ in stdenv.mkDerivation rec { homepage = "https://yosyshq.net/yosys/"; license = licenses.isc; platforms = platforms.all; - maintainers = with maintainers; [ shell thoughtpolice emily ]; + maintainers = with maintainers; [ shell thoughtpolice emily Luflosi ]; }; } -- cgit 1.4.1 From e947b23190f5793c06f42b59865638a68b170552 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 8 Nov 2023 14:39:42 +0100 Subject: yosys: use finalAttrs --- pkgs/development/compilers/yosys/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/compilers/yosys/default.nix b/pkgs/development/compilers/yosys/default.nix index 73fbb209b1ba9..3761090c3e43c 100644 --- a/pkgs/development/compilers/yosys/default.nix +++ b/pkgs/development/compilers/yosys/default.nix @@ -69,14 +69,14 @@ let } // (yosys-symbiflow); -in stdenv.mkDerivation rec { +in stdenv.mkDerivation (finalAttrs: { pname = "yosys"; version = "0.34"; src = fetchFromGitHub { owner = "YosysHQ"; repo = "yosys"; - rev = "refs/tags/${pname}-${version}"; + rev = "refs/tags/${finalAttrs.pname}-${finalAttrs.version}"; hash = "sha256-GHDsMBj7DRb9ffESgzd1HzDAA6Cyft5PomidvIMzn9g="; }; @@ -101,7 +101,7 @@ in stdenv.mkDerivation rec { postPatch = '' substituteInPlace ./Makefile \ - --replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 src.rev}' + --replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 finalAttrs.src.rev}' chmod +x ./misc/yosys-config.in patchShebangs tests ./misc/yosys-config.in @@ -120,7 +120,7 @@ in stdenv.mkDerivation rec { fi if ! grep -q "YOSYS_VER := $version" Makefile; then - echo "ERROR: yosys version in Makefile isn't equivalent to version of the nix package (allegedly ${version}), failing." + echo "ERROR: yosys version in Makefile isn't equivalent to version of the nix package (allegedly ${finalAttrs.version}), failing." exit 1 fi ''; @@ -152,4 +152,4 @@ in stdenv.mkDerivation rec { platforms = platforms.all; maintainers = with maintainers; [ shell thoughtpolice emily Luflosi ]; }; -} +}) -- cgit 1.4.1 From 46478168d230fa48d623b44802747c8cda1f1a21 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 8 Nov 2023 14:40:25 +0100 Subject: yosys: 0.34 -> 0.35 https://github.com/YosysHQ/yosys/releases/tag/yosys-0.35 --- pkgs/development/compilers/yosys/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/compilers/yosys/default.nix b/pkgs/development/compilers/yosys/default.nix index 3761090c3e43c..6d086d57b017f 100644 --- a/pkgs/development/compilers/yosys/default.nix +++ b/pkgs/development/compilers/yosys/default.nix @@ -71,13 +71,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "yosys"; - version = "0.34"; + version = "0.35"; src = fetchFromGitHub { owner = "YosysHQ"; repo = "yosys"; rev = "refs/tags/${finalAttrs.pname}-${finalAttrs.version}"; - hash = "sha256-GHDsMBj7DRb9ffESgzd1HzDAA6Cyft5PomidvIMzn9g="; + hash = "sha256-jB8y7XGDX9rVF6c4FSTLOyvsxPhdjU8Taj6MQeoU4KQ="; }; enableParallelBuilding = true; -- cgit 1.4.1 From 8c87a8ab75e35fc858d9477e2d500a1670e7ff06 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 10 Nov 2023 13:17:10 +0100 Subject: python311Packages.bash-kernel: rename from bash_kernel --- .../python-modules/bash-kernel/default.nix | 60 ++++++++++++++++++++++ .../python-modules/bash_kernel/default.nix | 59 --------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 +- 4 files changed, 62 insertions(+), 60 deletions(-) create mode 100644 pkgs/development/python-modules/bash-kernel/default.nix delete mode 100644 pkgs/development/python-modules/bash_kernel/default.nix (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/bash-kernel/default.nix b/pkgs/development/python-modules/bash-kernel/default.nix new file mode 100644 index 0000000000000..a9ef9615411f0 --- /dev/null +++ b/pkgs/development/python-modules/bash-kernel/default.nix @@ -0,0 +1,60 @@ +{ lib +, buildPythonPackage +, fetchPypi +, fetchpatch +, flit-core +, ipykernel +, isPy27 +, python +, pexpect +, bash +}: + +buildPythonPackage rec { + pname = "bash-kernel"; + version = "0.9.1"; + format = "flit"; + disabled = isPy27; + + src = fetchPypi { + pname = "bash_kernel"; + inherit version; + sha256 = "sha256-AYPVPjYP+baEcQUqmiiagWIXMlFrA04njpcgtdFaFis="; + }; + + patches = [ + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff"; + sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j"; + }) + ]; + + postPatch = '' + substituteInPlace bash_kernel/kernel.py \ + --replace "'bash'" "'${bash}/bin/bash'" \ + --replace "\"bash\"" "'${bash}/bin/bash'" + ''; + + nativeBuildInputs = [ flit-core ]; + + propagatedBuildInputs = [ ipykernel pexpect ]; + + # no tests + doCheck = false; + + preBuild = '' + export HOME=$TMPDIR + ''; + + postInstall = '' + ${python.pythonOnBuildForHost.interpreter} -m bash_kernel.install --prefix $out + ''; + + meta = with lib; { + description = "Bash Kernel for Jupyter"; + homepage = "https://github.com/takluyver/bash_kernel"; + changelog = "https://github.com/takluyver/bash_kernel/releases/tag/${version}"; + license = licenses.bsd3; + maintainers = with maintainers; [ zimbatm ]; + }; +} diff --git a/pkgs/development/python-modules/bash_kernel/default.nix b/pkgs/development/python-modules/bash_kernel/default.nix deleted file mode 100644 index 5956d52de861e..0000000000000 --- a/pkgs/development/python-modules/bash_kernel/default.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, flit-core -, ipykernel -, isPy27 -, python -, pexpect -, bash -}: - -buildPythonPackage rec { - pname = "bash_kernel"; - version = "0.9.1"; - format = "flit"; - disabled = isPy27; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-AYPVPjYP+baEcQUqmiiagWIXMlFrA04njpcgtdFaFis="; - }; - - patches = [ - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff"; - sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j"; - }) - ]; - - postPatch = '' - substituteInPlace bash_kernel/kernel.py \ - --replace "'bash'" "'${bash}/bin/bash'" \ - --replace "\"bash\"" "'${bash}/bin/bash'" - ''; - - nativeBuildInputs = [ flit-core ]; - - propagatedBuildInputs = [ ipykernel pexpect ]; - - # no tests - doCheck = false; - - preBuild = '' - export HOME=$TMPDIR - ''; - - postInstall = '' - ${python.pythonOnBuildForHost.interpreter} -m bash_kernel.install --prefix $out - ''; - - meta = with lib; { - description = "Bash Kernel for Jupyter"; - homepage = "https://github.com/takluyver/bash_kernel"; - changelog = "https://github.com/takluyver/bash_kernel/releases/tag/${version}"; - license = licenses.bsd3; - maintainers = with maintainers; [ zimbatm ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 4f843ef4a8916..d84b7b3a439b6 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -58,6 +58,7 @@ mapAliases ({ backports_tempfile = throw "backports_tempfile has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28 backports_unittest-mock = throw "backports_unittest-mock has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28 backports_weakref = throw "backports_weakref has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28 + bash_kernel = bash-kernel; # added 2023-11-10 beancount_docverif = beancount-docverif; # added 2023-10-08 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04 bip_utils = bip-utils; # 2023-10-08 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 53d451ec6f114..c2bc8983251c7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1321,7 +1321,7 @@ self: super: with self; { basemap-data = callPackage ../development/python-modules/basemap-data { }; - bash_kernel = callPackage ../development/python-modules/bash_kernel { }; + bash-kernel = callPackage ../development/python-modules/bash-kernel { }; bashlex = callPackage ../development/python-modules/bashlex { }; -- cgit 1.4.1 From 403a240615f2c98c768f4c43d93961d077700d19 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 10 Nov 2023 13:19:08 +0100 Subject: python311Packages.bash-kernel: fix build Substitute the bash path more carefully, as not all quoted bash strings are meant to be paths. --- .../python-modules/bash-kernel/bash-path.patch | 22 ++++++++++++++ .../python-modules/bash-kernel/default.nix | 34 ++++++++++------------ 2 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/bash-kernel/bash-path.patch (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/bash-kernel/bash-path.patch b/pkgs/development/python-modules/bash-kernel/bash-path.patch new file mode 100644 index 0000000000000..98c3cc511ab74 --- /dev/null +++ b/pkgs/development/python-modules/bash-kernel/bash-path.patch @@ -0,0 +1,22 @@ +diff --git a/bash_kernel/kernel.py b/bash_kernel/kernel.py +index 0496f1e..bd13c4f 100644 +--- a/bash_kernel/kernel.py ++++ b/bash_kernel/kernel.py +@@ -88,7 +88,7 @@ class BashKernel(Kernel): + @property + def banner(self): + if self._banner is None: +- self._banner = check_output(['bash', '--version']).decode('utf-8') ++ self._banner = check_output(['@bash@', '--version']).decode('utf-8') + return self._banner + + language_info = {'name': 'bash', +@@ -116,7 +116,7 @@ class BashKernel(Kernel): + # source code there for comments and context for + # understanding the code here. + bashrc = os.path.join(os.path.dirname(pexpect.__file__), 'bashrc.sh') +- child = pexpect.spawn("bash", ['--rcfile', bashrc], echo=False, ++ child = pexpect.spawn("@bash@", ['--rcfile', bashrc], echo=False, + encoding='utf-8', codec_errors='replace') + # Following comment stolen from upstream's REPLWrap: + # If the user runs 'env', the value of PS1 will be in the output. To avoid diff --git a/pkgs/development/python-modules/bash-kernel/default.nix b/pkgs/development/python-modules/bash-kernel/default.nix index a9ef9615411f0..1c50b151f01e6 100644 --- a/pkgs/development/python-modules/bash-kernel/default.nix +++ b/pkgs/development/python-modules/bash-kernel/default.nix @@ -4,43 +4,38 @@ , fetchpatch , flit-core , ipykernel -, isPy27 , python , pexpect , bash +, substituteAll }: buildPythonPackage rec { pname = "bash-kernel"; version = "0.9.1"; - format = "flit"; - disabled = isPy27; + pyproject = true; src = fetchPypi { pname = "bash_kernel"; inherit version; - sha256 = "sha256-AYPVPjYP+baEcQUqmiiagWIXMlFrA04njpcgtdFaFis="; + hash = "sha256-AYPVPjYP+baEcQUqmiiagWIXMlFrA04njpcgtdFaFis="; }; patches = [ - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff"; - sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j"; + (substituteAll { + src = ./bash-path.patch; + bash = lib.getExe bash; }) ]; - postPatch = '' - substituteInPlace bash_kernel/kernel.py \ - --replace "'bash'" "'${bash}/bin/bash'" \ - --replace "\"bash\"" "'${bash}/bin/bash'" - ''; - - nativeBuildInputs = [ flit-core ]; - - propagatedBuildInputs = [ ipykernel pexpect ]; + nativeBuildInputs = [ + flit-core + ]; - # no tests - doCheck = false; + propagatedBuildInputs = [ + ipykernel + pexpect + ]; preBuild = '' export HOME=$TMPDIR @@ -50,6 +45,9 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} -m bash_kernel.install --prefix $out ''; + # no tests + doCheck = false; + meta = with lib; { description = "Bash Kernel for Jupyter"; homepage = "https://github.com/takluyver/bash_kernel"; -- cgit 1.4.1 From a768cb9a38caae316196399d5019421745148dd2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 11 Nov 2023 15:10:55 +0000 Subject: python310Packages.rich-argparse: 1.3.0 -> 1.4.0 --- pkgs/development/python-modules/rich-argparse/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/rich-argparse/default.nix b/pkgs/development/python-modules/rich-argparse/default.nix index 0fde4435543d4..7dc2878d391d0 100644 --- a/pkgs/development/python-modules/rich-argparse/default.nix +++ b/pkgs/development/python-modules/rich-argparse/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "rich-argparse"; - version = "1.3.0"; + version = "1.4.0"; format = "pyproject"; src = fetchFromGitHub { owner = "hamdanal"; repo = "rich-argparse"; - rev = "v${version}"; - hash = "sha256-WAqFhH9gUwDZuORJ++fKjCmaCurdYpep3WPq68tWJ4U="; + rev = "refs/tags/v${version}"; + hash = "sha256-iQ8x8UM0zmb2qYUpSh6RSEaBMrDpwY0ZHaJ9GJqn4Hs="; }; propagatedBuildInputs = [ -- cgit 1.4.1 From 1a52103661cf12a3ec3bd45485fe1cf7fa632ee0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 11 Nov 2023 21:29:13 +0000 Subject: python310Packages.steamship: 2.17.28 -> 2.17.32 --- pkgs/development/python-modules/steamship/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/steamship/default.nix b/pkgs/development/python-modules/steamship/default.nix index 5309312bba351..adc6db83dd9bd 100644 --- a/pkgs/development/python-modules/steamship/default.nix +++ b/pkgs/development/python-modules/steamship/default.nix @@ -16,12 +16,12 @@ buildPythonPackage rec { pname = "steamship"; - version = "2.17.28"; + version = "2.17.32"; format = "pyproject"; src = fetchPypi { inherit pname version; - hash = "sha256-NdWQiHu5YDIEtL4zJj5Vydjmwq1b5aqVcmqIe7zYv3g="; + hash = "sha256-dTpz2/XXu8patDnorg/36652j9VLUjE5uF2fVzbDjfI="; }; pythonRelaxDeps = [ -- cgit 1.4.1 From 3358e7ac3ab6a7044deaab39a895cb6292011a19 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 12 Nov 2023 01:37:58 +0000 Subject: ngtcp2-gnutls: 1.0.0 -> 1.0.1 --- pkgs/development/libraries/ngtcp2/gnutls.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/libraries/ngtcp2/gnutls.nix b/pkgs/development/libraries/ngtcp2/gnutls.nix index 53d8454264bd4..851d687077cd9 100644 --- a/pkgs/development/libraries/ngtcp2/gnutls.nix +++ b/pkgs/development/libraries/ngtcp2/gnutls.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "ngtcp2"; - version = "1.0.0"; + version = "1.0.1"; src = fetchFromGitHub { owner = "ngtcp2"; repo = "ngtcp2"; rev = "v${version}"; - hash = "sha256-dnYIRcNGTIzETu2OjTJa0IWB1+xttdGFKRBmMkTwrXk="; + hash = "sha256-Z8rMujmshdes5SLU5GpXu6QzAHl957sFDK+QSdGYCOc="; }; outputs = [ "out" "dev" ]; -- cgit 1.4.1 From ca96ce427b900f053d91c7bf9e38578bb8db515f Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sat, 11 Nov 2023 22:14:32 -0300 Subject: sqlcl: change license to unfreeRedistributable SQLcL is actually unfreeRedistributable (since 2021, it seems), under the Oracle Free Use License. Manually downloading the source is also not needed anymore. Also switched to finalAttrs pattern instead of using rec. --- pkgs/development/tools/database/sqlcl/default.nix | 38 ++++------------------- 1 file changed, 6 insertions(+), 32 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/tools/database/sqlcl/default.nix b/pkgs/development/tools/database/sqlcl/default.nix index 67d905ae0565c..cc68d8b93bbe8 100644 --- a/pkgs/development/tools/database/sqlcl/default.nix +++ b/pkgs/development/tools/database/sqlcl/default.nix @@ -1,37 +1,11 @@ -{ lib, stdenv, makeWrapper, requireFile, unzip, jdk }: +{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "sqlcl"; version = "23.2.0.178.1027"; - src = requireFile rec { - url = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/"; - name = "sqlcl-${version}.zip"; - message = '' - This Nix expression requires that ${name} already be part of the store. To - obtain it you need to - - - navigate to ${url} - - make sure that it says "Version ${version}" above the list of downloads - - if it does not, click on the "Previous Version" link below the - download and repeat until the version is correct. This is necessary - because as the time of this writing there exists no permanent link - for the current version yet. - Also consider updating this package yourself (you probably just need - to change the `version` variable and update the sha256 to the one of - the new file) or opening an issue at the nixpkgs repo. - - click "Download" - - sign in or create an oracle account if neccessary - - on the next page, click the "${name}" link - - and then add the file to the Nix store using either: - - nix-store --add-fixed sha256 ${name} - - or - - nix-prefetch-url --type sha256 file:///path/to/${name} - ''; + src = fetchurl { + url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip"; hash = "sha256-wGqLlV88yYJrVblKzeG6VerfsEgCi1JQd49ONZmUB4Y="; }; @@ -58,8 +32,8 @@ stdenv.mkDerivation rec { also supporting your previously written SQL*Plus scripts. ''; homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/"; - license = licenses.unfree; + license = licenses.unfreeRedistributable; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ misterio77 ]; }; -} +}) -- cgit 1.4.1 From 4c5a455ca5c09a15edca42e83e8b65773da4394a Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 8 Nov 2023 16:40:26 -0800 Subject: newlib: always pass --with-newlib --- pkgs/development/misc/newlib/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/development') diff --git a/pkgs/development/misc/newlib/default.nix b/pkgs/development/misc/newlib/default.nix index d162753608bdc..49626ab846675 100644 --- a/pkgs/development/misc/newlib/default.nix +++ b/pkgs/development/misc/newlib/default.nix @@ -37,6 +37,7 @@ stdenv.mkDerivation (finalAttrs: { # flags copied from https://community.arm.com/support-forums/f/compilers-and-libraries-forum/53310/gcc-arm-none-eabi-what-were-the-newlib-compilation-options # sort alphabetically configureFlags = [ + "--with-newlib" "--host=${stdenv.buildPlatform.config}" ] ++ (if !nanoizeNewlib then [ "--disable-newlib-supplied-syscalls" -- cgit 1.4.1 From 1e47c87fd239258c2e5e8259765053c24b5f50d9 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 8 Nov 2023 16:42:00 -0800 Subject: newlib: fix newlib host/target workaround The newlib configury uses `host` to refer to the platform which is being used to compile newlib. Ugh. It does this because of its history: newlib used to be distributed with and built as part of gcc. To prevent nixpkgs from going insane, this package presents the "normal" view to the outside world: the binaries in $out will execute on `stdenv.hostPlatform`. We then fool newlib's build process into doing the right thing. --- pkgs/development/misc/newlib/default.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'pkgs/development') diff --git a/pkgs/development/misc/newlib/default.nix b/pkgs/development/misc/newlib/default.nix index 49626ab846675..8aed144ff65c2 100644 --- a/pkgs/development/misc/newlib/default.nix +++ b/pkgs/development/misc/newlib/default.nix @@ -31,14 +31,36 @@ stdenv.mkDerivation (finalAttrs: { # newlib expects CC to build for build platform, not host platform preConfigure = '' export CC=cc + '' + + # newlib tries to disable itself when building for Linux *except* + # when native-compiling. Unfortunately the check for "is cross + # compiling" was written when newlib was part of GCC and newlib + # was built along with GCC (therefore newlib was built to execute + # on the targetPlatform, not the hostPlatform). Unfortunately + # when newlib was extracted from GCC, this "is cross compiling" + # logic was not fixed. So we must disable it. + '' + substituteInPlace configure --replace 'noconfigdirs target-newlib target-libgloss' 'noconfigdirs' ''; + configurePlatforms = [ "build" "target" ]; # flags copied from https://community.arm.com/support-forums/f/compilers-and-libraries-forum/53310/gcc-arm-none-eabi-what-were-the-newlib-compilation-options # sort alphabetically configureFlags = [ "--with-newlib" - "--host=${stdenv.buildPlatform.config}" + + # The newlib configury uses `host` to refer to the platform + # which is being used to compile newlib. Ugh. It does this + # because of its history: newlib used to be distributed with and + # built as part of gcc. + # + # To prevent nixpkgs from going insane, this package presents the + # "normal" view to the outside world: the binaries in $out will + # execute on `stdenv.hostPlatform`. We then fool newlib's build + # process into doing the right thing. + "--host=${stdenv.targetPlatform.config}" + ] ++ (if !nanoizeNewlib then [ "--disable-newlib-supplied-syscalls" "--disable-nls" -- cgit 1.4.1 From 0335f7348c567fa73b00244c5a8263efeb320fad Mon Sep 17 00:00:00 2001 From: t4ccer Date: Sat, 11 Nov 2023 19:28:39 -0700 Subject: python3Packages.pycardano: 0.9.0 -> 0.10.0 --- pkgs/development/python-modules/pycardano/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/pycardano/default.nix b/pkgs/development/python-modules/pycardano/default.nix index 8345a3da20655..118e4ed66b5e6 100644 --- a/pkgs/development/python-modules/pycardano/default.nix +++ b/pkgs/development/python-modules/pycardano/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub # Python deps , blockfrost-python +, cachetools , cbor2 , cose , ecpy @@ -29,7 +30,7 @@ let in buildPythonPackage rec { pname = "pycardano"; - version = "0.9.0"; + version = "0.10.0"; format = "pyproject"; @@ -37,11 +38,12 @@ in buildPythonPackage rec { owner = "Python-Cardano"; repo = "pycardano"; rev = "v${version}"; - hash = "sha256-KRlpGhEzABBh1YWCDcrpW4hyMOhEA1Rla9nh95qdVik="; + hash = "sha256-LP/W8IC2del476fGFq10VMWwMrbAoCCcZOngA8unBM0="; }; propagatedBuildInputs = [ blockfrost-python + cachetools cbor2 cose_0_9_dev8 ecpy -- cgit 1.4.1 From 6f314053897165a8c629484836a45d1de1a0e965 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 12 Nov 2023 01:50:26 +0000 Subject: python310Packages.txtai: 6.1.0 -> 6.2.0 --- pkgs/development/python-modules/txtai/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/txtai/default.nix b/pkgs/development/python-modules/txtai/default.nix index 75b83aaaa090c..45e8980da4236 100644 --- a/pkgs/development/python-modules/txtai/default.nix +++ b/pkgs/development/python-modules/txtai/default.nix @@ -52,7 +52,7 @@ , unittestCheckHook }: let - version = "6.1.0"; + version = "6.2.0"; api = [ aiohttp fastapi uvicorn ]; # cloud = [ apache-libcloud ]; console = [ rich ]; @@ -105,7 +105,7 @@ buildPythonPackage { owner = "neuml"; repo = "txtai"; rev = "refs/tags/v${version}"; - hash = "sha256-ZUMfDyebroa9r01bOUFYDyVjuNUqlPU88HBocp3YQJ4="; + hash = "sha256-aWuY2z5DIVhZ5bRADhKSadCofIQQdLQAb52HnjPMS/4="; }; nativeBuildInputs = [ -- cgit 1.4.1