diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 574ce1a9897..b7e14de9bd5 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -3662,6 +3662,12 @@
githubId = 103082;
name = "Ed Brindley";
};
+ elizagamedev = {
+ email = "eliza@eliza.sh";
+ github = "elizagamedev";
+ githubId = 4576666;
+ name = "Eliza Velasquez";
+ };
elliot = {
email = "hack00mind@gmail.com";
github = "Eliot00";
@@ -10122,6 +10128,12 @@
githubId = 81340136;
name = "polykernel";
};
+ poelzi = {
+ email = "nix@poelzi.org";
+ github = "poelzi";
+ githubId = 66107;
+ name = "Daniel Poelzleithner";
+ };
polyrod = {
email = "dc1mdp@gmail.com";
github = "polyrod";
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
index c0f36fcfd35..19aaf12f26a 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
@@ -516,6 +516,15 @@
(ghc.withPackages.override { useLLVM = true; }) (p: []).
+
+
+ The update of the haskell package set brings with it a new
+ version of the xmonad module, which will
+ break your configuration if you use launch
+ as entrypoint. The example code the corresponding nixos module
+ was adjusted, you way want to have a look at it.
+
+
The home-assistant module now requires
diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md
index 5902957a535..9261511e7b8 100644
--- a/nixos/doc/manual/release-notes/rl-2205.section.md
+++ b/nixos/doc/manual/release-notes/rl-2205.section.md
@@ -163,6 +163,10 @@ In addition to numerous new and upgraded packages, this release has the followin
`useLLVM`. So instead of `(ghc.withPackages (p: [])).override { withLLVM = true; }`,
one needs to use `(ghc.withPackages.override { useLLVM = true; }) (p: [])`.
+- The update of the haskell package set brings with it a new version of the `xmonad`
+ module, which will break your configuration if you use `launch` as entrypoint. The
+ example code the corresponding nixos module was adjusted, you way want to have a look at it.
+
- The `home-assistant` module now requires users that don't want their
configuration to be managed declaratively to set
`services.home-assistant.config = null;`. This is required
diff --git a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
index 0e4feba2282..8c7bac6f6cc 100644
--- a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
+++ b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
@@ -35,8 +35,15 @@ with lib;
# Enable sound in graphical iso's.
hardware.pulseaudio.enable = true;
- # Spice guest additions
+ # VM guest additions to improve host-guest interaction
services.spice-vdagentd.enable = true;
+ services.qemuGuest.enable = true;
+ virtualisation.vmware.guest.enable = true;
+ virtualisation.hypervGuest.enable = true;
+ services.xe-guest-utilities.enable = true;
+ # The VirtualBox guest additions rely on an out-of-tree kernel module
+ # which lags behind kernel releases, potentially causing broken builds.
+ virtualisation.virtualbox.guest.enable = false;
# Enable plymouth
boot.plymouth.enable = true;
diff --git a/nixos/modules/services/networking/frr.nix b/nixos/modules/services/networking/frr.nix
index 45a82b9450a..98452123f03 100644
--- a/nixos/modules/services/networking/frr.nix
+++ b/nixos/modules/services/networking/frr.nix
@@ -106,6 +106,14 @@ let
TCP Port to bind to for the VTY interface.
'';
};
+
+ extraOptions = mkOption {
+ type = types.listOf types.str;
+ default = [];
+ description = ''
+ Extra options for the daemon.
+ '';
+ };
};
in
@@ -196,7 +204,8 @@ in
PIDFile = "frr/${daemon}.pid";
ExecStart = "${pkgs.frr}/libexec/frr/${daemon} -f /etc/frr/${service}.conf"
+ optionalString (scfg.vtyListenAddress != "") " -A ${scfg.vtyListenAddress}"
- + optionalString (scfg.vtyListenPort != null) " -P ${toString scfg.vtyListenPort}";
+ + optionalString (scfg.vtyListenPort != null) " -P ${toString scfg.vtyListenPort}"
+ + " " + (concatStringsSep " " scfg.extraOptions);
ExecReload = "${pkgs.python3.interpreter} ${pkgs.frr}/libexec/frr/frr-reload.py --reload --daemon ${daemonName service} --bindir ${pkgs.frr}/bin --rundir /run/frr /etc/frr/${service}.conf";
Restart = "on-abnormal";
};
diff --git a/nixos/modules/services/networking/nebula.nix b/nixos/modules/services/networking/nebula.nix
index de4439415cf..c83cd9d521c 100644
--- a/nixos/modules/services/networking/nebula.nix
+++ b/nixos/modules/services/networking/nebula.nix
@@ -192,6 +192,7 @@ in
Group = networkId;
})
];
+ unitConfig.StartLimitIntervalSec = 0; # ensure Restart=always is always honoured (networks can go down for arbitrarily long)
};
}) enabledNetworks);
diff --git a/nixos/modules/services/web-apps/restya-board.nix b/nixos/modules/services/web-apps/restya-board.nix
index 0bfa2368787..1a8199ab3b3 100644
--- a/nixos/modules/services/web-apps/restya-board.nix
+++ b/nixos/modules/services/web-apps/restya-board.nix
@@ -263,8 +263,8 @@ in
serviceConfig.RemainAfterExit = true;
wantedBy = [ "multi-user.target" ];
- requires = [ "postgresql.service" ];
- after = [ "network.target" "postgresql.service" ];
+ requires = if cfg.database.host == null then [] else [ "postgresql.service" ];
+ after = [ "network.target" ] ++ (if cfg.database.host == null then [] else [ "postgresql.service" ]);
script = ''
rm -rf "${runDir}"
@@ -282,7 +282,7 @@ in
sed -i "s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', 'restya');/g" "${runDir}/server/php/config.inc.php"
'' else ''
sed -i "s/^.*'R_DB_HOST'.*$/define('R_DB_HOST', '${cfg.database.host}');/g" "${runDir}/server/php/config.inc.php"
- sed -i "s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', ${if cfg.database.passwordFile == null then "''" else "'file_get_contents(${cfg.database.passwordFile})'"});/g" "${runDir}/server/php/config.inc.php
+ sed -i "s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', ${if cfg.database.passwordFile == null then "''" else "'$(cat ${cfg.database.passwordFile})');/g"}" "${runDir}/server/php/config.inc.php"
''}
sed -i "s/^.*'R_DB_PORT'.*$/define('R_DB_PORT', '${toString cfg.database.port}');/g" "${runDir}/server/php/config.inc.php"
sed -i "s/^.*'R_DB_NAME'.*$/define('R_DB_NAME', '${cfg.database.name}');/g" "${runDir}/server/php/config.inc.php"
diff --git a/nixos/modules/services/x11/window-managers/xmonad.nix b/nixos/modules/services/x11/window-managers/xmonad.nix
index 68f97c2f504..66d11131391 100644
--- a/nixos/modules/services/x11/window-managers/xmonad.nix
+++ b/nixos/modules/services/x11/window-managers/xmonad.nix
@@ -128,33 +128,34 @@ in {
[ ( (mod4Mask,xK_r), compileRestart True)
, ( (mod4Mask,xK_q), restart "xmonad" True ) ]
+ compileRestart resume = do
+ dirs <- asks directories
+ whenX (recompile dirs True) $ do
+ when resume writeStateToFile
+ catchIO
+ ( do
+ args <- getArgs
+ executeFile (cacheDir dirs > compiledConfig) False args Nothing
+ )
+
+ main = getDirectories >>= launch myConfig
+
--------------------------------------------
- {- version 0.17.0 -}
+ {- For versions before 0.17.0 use this instead -}
--------------------------------------------
-- compileRestart resume =
- -- dirs <- io getDirectories
- -- whenX (recompile dirs True) $
+ -- whenX (recompile True) $
-- when resume writeStateToFile
-- *> catchIO
-- ( do
+ -- dir <- getXMonadDataDir
-- args <- getArgs
- -- executeFile (cacheDir dirs > compiledConfig) False args Nothing
+ -- executeFile (dir > compiledConfig) False args Nothing
-- )
--
- -- main = getDirectories >>= launch myConfig
+ -- main = launch myConfig
--------------------------------------------
- compileRestart resume =
- whenX (recompile True) $
- when resume writeStateToFile
- *> catchIO
- ( do
- dir <- getXMonadDataDir
- args <- getArgs
- executeFile (dir > compiledConfig) False args Nothing
- )
-
- main = launch myConfig
'';
};
diff --git a/pkgs/applications/audio/bristol/default.nix b/pkgs/applications/audio/bristol/default.nix
index 0c9248b5f0b..b96155cf688 100644
--- a/pkgs/applications/audio/bristol/default.nix
+++ b/pkgs/applications/audio/bristol/default.nix
@@ -19,6 +19,12 @@ stdenv.mkDerivation rec {
configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: brightonCLI.o:/build/bristol-0.60.11/brighton/brightonCLI.c:139: multiple definition of
+ # `event'; brightonMixerMenu.o:/build/bristol-0.60.11/brighton/brightonMixerMenu.c:1182: first defined here
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
preInstall = ''
sed -e "s@\`which bristol\`@$out/bin/bristol@g" -i bin/startBristol
sed -e "s@\`which brighton\`@$out/bin/brighton@g" -i bin/startBristol
diff --git a/pkgs/applications/audio/dirt/default.nix b/pkgs/applications/audio/dirt/default.nix
index a456d62e6f6..9d9c5c869f7 100644
--- a/pkgs/applications/audio/dirt/default.nix
+++ b/pkgs/applications/audio/dirt/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, libsndfile, libsamplerate, liblo, libjack2 }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, libsndfile, libsamplerate, liblo, libjack2 }:
stdenv.mkDerivation {
pname = "dirt";
@@ -10,6 +10,15 @@ stdenv.mkDerivation {
sha256 = "13adglk2d31d7mswfvi02b0rjdhzmsv11cc8smhidmrns3f9s96n";
fetchSubmodules = true;
};
+ patches = [
+ # Pull patch pending upstream inclusion for upstream gcc-10 support:
+ # https://github.com/tidalcycles/Dirt/pull/65
+ (fetchpatch {
+ name = "fno-common.patch";
+ url = "https://github.com/tidalcycles/Dirt/commit/43fd267745d486228c4185b4fcbd7d9fbc362cc2.patch";
+ sha256 = "08r34ylzs31wwf0la995pb149ccq0vr7qg4792pkhca57zi0bff8";
+ })
+ ];
buildInputs = [ libsndfile libsamplerate liblo libjack2 ];
postPatch = ''
sed -i "s|./samples|$out/share/dirt/samples|" dirt.c
diff --git a/pkgs/applications/audio/ecasound/default.nix b/pkgs/applications/audio/ecasound/default.nix
index 108be8726c5..f23b11d1a67 100644
--- a/pkgs/applications/audio/ecasound/default.nix
+++ b/pkgs/applications/audio/ecasound/default.nix
@@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
strictDeps = true;
CXXFLAGS = "-std=c++11";
- configureFlags = "--enable-liblilv --with-extra-cppflags=-Dnullptr=0";
+ configureFlags = [ "--enable-liblilv" "--with-extra-cppflags=-Dnullptr=0" ];
postPatch = ''
sed -i -e '
diff --git a/pkgs/applications/audio/jamin/default.nix b/pkgs/applications/audio/jamin/default.nix
index 2bd23b821f1..70cb4d7f110 100644
--- a/pkgs/applications/audio/jamin/default.nix
+++ b/pkgs/applications/audio/jamin/default.nix
@@ -15,6 +15,12 @@ stdenv.mkDerivation rec {
buildInputs = [ fftwFloat gtk2 ladspaPlugins libjack2 liblo libxml2 ]
++ (with perlPackages; [ perl XMLParser ]);
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: jamin-preferences.o:/build/jamin-0.95.0/src/hdeq.h:64: multiple definition of
+ # `l_notebook1'; jamin-callbacks.o:/build/jamin-0.95.0/src/hdeq.h:64: first defined here
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
NIX_LDFLAGS = "-ldl";
postInstall = ''
diff --git a/pkgs/applications/audio/noisetorch/default.nix b/pkgs/applications/audio/noisetorch/default.nix
index d08991a916b..067263032b0 100644
--- a/pkgs/applications/audio/noisetorch/default.nix
+++ b/pkgs/applications/audio/noisetorch/default.nix
@@ -33,6 +33,8 @@ buildGoModule rec {
'';
meta = with lib; {
+ insecure = true;
+ knownVulnerabilities = [ "https://github.com/lawl/NoiseTorch/releases/tag/0.11.6" ];
description = "Virtual microphone device with noise supression for PulseAudio";
homepage = "https://github.com/lawl/NoiseTorch";
license = licenses.gpl3Plus;
diff --git a/pkgs/applications/audio/ympd/default.nix b/pkgs/applications/audio/ympd/default.nix
index 38c05276be4..218204d690a 100644
--- a/pkgs/applications/audio/ympd/default.nix
+++ b/pkgs/applications/audio/ympd/default.nix
@@ -18,11 +18,18 @@ stdenv.mkDerivation rec {
sha256 = "1nvb19jd556v2h2bi7w4dcl507p3p8xvjkqfzrcsy7ccy3502brq";
};
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: CMakeFiles/ympd.dir/src/mpd_client.c.o:(.bss+0x0): multiple definition of `mpd';
+ # CMakeFiles/ympd.dir/src/ympd.c.o:(.bss+0x20): first defined here
+ # Should be fixed by pending https://github.com/notandy/ympd/pull/191 (does not apply as is).
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libmpdclient openssl ];
meta = with lib; {
- homepage = "https://www.ympd.org";
+ homepage = "https://github.com/notandy/ympd";
description = "Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS";
maintainers = [ maintainers.siddharthist ];
platforms = platforms.unix;
diff --git a/pkgs/applications/blockchains/nearcore/default.nix b/pkgs/applications/blockchains/nearcore/default.nix
index f9f0bd0c69b..264d53fc56a 100644
--- a/pkgs/applications/blockchains/nearcore/default.nix
+++ b/pkgs/applications/blockchains/nearcore/default.nix
@@ -1,42 +1,60 @@
{ rustPlatform, lib, fetchFromGitHub
-, zlib, elfutils, openssl
-, cmake, python3, pkg-config, protobuf, perl, llvmPackages
+, zlib, openssl
+, pkg-config, protobuf, llvmPackages
}:
rustPlatform.buildRustPackage rec {
- #https://github.com/near/nearcore
pname = "nearcore";
- version = "1.25.0";
+ version = "1.26.0";
+
+ # https://github.com/near/nearcore/tags
src = fetchFromGitHub {
owner = "near";
repo = "nearcore";
# there is also a branch for this version number, so we need to be explicit
rev = "refs/tags/${version}";
- sha256 = "sha256-7hiBqJLGIf+kNKJvMQ7KtGZm/SWLY3pT7YDlwbm3HDM=";
+ sha256 = "sha256-N3A+hy5I1/yJ3IN9gDw3m1IZ9qK8LNhn3fuXLMn23bg=";
};
- cargoSha256 = "sha256-EGv4CibSHL9oTAdWK7d/SOzZWPcEB16hTWlWHjKU4wc=";
+ cargoSha256 = "sha256-g07liit048TSL73wFyDK+eKu33Z6fPJcJ+VeGgTtuS8=";
+
+ postPatch = ''
+ substituteInPlace neard/build.rs \
+ --replace 'get_git_version()?' '"nix:${version}"'
+ '';
+
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
+ CARGO_PROFILE_RELEASE_LTO = "fat";
+ NEAR_RELEASE_BUILD = "release";
+
+ OPENSSL_NO_VENDOR = 1; # we want to link to OpenSSL provided by Nix
# don't build SDK samples that require wasm-enabled rust
- cargoBuildFlags = [ "-p" "neard" ];
+ buildAndTestSubdir = "neard";
doCheck = false; # needs network
- buildInputs = [ zlib elfutils openssl ];
+ buildInputs = [
+ zlib
+ openssl
+ ];
+
nativeBuildInputs = [
- cmake
- python3
pkg-config
protobuf
- perl
];
+ # fat LTO requires ~3.4GB RAM
+ requiredSystemFeatures = [ "big-parallel" ];
+
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include";
meta = with lib; {
description = "Reference client for NEAR Protocol";
homepage = "https://github.com/near/nearcore";
- license = licenses.mit;
- maintainers = with maintainers; [ mic92 ];
- platforms = platforms.unix;
+ license = licenses.gpl3;
+ maintainers = with maintainers; [ mic92 mikroskeem ];
+ # only x86_64 is supported in nearcore because of sse4+ support, macOS might
+ # be also possible
+ platforms = [ "x86_64-linux" ];
};
}
diff --git a/pkgs/applications/emulators/bsnes/ares/default.nix b/pkgs/applications/emulators/bsnes/ares/default.nix
index c1597fe2c6e..4cc449ee49f 100644
--- a/pkgs/applications/emulators/bsnes/ares/default.nix
+++ b/pkgs/applications/emulators/bsnes/ares/default.nix
@@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, pkg-config
+, wrapGAppsHook
, SDL2
, alsa-lib
, gtk3
@@ -18,13 +19,13 @@
stdenv.mkDerivation rec {
pname = "ares";
- version = "127";
+ version = "128";
src = fetchFromGitHub {
owner = "ares-emulator";
repo = "ares";
rev = "v${version}";
- sha256 = "0rhq39w41j9yr1fkyfmf4n6fjxnq1cglj98rp4wys12kwqv7smvx";
+ sha256 = "sha256-Ojf1kyColBK0S3DwXjGaAZSl0ljhgiXkfKC11BL2fEc=";
};
patches = [
@@ -34,6 +35,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkg-config
+ wrapGAppsHook
];
buildInputs = [
diff --git a/pkgs/applications/graphics/drawio/headless.nix b/pkgs/applications/graphics/drawio/headless.nix
new file mode 100644
index 00000000000..c70511fa652
--- /dev/null
+++ b/pkgs/applications/graphics/drawio/headless.nix
@@ -0,0 +1,36 @@
+{ lib, writeTextFile, runtimeShell, drawio, xvfb-run }:
+
+writeTextFile {
+ name = "${drawio.pname}-headless-${drawio.version}";
+
+ executable = true;
+ destination = "/bin/drawio";
+ text = ''
+ #!${runtimeShell}
+
+ # Electron really wants a configuration directory to not die with:
+ # "Error: Failed to get 'appData' path"
+ # so we give it some temp dir as XDG_CONFIG_HOME
+ tmpdir=$(mktemp -d)
+
+ function cleanup {
+ rm -rf "$tmpdir"
+ }
+ trap cleanup EXIT
+
+ # Drawio needs to run in a virtual X session, because Electron
+ # refuses to work and dies with an unhelpful error message otherwise:
+ # "The futex facility returned an unexpected error code."
+ XDG_CONFIG_HOME="$tmpdir" ${xvfb-run}/bin/xvfb-run ${drawio}/bin/drawio $@
+ '';
+
+ meta = with lib; {
+ description = "xvfb wrapper around drawio";
+ longDescription = ''
+ A wrapper around drawio for running in headless environments.
+ Runs drawio under xvfb-run, with configuration going to a temporary
+ directory.
+ '';
+ maintainers = with maintainers; [ qyliss tfc ];
+ };
+}
diff --git a/pkgs/applications/graphics/grafx2/default.nix b/pkgs/applications/graphics/grafx2/default.nix
index df570008b0f..48e97e7dbb3 100644
--- a/pkgs/applications/graphics/grafx2/default.nix
+++ b/pkgs/applications/graphics/grafx2/default.nix
@@ -15,6 +15,12 @@ stdenv.mkDerivation rec {
preBuild = "cd src";
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of
+ # `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
preInstall = '' mkdir -p "$out" '';
installPhase = ''make install prefix="$out"'';
diff --git a/pkgs/applications/misc/gpg-mdp/default.nix b/pkgs/applications/misc/gpg-mdp/default.nix
index 48c7c7724eb..08ab2a5b7d9 100644
--- a/pkgs/applications/misc/gpg-mdp/default.nix
+++ b/pkgs/applications/misc/gpg-mdp/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, lib, stdenv, ncurses, gnupg }:
+{ fetchurl, fetchpatch, lib, stdenv, ncurses, gnupg }:
let version = "0.7.4";
in stdenv.mkDerivation {
@@ -14,6 +14,15 @@ in stdenv.mkDerivation {
url = "https://tamentis.com/projects/mdp/files/mdp-${version}.tar.gz";
sha256 = "04mdnx4ccpxf9m2myy9nvpl9ma4jgzmv9bkrzv2b9affzss3r34g";
};
+ patches = [
+ # Pull fix pending upstream inclusion for -fno-common toolchain support:
+ # https://github.com/tamentis/mdp/pull/9
+ (fetchpatch {
+ name = "fno-common.patch";
+ url = "https://github.com/tamentis/mdp/commit/95c77de3beb96dc7c76ff36d3f3dfb18411d7c54.patch";
+ sha256 = "1j6yvjzkx31b758yav4arhlm5ig7phl8mgx4fcwj7lm2pfvzwcsz";
+ })
+ ];
buildInputs = [ ncurses ];
prePatch = ''
substituteInPlace ./configure \
diff --git a/pkgs/applications/misc/zettlr/default.nix b/pkgs/applications/misc/zettlr/default.nix
index 21ac3a908d3..bd9e5a87bf9 100644
--- a/pkgs/applications/misc/zettlr/default.nix
+++ b/pkgs/applications/misc/zettlr/default.nix
@@ -8,11 +8,11 @@
# Based on https://gist.github.com/msteen/96cb7df66a359b827497c5269ccbbf94 and joplin-desktop nixpkgs.
let
pname = "zettlr";
- version = "2.2.5";
+ version = "2.2.6";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/Zettlr/Zettlr/releases/download/v${version}/Zettlr-${version}-x86_64.appimage";
- sha256 = "sha256-KP3lt0CweT1f/BR3IpnjwCqNvhFbrpz9KLg6K8OMs+I=";
+ sha256 = "sha256-f01WLxp8fe7y2EwTUhpPqcRuWBs/9lMaAAOdybmHB5M=";
};
appimageContents = appimageTools.extractType2 {
inherit name src;
diff --git a/pkgs/applications/networking/cluster/krane/Gemfile.lock b/pkgs/applications/networking/cluster/krane/Gemfile.lock
index ba7e5bb0a63..e886f40c8a5 100644
--- a/pkgs/applications/networking/cluster/krane/Gemfile.lock
+++ b/pkgs/applications/networking/cluster/krane/Gemfile.lock
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
- activesupport (7.0.2.3)
+ activesupport (7.0.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
@@ -60,7 +60,7 @@ GEM
ffi-compiler (>= 1.0, < 2.0)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
- jsonpath (1.1.1)
+ jsonpath (1.1.2)
multi_json
jwt (2.3.0)
krane (2.4.6)
diff --git a/pkgs/applications/networking/cluster/krane/gemset.nix b/pkgs/applications/networking/cluster/krane/gemset.nix
index 058910072a7..3c18789c095 100644
--- a/pkgs/applications/networking/cluster/krane/gemset.nix
+++ b/pkgs/applications/networking/cluster/krane/gemset.nix
@@ -5,10 +5,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
- sha256 = "1jpydd414j0fig3r0f6ci67mchclg6cq2qgqbq9zplrbg40pzfi8";
+ sha256 = "0z05zyc57f8ywvdvls6nx93vrhyyzzpgz729mwampz1qb8vvcspj";
type = "gem";
};
- version = "7.0.2.3";
+ version = "7.0.3";
};
addressable = {
dependencies = ["public_suffix"];
@@ -276,10 +276,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
- sha256 = "0slr38w21gwizkq4nk6c7l7lcqc2c733zfn5fq1pmbwy5bwiggad";
+ sha256 = "0fkdjic88hh0accp0sbx5mcrr9yaqwampf5c3214212d4i614138";
type = "gem";
};
- version = "1.1.1";
+ version = "1.1.2";
};
jwt = {
groups = ["default"];
diff --git a/pkgs/applications/networking/cluster/waypoint/default.nix b/pkgs/applications/networking/cluster/waypoint/default.nix
index df0ae08eede..038ab2c2bf7 100644
--- a/pkgs/applications/networking/cluster/waypoint/default.nix
+++ b/pkgs/applications/networking/cluster/waypoint/default.nix
@@ -2,16 +2,16 @@
buildGoModule rec {
pname = "waypoint";
- version = "0.8.1";
+ version = "0.8.2";
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-NRR/N61QdBF4jaioF7+X3xOdvaJ8COEzXL4hVHYSqW4=";
+ sha256 = "sha256-Pq1gGXROPHHMaOoQwx6cObvMF+SoilOROR4bwI0Y/GM=";
};
- vendorSha256 = "sha256-57/MzO5TulGKMkGdQRoFNKIKF7upJiPazF0+Ovt/LG8=";
+ vendorSha256 = "sha256-Q8ookgQwecRuSrnQiIREBMDxK9NAWfHu+sIQeMO/T4w=";
nativeBuildInputs = [ go-bindata installShellFiles ];
diff --git a/pkgs/applications/networking/mujmap/default.nix b/pkgs/applications/networking/mujmap/default.nix
new file mode 100644
index 00000000000..247a8d58954
--- /dev/null
+++ b/pkgs/applications/networking/mujmap/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+, notmuch
+, stdenv
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "mujmap";
+ version = "0.1.1";
+
+ src = fetchFromGitHub {
+ owner = "elizagamedev";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "sha256-O5CbLgs+MkATPtess0gocgPB9kwD8FMR/urwm6jo2rA=";
+ };
+
+ cargoSha256 = "sha256-nOZ+HnzXhVp+tLrNMZO1NmZIhIqlWz0fRMbHVIQkOxI=";
+
+ buildInputs = [
+ notmuch
+ ] ++ lib.optional stdenv.isDarwin Security;
+
+ meta = with lib; {
+ description = "Bridge for synchronizing email and tags between JMAP and notmuch";
+ homepage = "https://github.com/elizagamedev/mujmap/";
+ license = licenses.gpl3Plus;
+ maintainers = with maintainers; [ elizagamedev ];
+ mainProgram = "mujmap";
+ };
+}
diff --git a/pkgs/applications/science/logic/alt-ergo/default.nix b/pkgs/applications/science/logic/alt-ergo/default.nix
index 096a648b4dd..0767c58bdea 100644
--- a/pkgs/applications/science/logic/alt-ergo/default.nix
+++ b/pkgs/applications/science/logic/alt-ergo/default.nix
@@ -17,7 +17,7 @@ in
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
pname = "alt-ergo-lib";
inherit version src useDune2;
- configureFlags = pname;
+ configureFlags = [ pname ];
nativeBuildInputs = [ which ];
buildInputs = with ocamlPackages; [ dune-configurator ];
propagatedBuildInputs = with ocamlPackages; [ num ocplib-simplex stdlib-shims zarith ];
@@ -26,7 +26,7 @@ let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
pname = "alt-ergo-parsers";
inherit version src useDune2;
- configureFlags = pname;
+ configureFlags = [ pname ];
nativeBuildInputs = [ which ocamlPackages.menhir ];
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ camlzip psmt2-frontend ]);
}; in
@@ -35,7 +35,7 @@ ocamlPackages.buildDunePackage {
inherit pname version src useDune2;
- configureFlags = pname;
+ configureFlags = [ pname ];
nativeBuildInputs = [ which ocamlPackages.menhir ];
buildInputs = [ alt-ergo-parsers ocamlPackages.cmdliner ];
diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix
index 0c3ef25909b..507fa081529 100644
--- a/pkgs/applications/science/math/eukleides/default.nix
+++ b/pkgs/applications/science/math/eukleides/default.nix
@@ -32,6 +32,12 @@ lib.fix (eukleides: stdenv.mkDerivation rec {
--replace '$(SHARE_DIR)/texmf' "$tex"
'';
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: eukleides_build/triangle.o:(.bss+0x28): multiple definition of `A';
+ # eukleides_build/quadrilateral.o:(.bss+0x18): first defined here
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
preInstall = ''
mkdir -p $out/bin
'';
diff --git a/pkgs/applications/version-management/git-and-tools/lab/default.nix b/pkgs/applications/version-management/git-and-tools/lab/default.nix
index 8f4acbc3fc4..d73d1d13bde 100644
--- a/pkgs/applications/version-management/git-and-tools/lab/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/lab/default.nix
@@ -2,18 +2,18 @@
buildGoModule rec {
pname = "lab";
- version = "0.24.0";
+ version = "0.25.0";
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
- sha256 = "sha256-sw00D/PJaLAPHoPdJC2WYUNklIzMbc/bXt2jlQZ7E90=";
+ sha256 = "sha256-7AUhH2aBRpsjUzZQGE2fHDOa1k0rMUfZJqUEKZXpJuM=";
};
subPackages = [ "." ];
- vendorSha256 = "sha256-FwnVMH//GwFbi+llFF6XNqrZX2hRB4r51p8TRz2vN+g=";
+ vendorSha256 = "sha256-ChysquNuUffcM3qaWUdqu3Av33gnKkdlotEoFKoedA0=";
doCheck = false;
diff --git a/pkgs/applications/window-managers/matchbox/default.nix b/pkgs/applications/window-managers/matchbox/default.nix
index 51bb3010d33..f12ed0ea0a7 100644
--- a/pkgs/applications/window-managers/matchbox/default.nix
+++ b/pkgs/applications/window-managers/matchbox/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, pkg-config, libmatchbox, libX11, libXext }:
+{ lib, stdenv, fetchurl, fetchpatch, pkg-config, libmatchbox, libX11, libXext }:
stdenv.mkDerivation rec {
pname = "matchbox";
@@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
sha256 = "1zyfq438b466ygcz78nvsmnsc5bhg4wcfnpxb43kbkwpyx53m8l1";
};
+ patches = [
+ # Pull upstream fix for -fno-common tollchains:
+ (fetchpatch {
+ name = "fno-common.patch";
+ url = "https://git.yoctoproject.org/matchbox-window-manager/patch/?id=844f61069896fe3f549ab425d731c061028f697c";
+ sha256 = "1md2s7q094hn4gzg21pfyz8d426y07d5rbx2icas9nvc8jj7bwfc";
+ })
+ ];
+
meta = {
description = "X window manager for non-desktop embedded systems";
homepage = "https://www.yoctoproject.org/software-item/matchbox/";
diff --git a/pkgs/applications/window-managers/yeahwm/default.nix b/pkgs/applications/window-managers/yeahwm/default.nix
index 3cf997c22c2..25a25a06ad9 100644
--- a/pkgs/applications/window-managers/yeahwm/default.nix
+++ b/pkgs/applications/window-managers/yeahwm/default.nix
@@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
prefix="${placeholder "out"}" )
'';
+ # Workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: screen.o:(.bss+0x40): multiple definition of `fg'; client.o:(.bss+0x40): first defined here
+ NIX_CFLAGS_COMPILE = "-fcommon";
+
postInstall = ''
gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
install -m644 yeahwm.1.gz ${placeholder "out"}/share/man/man1/
diff --git a/pkgs/development/compilers/ccl/default.nix b/pkgs/development/compilers/ccl/default.nix
index 79e7d324ec9..761ae5ba019 100644
--- a/pkgs/development/compilers/ccl/default.nix
+++ b/pkgs/development/compilers/ccl/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, runCommand, bootstrap_cmds, coreutils, glibc, m4, runtimeShell }:
+{ lib, stdenv, fetchurl, fetchpatch, runCommand, bootstrap_cmds, coreutils, glibc, m4, runtimeShell }:
let
options = rec {
@@ -59,6 +59,21 @@ stdenv.mkDerivation rec {
sha256 = cfg.sha256;
};
+ patches = [
+ # Pull upstream fiux for -fno-common toolchains:
+ # https://github.com/Clozure/ccl/pull/316
+ (fetchpatch {
+ name = "fno-common-p1.patch";
+ url = "https://github.com/Clozure/ccl/commit/185dc1a00e7492f8be98e5f93b561758423595f1.patch";
+ sha256 = "0wqfds7346qdwdsxz3bl2p601ib94rdp9nknj7igj01q8lqfpajw";
+ })
+ (fetchpatch {
+ name = "fno-common-p2.patch";
+ url = "https://github.com/Clozure/ccl/commit/997de91062d1f152d0c3b322a1e3694243e4a403.patch";
+ sha256 = "10w6zw8wgalkdyya4m48lgca4p9wgcp1h44hy9wqr94dzlllq0f6";
+ })
+ ];
+
buildInputs = if stdenv.isDarwin then [ bootstrap_cmds m4 ] else [ glibc m4 ];
CCL_RUNTIME = cfg.runtime;
diff --git a/pkgs/development/compilers/jasmin-compiler/default.nix b/pkgs/development/compilers/jasmin-compiler/default.nix
index dbacda5c479..140de424519 100644
--- a/pkgs/development/compilers/jasmin-compiler/default.nix
+++ b/pkgs/development/compilers/jasmin-compiler/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "jasmin-compiler";
- version = "21.0";
+ version = "2022.04.0";
src = fetchurl {
url = "https://github.com/jasmin-lang/jasmin/releases/download/v${version}/jasmin-compiler-v${version}.tar.bz2";
- sha256 = "sha256:1px17fpc00gca5ayfcr4k008srkyw120c25rnyf7cgzfs1gpylj2";
+ sha256 = "sha256:0yf3lp469m8jdpqmqq3sw3h8l3psrzdp134wp3l1q31j3akskn2s";
};
sourceRoot = "jasmin-compiler-v${version}/compiler";
diff --git a/pkgs/development/compilers/yap/default.nix b/pkgs/development/compilers/yap/default.nix
index 4428d4dbba6..10ba3c55901 100644
--- a/pkgs/development/compilers/yap/default.nix
+++ b/pkgs/development/compilers/yap/default.nix
@@ -13,7 +13,11 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-tabling=yes" ];
- NIX_CFLAGS_COMPILE = "-fpermissive";
+ # -fcommon: workaround build failure on -fno-common toolchains like upstream
+ # gcc-10. Otherwise build fails as:
+ # ld: libYap.a(pl-dtoa.o):/build/yap-6.3.3/H/pl-yap.h:230: multiple definition of `ATOM_';
+ # libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here
+ NIX_CFLAGS_COMPILE = "-fpermissive -fcommon";
meta = {
homepage = "http://www.dcc.fc.up.pt/~vsc/Yap/";
diff --git a/pkgs/development/libraries/cpp-ipfs-api/default.nix b/pkgs/development/libraries/cpp-ipfs-api/default.nix
deleted file mode 100644
index 315a477e72a..00000000000
--- a/pkgs/development/libraries/cpp-ipfs-api/default.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{ lib, stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }:
-
-stdenv.mkDerivation {
- pname = "cpp-ipfs-api";
- version = "2017-01-04";
-
- src = fetchFromGitHub {
- owner = "vasild";
- repo = "cpp-ipfs-api";
- rev = "96a890f4518665a56581a2a52311eaa65928eac8";
- sha256 = "1z6gbd7npg4pd9wmdyzcp9h12sg84d7a43c69pp4lzqkyqg8pz1g";
- };
-
- nativeBuildInputs = [ cmake ];
- buildInputs = [ curl ];
- propagatedBuildInputs = [ nlohmann_json ];
-
- NIX_CFLAGS_COMPILE = [
- "-Wno-error=range-loop-construct"
- ];
-
- meta = with lib; {
- description = "IPFS C++ API client library";
- homepage = "https://github.com/vasild/cpp-ipfs-api";
- license = licenses.mit;
- platforms = platforms.all;
- };
-}
diff --git a/pkgs/development/libraries/cpp-ipfs-http-client/default.nix b/pkgs/development/libraries/cpp-ipfs-http-client/default.nix
new file mode 100644
index 00000000000..44fcbe5463c
--- /dev/null
+++ b/pkgs/development/libraries/cpp-ipfs-http-client/default.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }:
+
+stdenv.mkDerivation {
+ pname = "cpp-ipfs-http-client";
+ version = "unstable-2022-01-30";
+
+ src = fetchFromGitHub {
+ owner = "vasild";
+ repo = "cpp-ipfs-http-client";
+ rev = "3cdfa7fc6326e49fc81b3c7ca43ce83bdccef6d9";
+ sha256 = "sha256-/oyafnk4SbrvoCh90wkZXNBjknMKA6EEUoEGo/amLUo=";
+ };
+
+ patches = [ ./unvendor-nlohmann-json.patch ];
+
+ postPatch = ''
+ substituteInPlace CMakeLists.txt \
+ --replace '# Fetch "JSON for Modern C++"' "include_directories(${nlohmann_json}/include)"
+ '';
+
+ nativeBuildInputs = [ cmake ];
+ buildInputs = [ curl ];
+ propagatedBuildInputs = [ nlohmann_json ];
+
+ NIX_CFLAGS_COMPILE = [
+ "-Wno-error=range-loop-construct"
+ ];
+
+ meta = with lib; {
+ description = "IPFS C++ API client library";
+ homepage = "https://github.com/vasild/cpp-ipfs-http-client";
+ license = licenses.mit;
+ platforms = [ "x86_64-linux" "x86_64-darwin" ];
+ };
+}
diff --git a/pkgs/development/libraries/cpp-ipfs-http-client/unvendor-nlohmann-json.patch b/pkgs/development/libraries/cpp-ipfs-http-client/unvendor-nlohmann-json.patch
new file mode 100644
index 00000000000..e21b4e9a7a7
--- /dev/null
+++ b/pkgs/development/libraries/cpp-ipfs-http-client/unvendor-nlohmann-json.patch
@@ -0,0 +1,27 @@
+--- source/CMakeLists.txt
++++ source/CMakeLists.txt
+@@ -56,11 +56,6 @@ target_include_directories(${IPFS_API_LIBNAME}
+ )
+
+ # Fetch "JSON for Modern C++"
+-include(FetchContent)
+-message(STATUS "Fetching nlohmann/JSON")
+-# Retrieve Nlohmann JSON
+-FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.10.5/json.tar.xz)
+-FetchContent_MakeAvailable(json)
+
+ # libcurl requires additional libs only for static Windows builds
+ if(WIN32)
+@@ -71,12 +66,11 @@ set_target_properties(${IPFS_API_LIBNAME} PROPERTIES
+ SOVERSION ${PROJECT_VERSION_MAJOR}
+ VERSION ${PROJECT_VERSION}
+ )
+-target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES} ${WINDOWS_CURL_LIBS} nlohmann_json::nlohmann_json)
++target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES} ${WINDOWS_CURL_LIBS})
+ if(NOT DISABLE_INSTALL)
+ install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib)
+ install(FILES include/ipfs/client.h DESTINATION include/ipfs)
+ install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http)
+- install(FILES ${json_SOURCE_DIR}/include/nlohmann/json.hpp DESTINATION include/nlohmann)
+ endif()
+ # Tests, use "CTEST_OUTPUT_ON_FAILURE=1 make test" to see output from failed tests
diff --git a/pkgs/development/libraries/kde-frameworks/kimageformats.nix b/pkgs/development/libraries/kde-frameworks/kimageformats.nix
index 86026bf50f4..cbdaf1da892 100644
--- a/pkgs/development/libraries/kde-frameworks/kimageformats.nix
+++ b/pkgs/development/libraries/kde-frameworks/kimageformats.nix
@@ -1,7 +1,7 @@
{
mkDerivation, lib,
extra-cmake-modules,
- ilmbase, karchive, openexr, libavif, qtbase
+ ilmbase, karchive, openexr, libavif, libheif, qtbase
}:
let inherit (lib) getDev; in
@@ -10,9 +10,12 @@ mkDerivation {
pname = "kimageformats";
nativeBuildInputs = [ extra-cmake-modules ];
- buildInputs = [ karchive openexr libavif qtbase ];
+ buildInputs = [ karchive openexr libavif libheif qtbase ];
outputs = [ "out" ]; # plugins only
CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR";
+ cmakeFlags = [
+ "-DKIMAGEFORMATS_HEIF=ON"
+ ];
meta = with lib; {
broken = versionOlder qtbase.version "5.14";
diff --git a/pkgs/development/libraries/rtrlib/default.nix b/pkgs/development/libraries/rtrlib/default.nix
new file mode 100644
index 00000000000..bb0aec308ae
--- /dev/null
+++ b/pkgs/development/libraries/rtrlib/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchFromGitHub, stdenv, cmake, libssh, openssl }:
+
+stdenv.mkDerivation rec {
+ pname = "rtrlib";
+ version = "0.8.0";
+
+ src = fetchFromGitHub {
+ repo = pname;
+ owner = "rtrlib";
+ rev = "v${version}";
+ sha256 = "sha256-ISb4ojcDvXY/88GbFMrA5V5+SGE6CmE5D+pokDTwotQ=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+ buildInputs = [ libssh openssl ];
+
+ meta = with lib; {
+ description = "An open-source C implementation of the RPKI/Router Protocol client";
+ homepage = "https://github.com/rtrlib/rtrlib";
+ license = licenses.mit;
+ maintainers = with maintainers; [ Anillc ];
+ platforms = platforms.all;
+ };
+}
diff --git a/pkgs/development/libraries/ucommon/default.nix b/pkgs/development/libraries/ucommon/default.nix
index 7306243bca9..2ecf7729f4b 100644
--- a/pkgs/development/libraries/ucommon/default.nix
+++ b/pkgs/development/libraries/ucommon/default.nix
@@ -20,6 +20,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
+ # use C++14 Standard until error handling code gets updated upstream
+ CXXFLAGS = [ "-std=c++14" ];
+
# disable flaky networking test
postPatch = ''
substituteInPlace test/stream.cpp \
diff --git a/pkgs/development/ocaml-modules/genspio/default.nix b/pkgs/development/ocaml-modules/genspio/default.nix
index 963cd1dab13..44742cba04a 100644
--- a/pkgs/development/ocaml-modules/genspio/default.nix
+++ b/pkgs/development/ocaml-modules/genspio/default.nix
@@ -1,27 +1,19 @@
{ lib, fetchFromGitHub, buildDunePackage
-, nonstd, sosa
+, base, fmt
}:
buildDunePackage rec {
pname = "genspio";
- version = "0.0.2";
-
- useDune2 = false;
+ version = "0.0.3";
src = fetchFromGitHub {
owner = "hammerlab";
repo = pname;
rev = "${pname}.${version}";
- sha256 = "0cp6p1f713sfv4p2r03bzvjvakzn4ili7hf3a952b3w1k39hv37x";
+ sha256 = "sha256:1788cnn10idp5i1hggg4pys7k0w8m3h2p4xa42jipfg4cpj7shaf";
};
- minimalOCamlVersion = "4.03";
-
- propagatedBuildInputs = [ nonstd sosa ];
-
- configurePhase = ''
- ocaml please.mlt configure
- '';
+ propagatedBuildInputs = [ base fmt ];
doCheck = true;
diff --git a/pkgs/development/ocaml-modules/stdcompat/default.nix b/pkgs/development/ocaml-modules/stdcompat/default.nix
index eae9b264ba1..3630be368e5 100644
--- a/pkgs/development/ocaml-modules/stdcompat/default.nix
+++ b/pkgs/development/ocaml-modules/stdcompat/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
# build fails otherwise
enableParallelBuilding = false;
- configureFlags = "--libdir=$(OCAMLFIND_DESTDIR)";
+ configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];
meta = {
homepage = "https://github.com/thierry-martinez/stdcompat";
diff --git a/pkgs/development/python-modules/aioesphomeapi/default.nix b/pkgs/development/python-modules/aioesphomeapi/default.nix
index 06389d50677..9d6d3f2d56d 100644
--- a/pkgs/development/python-modules/aioesphomeapi/default.nix
+++ b/pkgs/development/python-modules/aioesphomeapi/default.nix
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "aioesphomeapi";
- version = "10.8.2";
+ version = "10.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "esphome";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-zvilMBx9H2VDmu13IiAiCqXEGkbpAJpGnt4Ea7FlGVI=";
+ sha256 = "sha256-j1YYzyOLuH+COBDXJUpkUx8H2K8F5tC5LB8ysZKi6oI=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/deepdiff/default.nix b/pkgs/development/python-modules/deepdiff/default.nix
index cba0ac56396..c0519332342 100644
--- a/pkgs/development/python-modules/deepdiff/default.nix
+++ b/pkgs/development/python-modules/deepdiff/default.nix
@@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "seperman";
repo = "deepdiff";
rev = "v${version}";
- hash = "sha256-0UBx7sH2iMrLVl5FtHNTwoecLHi8GbInn75G3FSg4gk=";
+ hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
};
postPatch = ''
@@ -49,11 +49,6 @@ buildPythonPackage rec {
pyyaml
];
- disabledTests = [
- # Assertion issue with the decimal places
- "test_get_numeric_types_distance"
- ];
-
meta = with lib; {
description = "Deep Difference and Search of any Python object/data";
homepage = "https://github.com/seperman/deepdiff";
diff --git a/pkgs/development/python-modules/dulwich/default.nix b/pkgs/development/python-modules/dulwich/default.nix
index b10d29a5943..ea3511e843a 100644
--- a/pkgs/development/python-modules/dulwich/default.nix
+++ b/pkgs/development/python-modules/dulwich/default.nix
@@ -17,7 +17,7 @@
}:
buildPythonPackage rec {
- version = "0.20.38";
+ version = "0.20.40";
pname = "dulwich";
format = "setuptools";
@@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- hash = "sha256-c0Z5DYc1yG+7xbcLZ08O+UCWweUJm6cnNJFigjmBf8g=";
+ hash = "sha256-vtcO/gt91RpHvOqbmEqwamdddDi3izLaHLr891D7utc=";
};
LC_ALL = "en_US.UTF-8";
diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix
index 518226f34dd..82791db5bcc 100644
--- a/pkgs/development/python-modules/gcsfs/default.nix
+++ b/pkgs/development/python-modules/gcsfs/default.nix
@@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "gcsfs";
- version = "2022.01.0";
+ version = "2022.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "fsspec";
repo = pname;
rev = version;
- hash = "sha256-wNeK1GdjK9GKaaECcFeBLjFf/h3MbLI5e4MX0UNoTqE=";
+ hash = "sha256-+Bchwsa8Jj7WBWbzyH+GQuqZki4EltMryumKt4Pm1es=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/peaqevcore/default.nix b/pkgs/development/python-modules/peaqevcore/default.nix
index 4b11263017d..956a91cd5b7 100644
--- a/pkgs/development/python-modules/peaqevcore/default.nix
+++ b/pkgs/development/python-modules/peaqevcore/default.nix
@@ -6,14 +6,14 @@
buildPythonPackage rec {
pname = "peaqevcore";
- version = "0.0.23";
+ version = "0.0.24";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- hash = "sha256-z59TJ+P7WNMcTyevi4etWUFUnBJXAVhDOnO4GXjjuR0=";
+ hash = "sha256-rAC0NXkK18DmPiZJbqSZh5O0i6KvMpWvaANWyK3zMXQ=";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/phik/default.nix b/pkgs/development/python-modules/phik/default.nix
index 2919fb5c733..2e0dc2b8b26 100644
--- a/pkgs/development/python-modules/phik/default.nix
+++ b/pkgs/development/python-modules/phik/default.nix
@@ -15,12 +15,14 @@
, ninja
, numba
, pybind11
+, scikit-build
}:
buildPythonPackage rec {
pname = "phik";
version = "0.12.2";
disabled = !isPy3k;
+ format = "pyproject";
src = fetchPypi {
inherit pname version;
@@ -50,10 +52,13 @@ buildPythonPackage rec {
nativeBuildInputs = [
cmake
ninja
+ scikit-build
];
+ pythonImportCheck = [ "phik" ];
+
postInstall = ''
- rm -r $out/bin
+ rm -r $out/bin
'';
meta = with lib; {
diff --git a/pkgs/development/python-modules/ttp-templates/default.nix b/pkgs/development/python-modules/ttp-templates/default.nix
index 46db94782be..45548ee21c2 100644
--- a/pkgs/development/python-modules/ttp-templates/default.nix
+++ b/pkgs/development/python-modules/ttp-templates/default.nix
@@ -1,11 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
-, netmiko
-, pytestCheckHook
-, python
, pythonOlder
-, ttp
}:
buildPythonPackage rec {
@@ -22,24 +18,14 @@ buildPythonPackage rec {
hash = "sha256-Qx+z/srYgD67FjXzYrc8xtA99n8shWK7yWj/r/ETN2U=";
};
- propagatedBuildInputs = [
- ttp
- ];
+ postPatch = ''
+ # Drop circular dependency on ttp
+ substituteInPlace setup.py \
+ --replace '"ttp>=0.6.0"' ""
+ '';
- checkInputs = [
- netmiko
- pytestCheckHook
- ];
-
- pythonImportsCheck = [
- "ttp_templates"
- ];
-
- pytestFlagsArray = [
- # The other tests requires data which is no part of the source
- "test/test_ttp_templates_methods.py"
- "test/test_yang_openconfig_lldp.py"
- ];
+ # Circular dependency on ttp
+ doCheck = false;
meta = with lib; {
description = "Template Text Parser Templates collections";
diff --git a/pkgs/development/python-modules/ttp/default.nix b/pkgs/development/python-modules/ttp/default.nix
index 2157af31811..a484ed9f76a 100644
--- a/pkgs/development/python-modules/ttp/default.nix
+++ b/pkgs/development/python-modules/ttp/default.nix
@@ -1,22 +1,20 @@
{ lib
, buildPythonPackage
-, callPackage
-, fetchFromGitHub
, cerberus
, configparser
, deepdiff
+, fetchFromGitHub
, geoip2
, jinja2
+, netmiko
, openpyxl
-, tabulate
-, yangson
, pytestCheckHook
, pyyaml
+, tabulate
+, ttp-templates
+, yangson
}:
-let
- ttp_templates = callPackage ./templates.nix { };
-in
buildPythonPackage rec {
pname = "ttp";
version = "0.8.4";
@@ -26,7 +24,7 @@ buildPythonPackage rec {
owner = "dmulyalin";
repo = pname;
rev = version;
- sha256 = "sha256-vuKlddqm8KirqAJyvBPfRb5Nw9zo4Fl1bwbfVMhmH9g=";
+ hash = "sha256-vuKlddqm8KirqAJyvBPfRb5Nw9zo4Fl1bwbfVMhmH9g=";
};
propagatedBuildInputs = [
@@ -37,7 +35,7 @@ buildPythonPackage rec {
geoip2
jinja2
# n2g unpackaged
- # netmiko unpackaged
+ netmiko
# nornir unpackaged
openpyxl
tabulate
@@ -51,7 +49,7 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pyyaml
- ttp_templates
+ ttp-templates
];
disabledTestPaths = [
@@ -87,6 +85,8 @@ buildPythonPackage rec {
"test_TTP_CACHE_FOLDER_env_variable_usage"
# requires additional network setup
"test_child_group_do_not_start_if_no_parent_started"
+ # Assertion Error
+ "test_in_threads_parsing"
];
pytestFlagsArray = [
diff --git a/pkgs/development/python-modules/ttp/templates.nix b/pkgs/development/python-modules/ttp/templates.nix
deleted file mode 100644
index 835548d0784..00000000000
--- a/pkgs/development/python-modules/ttp/templates.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-}:
-
-buildPythonPackage rec {
- pname = "ttp-templates";
- version = "0.1.1";
- format = "setuptools";
-
- src = fetchPypi {
- pname = "ttp_templates";
- inherit version;
- sha256 = "0vg7k733i8jqnfz8mpq8kzr2l7b7drk29zkzik91029f6w7li007";
- };
-
- # drop circular dependency on ttp
- postPatch = ''
- substituteInPlace setup.py --replace '"ttp>=0.6.0"' ""
- '';
-
- # circular dependency on ttp
- doCheck = false;
-
- meta = with lib; {
- description = "Template Text Parser Templates";
- homepage = "https://github.com/dmulyalin/ttp_templates";
- license = licenses.mit;
- maintainers = with maintainers; [ hexa ];
- };
-}
diff --git a/pkgs/development/python-modules/whois/default.nix b/pkgs/development/python-modules/whois/default.nix
index b2875819646..7f51e2c61ef 100644
--- a/pkgs/development/python-modules/whois/default.nix
+++ b/pkgs/development/python-modules/whois/default.nix
@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "whois";
- version = "0.9.14";
+ version = "0.9.15";
format = "setuptools";
disabled = pythonOlder "3.7";
@@ -15,8 +15,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "DannyCork";
repo = "python-whois";
- rev = version;
- sha256 = "1df4r2pr356y1c2ys6pzdl93fmx9ci4y75xphc95xn27zvqbpvix";
+ rev = "refs/tags/${version}";
+ sha256 = "sha256-Pfogvo0s678KHO85r4yopEaL4n/2cIY1+CnQu3iB8xc=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/tools/rust/cargo-deny/default.nix b/pkgs/development/tools/rust/cargo-deny/default.nix
index 2aef56fcc1d..ed625cb229e 100644
--- a/pkgs/development/tools/rust/cargo-deny/default.nix
+++ b/pkgs/development/tools/rust/cargo-deny/default.nix
@@ -11,19 +11,19 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-deny";
- version = "0.12.0";
+ version = "0.12.1";
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = pname;
rev = version;
- sha256 = "sha256-8zJvVuEljCa63mQcgK3E3/SHica6DZbNys+PG7E2GtI=";
+ sha256 = "sha256-w64fdjKXiCaM+U28Hte+I0LPqmGKxbCVRUyhNWcVyTc=";
};
# enable pkg-config feature of zstd
cargoPatches = [ ./zstd-pkg-config.patch ];
- cargoSha256 = "sha256-bMm/JWzVrgS8XHV1ZXeGQm79JUC7zL0h6v92tqajXfU=";
+ cargoSha256 = "sha256-K9Ab4L/wnpUqe+gLKhtHX4fOgWXv6ZL9faa58hzdq/0=";
nativeBuildInputs = [ pkg-config ];
diff --git a/pkgs/development/tools/rust/rust-analyzer/default.nix b/pkgs/development/tools/rust/rust-analyzer/default.nix
index acacdcefb41..861a4075990 100644
--- a/pkgs/development/tools/rust/rust-analyzer/default.nix
+++ b/pkgs/development/tools/rust/rust-analyzer/default.nix
@@ -1,5 +1,6 @@
{ lib
, stdenv
+, callPackage
, fetchFromGitHub
, rustPlatform
, CoreServices
@@ -11,14 +12,14 @@
rustPlatform.buildRustPackage rec {
pname = "rust-analyzer-unwrapped";
- version = "2022-05-02";
- cargoSha256 = "sha256-uZCUruIBTNTKYWYb8xQgJ6FsKlRi+Sh5n7m7aVk+hHQ=";
+ version = "2022-05-17";
+ cargoSha256 = "sha256-H0nuS56mvo5YUAUOsEnR4Cv3iFKixoHK83BcM1PFMA8=";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "rust-analyzer";
rev = version;
- sha256 = "sha256-5kAbd/tTc9vkr27ar44hnpXdS0vQg0OLJUMlp0FBjqA=";
+ sha256 = "sha256-vrVpgQYUuJPgK1NMb1nxlCdxjoYo40YkUbZpH2Z2mwM=";
};
patches = [
@@ -54,7 +55,11 @@ rustPlatform.buildRustPackage rec {
runHook postInstallCheck
'';
- passthru.updateScript = ./update.sh;
+ passthru = {
+ updateScript = ./update.sh;
+ # FIXME: Pass overrided `rust-analyzer` once `buildRustPackage` also implements #119942
+ tests.neovim-lsp = callPackage ./test-neovim-lsp.nix { };
+ };
meta = with lib; {
description = "A modular compiler frontend for the Rust language";
diff --git a/pkgs/development/tools/rust/rust-analyzer/test-neovim-lsp.nix b/pkgs/development/tools/rust/rust-analyzer/test-neovim-lsp.nix
new file mode 100644
index 00000000000..6782a7418a6
--- /dev/null
+++ b/pkgs/development/tools/rust/rust-analyzer/test-neovim-lsp.nix
@@ -0,0 +1,49 @@
+{ runCommandNoCC, cargo, neovim, rust-analyzer, rustc }:
+runCommandNoCC "test-neovim-rust-analyzer" {
+ nativeBuildInputs = [ cargo neovim rust-analyzer rustc ];
+
+ testRustSrc = /* rust */ ''
+ fn main() {
+ let mut var = vec![None];
+ var.push(Some("hello".to_owned()));
+ }
+ '';
+
+ nvimConfig = /* lua */ ''
+ vim.lsp.buf_attach_client(vim.api.nvim_get_current_buf(), vim.lsp.start_client({
+ cmd = { "rust-analyzer" },
+ handlers = {
+ ["$/progress"] = function(_, msg, ctx)
+ if msg.token == "rustAnalyzer/Indexing" and msg.value.kind == "end" then
+ vim.cmd("goto 23") -- let mut |var =...
+ vim.lsp.buf.hover()
+ end
+ end,
+ ["textDocument/hover"] = function(_, msg, ctx)
+ -- Keep newlines.
+ io.write(msg.contents.value)
+ vim.cmd("q")
+ end,
+ },
+ on_error = function(code)
+ print("error: " .. code)
+ vim.cmd("q")
+ end
+ }))
+ '';
+
+} ''
+ # neovim requires a writable HOME.
+ export HOME="$(pwd)"
+
+ cargo new --bin test-rust-analyzer
+ cd test-rust-analyzer
+ cat <<<"$testRustSrc" >src/main.rs
+ cat <<<"$nvimConfig" >script.lua
+
+ # `-u` doesn't work
+ result="$(nvim --headless +'lua dofile("script.lua")' src/main.rs)"
+ echo "$result"
+ [[ "$result" == *"var: Vec