Merge master into haskell-updates

main
github-actions[bot] 2 years ago committed by GitHub
commit c959c6ccf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/tests/modules.sh
  2. 6
      lib/types.nix
  3. 38
      nixos/modules/security/wrappers/wrapper.c
  4. 2
      nixos/modules/services/misc/nitter.nix
  5. 2
      nixos/modules/services/networking/ddclient.nix
  6. 9
      nixos/modules/services/x11/display-managers/gdm.nix
  7. 4
      nixos/tests/keepassxc.nix
  8. 4
      pkgs/applications/blockchains/clightning/default.nix
  9. 37
      pkgs/applications/misc/keepassx/community.nix
  10. 56
      pkgs/applications/misc/keepassx/darwin.patch
  11. 40
      pkgs/applications/misc/system76-keyboard-configurator/default.nix
  12. 31
      pkgs/applications/misc/yubioath-desktop/default.nix
  13. 10
      pkgs/applications/networking/browsers/firefox/common.nix
  14. 24
      pkgs/applications/networking/cluster/k0sctl/default.nix
  15. 26
      pkgs/applications/networking/cluster/kube-router/default.nix
  16. 176
      pkgs/applications/networking/cluster/terraform-providers/providers.json
  17. 4
      pkgs/applications/networking/cluster/tilt/default.nix
  18. 14
      pkgs/applications/science/math/lrcalc/default.nix
  19. 10
      pkgs/applications/science/math/sage/default.nix
  20. 46
      pkgs/applications/science/math/sage/patches/Only-test-external-software-when-all-of-sage-is.patch
  21. 2
      pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
  22. 4
      pkgs/applications/science/math/sage/patches/docutils-0.18.1-deprecation.patch
  23. 17
      pkgs/applications/science/math/sage/patches/sphinx-docbuild-subprocesses.patch
  24. 2
      pkgs/applications/science/math/sage/python-modules/sage-docbuild.nix
  25. 2
      pkgs/applications/science/math/sage/sage-env.nix
  26. 89
      pkgs/applications/science/math/sage/sage-src.nix
  27. 15
      pkgs/applications/science/math/sage/sage.nix
  28. 16
      pkgs/applications/science/math/sage/sagedoc.nix
  29. 8
      pkgs/applications/science/math/sage/sagelib.nix
  30. 1
      pkgs/applications/science/misc/root/5.nix
  31. 2
      pkgs/applications/video/makemkv/default.nix
  32. 19
      pkgs/applications/video/mpc-qt/default.nix
  33. 8
      pkgs/build-support/trivial-builders.nix
  34. 4
      pkgs/desktops/gnome/extensions/update-extensions.py
  35. 4
      pkgs/development/coq-modules/interval/default.nix
  36. 99
      pkgs/development/interpreters/bats/default.nix
  37. 4
      pkgs/development/libraries/bullet/default.nix
  38. 4
      pkgs/development/libraries/folly/default.nix
  39. 4
      pkgs/development/libraries/gtk/4.x.nix
  40. 4
      pkgs/development/libraries/libdigidocpp/default.nix
  41. 4
      pkgs/development/nim-packages/jsony/default.nix
  42. 4
      pkgs/development/nim-packages/supersnappy/default.nix
  43. 1
      pkgs/development/python-modules/cheroot/default.nix
  44. 6
      pkgs/development/python-modules/django-anymail/default.nix
  45. 6
      pkgs/development/python-modules/dulwich/default.nix
  46. 7
      pkgs/development/python-modules/embrace/default.nix
  47. 4
      pkgs/development/python-modules/gcal-sync/default.nix
  48. 4
      pkgs/development/python-modules/geocachingapi/default.nix
  49. 8
      pkgs/development/python-modules/ijson/default.nix
  50. 31
      pkgs/development/python-modules/lrcalc-python/default.nix
  51. 4
      pkgs/development/python-modules/manuel/default.nix
  52. 4
      pkgs/development/python-modules/ocrmypdf/default.nix
  53. 4
      pkgs/development/python-modules/pex/default.nix
  54. 4
      pkgs/development/python-modules/pikepdf/default.nix
  55. 6
      pkgs/development/python-modules/pycep-parser/default.nix
  56. 6
      pkgs/development/python-modules/pylsp-mypy/default.nix
  57. 4
      pkgs/development/python-modules/pynx584/default.nix
  58. 4
      pkgs/development/python-modules/pyskyqhub/default.nix
  59. 4
      pkgs/development/python-modules/pywlroots/default.nix
  60. 3
      pkgs/development/python-modules/sanic/default.nix
  61. 6
      pkgs/development/python-modules/torchmetrics/default.nix
  62. 4
      pkgs/development/python-modules/twentemilieu/default.nix
  63. 6
      pkgs/development/tools/fx/default.nix
  64. 4
      pkgs/development/tools/misc/devspace/default.nix
  65. 11
      pkgs/development/tools/ocaml/merlin/4.x.nix
  66. 215
      pkgs/development/tools/systemfd/Cargo.nix
  67. 62
      pkgs/development/tools/systemfd/crates-io.list
  68. 1890
      pkgs/development/tools/systemfd/crates-io.nix
  69. 44
      pkgs/development/tools/systemfd/default.nix
  70. 4
      pkgs/os-specific/linux/microcode/intel.nix
  71. 45
      pkgs/servers/frr/default.nix
  72. 6
      pkgs/servers/libreddit/default.nix
  73. 7
      pkgs/servers/nitter/default.nix
  74. 6
      pkgs/servers/wishlist/default.nix
  75. 6
      pkgs/tools/filesystems/afpfs-ng/default.nix
  76. 23
      pkgs/tools/misc/oci-image-tool/default.nix
  77. 11
      pkgs/tools/networking/cdpr/default.nix
  78. 40
      pkgs/tools/security/clamav/default.nix
  79. 20
      pkgs/tools/security/clamav/remove-freshclam-test.patch
  80. 6
      pkgs/tools/security/gnupg/1.nix
  81. 1
      pkgs/top-level/aliases.nix
  82. 12
      pkgs/top-level/all-packages.nix
  83. 2
      pkgs/top-level/python-packages.nix

@ -313,7 +313,7 @@ checkConfigOutput "bar" config.priorities ./raw.nix
## Option collision
checkConfigError \
'The option .set. in module .*/declare-set.nix. would be a parent of the following options, but its type .attribute set of signed integers. does not support nested options.\n\s*- option[(]s[)] with prefix .set.enable. in module .*/declare-enable-nested.nix.' \
'The option .set. in module .*/declare-set.nix. would be a parent of the following options, but its type .attribute set of signed integer. does not support nested options.\n\s*- option[(]s[)] with prefix .set.enable. in module .*/declare-enable-nested.nix.' \
config.set \
./declare-set.nix ./declare-enable-nested.nix

@ -397,7 +397,7 @@ rec {
listOf = elemType: mkOptionType rec {
name = "listOf";
description = "list of ${elemType.description}s";
description = "list of ${elemType.description}";
check = isList;
merge = loc: defs:
map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
@ -426,7 +426,7 @@ rec {
attrsOf = elemType: mkOptionType rec {
name = "attrsOf";
description = "attribute set of ${elemType.description}s";
description = "attribute set of ${elemType.description}";
check = isAttrs;
merge = loc: defs:
mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
@ -449,7 +449,7 @@ rec {
# error that it's not defined. Use only if conditional definitions don't make sense.
lazyAttrsOf = elemType: mkOptionType rec {
name = "lazyAttrsOf";
description = "lazy attribute set of ${elemType.description}s";
description = "lazy attribute set of ${elemType.description}";
check = isAttrs;
merge = loc: defs:
zipAttrsWith (name: defs:

@ -2,12 +2,12 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdnoreturn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/xattr.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#include <errno.h>
#include <linux/capability.h>
#include <sys/prctl.h>
@ -16,10 +16,7 @@
#include <syscall.h>
#include <byteswap.h>
// Make sure assertions are not compiled out, we use them to codify
// invariants about this program and we want it to fail fast and
// loudly if they are violated.
#undef NDEBUG
#define ASSERT(expr) ((expr) ? (void) 0 : assert_failure(#expr))
extern char **environ;
@ -38,6 +35,12 @@ static char *wrapper_debug = "WRAPPER_DEBUG";
#define LE32_TO_H(x) (x)
#endif
static noreturn void assert_failure(const char *assertion) {
fprintf(stderr, "Assertion `%s` in NixOS's wrapper.c failed.\n", assertion);
fflush(stderr);
abort();
}
int get_last_cap(unsigned *last_cap) {
FILE* file = fopen("/proc/sys/kernel/cap_last_cap", "r");
if (file == NULL) {
@ -167,6 +170,7 @@ int readlink_malloc(const char *p, char **ret) {
}
int main(int argc, char **argv) {
ASSERT(argc >= 1);
char *self_path = NULL;
int self_path_size = readlink_malloc("/proc/self/exe", &self_path);
if (self_path_size < 0) {
@ -181,36 +185,36 @@ int main(int argc, char **argv) {
int len = strlen(wrapper_dir);
if (len > 0 && '/' == wrapper_dir[len - 1])
--len;
assert(!strncmp(self_path, wrapper_dir, len));
assert('/' == wrapper_dir[0]);
assert('/' == self_path[len]);
ASSERT(!strncmp(self_path, wrapper_dir, len));
ASSERT('/' == wrapper_dir[0]);
ASSERT('/' == self_path[len]);
// Make *really* *really* sure that we were executed as
// `self_path', and not, say, as some other setuid program. That
// is, our effective uid/gid should match the uid/gid of
// `self_path'.
struct stat st;
assert(lstat(self_path, &st) != -1);
ASSERT(lstat(self_path, &st) != -1);
assert(!(st.st_mode & S_ISUID) || (st.st_uid == geteuid()));
assert(!(st.st_mode & S_ISGID) || (st.st_gid == getegid()));
ASSERT(!(st.st_mode & S_ISUID) || (st.st_uid == geteuid()));
ASSERT(!(st.st_mode & S_ISGID) || (st.st_gid == getegid()));
// And, of course, we shouldn't be writable.
assert(!(st.st_mode & (S_IWGRP | S_IWOTH)));
ASSERT(!(st.st_mode & (S_IWGRP | S_IWOTH)));
// Read the path of the real (wrapped) program from <self>.real.
char real_fn[PATH_MAX + 10];
int real_fn_size = snprintf(real_fn, sizeof(real_fn), "%s.real", self_path);
assert(real_fn_size < sizeof(real_fn));
ASSERT(real_fn_size < sizeof(real_fn));
int fd_self = open(real_fn, O_RDONLY);
assert(fd_self != -1);
ASSERT(fd_self != -1);
char source_prog[PATH_MAX];
len = read(fd_self, source_prog, PATH_MAX);
assert(len != -1);
assert(len < sizeof(source_prog));
assert(len > 0);
ASSERT(len != -1);
ASSERT(len < sizeof(source_prog));
ASSERT(len > 0);
source_prog[len] = 0;
close(fd_self);

@ -277,7 +277,7 @@ in
Add settings here to override NixOS module generated settings.
Check the official repository for the available settings:
https://github.com/zedeus/nitter/blob/master/nitter.conf
https://github.com/zedeus/nitter/blob/master/nitter.example.conf
'';
};

@ -181,7 +181,7 @@ with lib;
};
verbose = mkOption {
default = true;
default = false;
type = bool;
description = ''
Print verbose information.

@ -140,8 +140,13 @@ in
environment = {
GDM_X_SERVER_EXTRA_ARGS = toString
(filter (arg: arg != "-terminate") cfg.xserverArgs);
# GDM is needed for gnome-login.session
XDG_DATA_DIRS = "${gdm}/share:${cfg.sessionData.desktops}/share:${pkgs.gnome.gnome-control-center}/share";
XDG_DATA_DIRS = lib.makeSearchPath "share" [
gdm # for gnome-login.session
cfg.sessionData.desktops
pkgs.gnome.gnome-control-center # for accessibility icon
pkgs.gnome.adwaita-icon-theme
pkgs.hicolor-icon-theme # empty icon theme as a base
];
} // optionalAttrs (xSessionWrapper != null) {
# Make GDM use this wrapper before running the session, which runs the
# configured setupCommands. This relies on a patched GDM which supports

@ -62,7 +62,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
machine.send_key("tab")
machine.send_chars("/home/alice/foo.keyfile")
machine.send_key("ret")
# Passwords folder is displayed
machine.wait_for_text("Passwords")
# Database is unlocked (doesn't have "[Locked]" in the title anymore)
machine.wait_for_text("foo.kdbx - KeePassXC")
'';
})

@ -21,11 +21,11 @@ let
in
stdenv.mkDerivation rec {
pname = "clightning";
version = "0.11.0.1";
version = "0.11.1";
src = fetchurl {
url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
sha256 = "e2ad6eead19a0cd8869e291c27d318cf553bb015339c1f0e8d8b30e7bc0910d8";
sha256 = "0vsh6gpv3458pfc5cggay9pw7bxjzyxpcniks9b2s3y1rxwk15xi";
};
# when building on darwin we need dawin.cctools to provide the correct libtool

@ -5,34 +5,31 @@
, darwin
, asciidoctor
, botan2
, curl
, glibcLocales
, libXi
, libXtst
, libargon2
, libgcrypt
, libgpg-error
, libsodium
, libyubikey
, libusb1
, minizip
, pcsclite
, pkg-config
, qrencode
, qtbase
, qtmacextras
, qtsvg
, qtx11extras
, quazip
, readline
, wrapGAppsHook
, wrapQtAppsHook
, yubikey-personalization
, zlib
, withKeePassBrowser ? true
, withKeePassKeeShare ? true
, withKeePassKeeShareSecure ? true
, withKeePassSSHAgent ? true
, withKeePassNetworking ? true
, withKeePassTouchID ? true
, withKeePassYubiKey ? true
, withKeePassFDOSecrets ? true
, nixosTests
@ -42,13 +39,13 @@ with lib;
stdenv.mkDerivation rec {
pname = "keepassxc";
version = "2.6.6";
version = "2.7.1";
src = fetchFromGitHub {
owner = "keepassxreboot";
repo = "keepassxc";
rev = version;
sha256 = "15rm3avdmc2x2n92zq6w1zbcranak4j6dds2sxmgdqi1ffc0a3ci";
sha256 = "sha256-BOtehDzlWhhfXj8TOFvFN4f86Hl2EC3rO4qUIl9fqq4=";
};
NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
@ -66,15 +63,12 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DKEEPASSXC_BUILD_TYPE=Release"
"-DWITH_GUI_TESTS=ON"
"-DWITH_XC_AUTOTYPE=ON"
"-DWITH_XC_UPDATECHECK=OFF"
"-DWITH_XC_YUBIKEY=ON"
]
++ (optional withKeePassBrowser "-DWITH_XC_BROWSER=ON")
++ (optional withKeePassKeeShare "-DWITH_XC_KEESHARE=ON")
++ (optional withKeePassKeeShareSecure "-DWITH_XC_KEESHARE_SECURE=ON")
++ (optional withKeePassNetworking "-DWITH_XC_NETWORKING=ON")
++ (optional (withKeePassTouchID && stdenv.isDarwin) "-DWITH_XC_TOUCHID=ON")
++ (optional (withKeePassYubiKey && stdenv.isLinux) "-DWITH_XC_YUBIKEY=ON")
++ (optional (withKeePassFDOSecrets && stdenv.isLinux) "-DWITH_XC_FDOSECRETS=ON")
++ (optional withKeePassSSHAgent "-DWITH_XC_SSHAGENT=ON");
@ -95,26 +89,22 @@ stdenv.mkDerivation rec {
buildInputs = [
curl
glibcLocales
botan2
libXi
libXtst
libargon2
libgcrypt
libgpg-error
libsodium
libyubikey
minizip
pcsclite
qrencode
qtbase
qtsvg
qtx11extras
readline
yubikey-personalization
zlib
]
++ optional withKeePassKeeShareSecure quazip
++ optional stdenv.isLinux libusb1
++ optional stdenv.isDarwin qtmacextras
++ optional (stdenv.isDarwin && withKeePassTouchID)
darwin.apple_sdk.frameworks.LocalAuthentication;
++ optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication;
passthru.tests = nixosTests.keepassxc;
@ -131,5 +121,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
maintainers = with maintainers; [ jonafato turion ];
platforms = platforms.linux ++ platforms.darwin;
broken = stdenv.isDarwin; # see to https://github.com/NixOS/nixpkgs/issues/172165
};
}

@ -8,46 +8,30 @@ index 74b1a7ff..0a713a32 100644
elseif(APPLE AND WITH_APP_BUNDLE)
+ set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/Applications")
set(BUNDLE_INSTALL_DIR "${PROGNAME}.app/Contents")
set(CMAKE_INSTALL_MANDIR "${PROGNAME}.app/Contents/Resources/man")
set(CLI_INSTALL_DIR "${PROGNAME}.app/Contents/MacOS")
@@ -369,12 +370,6 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_INSTALL_MANDIR "${BUNDLE_INSTALL_DIR}/Resources/man")
set(CLI_INSTALL_DIR "${BUNDLE_INSTALL_DIR}/MacOS")
@@ -470,11 +470,6 @@ set(CMAKE_AUTORCC ON)
if(APPLE)
set(CMAKE_MACOSX_RPATH TRUE)
- find_program(MACDEPLOYQT_EXE macdeployqt HINTS ${Qt5_PREFIX}/bin ENV PATH)
- find_program(MACDEPLOYQT_EXE macdeployqt HINTS ${Qt5_PREFIX}/bin ${Qt5_PREFIX}/tools/qt5/bin ENV PATH)
- if(NOT MACDEPLOYQT_EXE)
- message(FATAL_ERROR "macdeployqt is required to build on macOS")
- else()
- message(STATUS "Using macdeployqt: ${MACDEPLOYQT_EXE}")
- endif()
elseif(MINGW)
find_program(WINDEPLOYQT_EXE windeployqt HINTS ${Qt5_PREFIX}/bin ENV PATH)
if(NOT WINDEPLOYQT_EXE)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f142f368..0742512d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -351,11 +351,6 @@ if(APPLE AND WITH_APP_BUNDLE)
set(CPACK_PACKAGE_FILE_NAME "${PROGNAME}-${KEEPASSXC_VERSION}")
include(CPack)
- message(STATUS "Using macdeployqt: ${MACDEPLOYQT_EXE}")
set(MACDEPLOYQT_EXTRA_BINARIES "")
elseif(WIN32)
find_program(WINDEPLOYQT_EXE windeployqt HINTS ${Qt5_PREFIX}/bin ${Qt5_PREFIX}/tools/qt5/bin ENV PATH)
diff --git a/src/post_install/CMakeLists.txt b/src/post_install/CMakeLists.txt
index 359c891f..a6a061a3 100644
--- a/src/post_install/CMakeLists.txt
+++ b/src/post_install/CMakeLists.txt
@@ -1,7 +1,7 @@
# The install commands in this subdirectory will be executed after all the install commands in the
# current scope are ran. It is required for correct functtioning of macdeployqt.
- add_custom_command(TARGET ${PROGNAME}
- POST_BUILD
- COMMAND ${MACDEPLOYQT_EXE} ${PROGNAME}.app
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src
- COMMENT "Deploying app bundle")
endif()
install(TARGETS ${PROGNAME}
diff --git a/src/autotype/mac/CMakeLists.txt b/src/autotype/mac/CMakeLists.txt
index 7427450a..a0a58d71 100644
--- a/src/autotype/mac/CMakeLists.txt
+++ b/src/autotype/mac/CMakeLists.txt
@@ -8,7 +8,6 @@ if(WITH_APP_BUNDLE)
add_custom_command(TARGET keepassx-autotype-cocoa
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libkeepassx-autotype-cocoa.so ${PLUGIN_INSTALL_DIR}
- COMMAND ${MACDEPLOYQT_EXE} ${PROGNAME}.app -executable=${PLUGIN_INSTALL_DIR}/libkeepassx-autotype-cocoa.so -no-plugins
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src
COMMENT "Deploying autotype plugin")
else()
-if(APPLE AND WITH_APP_BUNDLE)
+if(FALSE)
# Run macdeloyqt on the main app and any extra binaries and plugins as specified by the
# _MACDEPLOYQT_EXTRA_BINARIES global property.
# All install(TARGETS) calls should have already been called.

@ -0,0 +1,40 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, gtk3, glib, wrapGAppsHook, libusb1, hidapi, udev, pkgconfig }:
# system76-keyboard-configurator tries to spawn a daemon as root via pkexec, so
# your system needs a PolicyKit authentication agent running for the
# configurator to work.
rustPlatform.buildRustPackage rec {
pname = "system76-keyboard-configurator";
version = "1.0.0";
src = fetchFromGitHub {
owner = "pop-os";
repo = "keyboard-configurator";
rev = "v${version}";
sha256 = "sha256-CVCXNPmc/0T8vkxfU+i1nSbfusZGFVkLEveSoCePK0M=";
};
nativeBuildInputs = [
pkgconfig
glib # for glib-compile-resources
wrapGAppsHook
];
buildInputs = [
gtk3
hidapi
libusb1
udev
];
cargoSha256 = "sha256-/p2cVxOvWKkcVOYIR0N8tQSCniw+QhXhC+pus4NsQ8k=";
meta = with lib; {
description = "Keyboard configuration application for System76 keyboards and laptops";
homepage = "https://github.com/pop-os/keyboard-configurator";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ mirrexagon ];
platforms = platforms.linux;
};
}

@ -1,27 +1,38 @@
{ lib, stdenv, fetchurl, mkDerivation
, qmake, qtbase, qtquickcontrols2, qtgraphicaleffects
, python3, pyotherside
, pcsclite, yubikey-personalization
, yubikey-manager, makeWrapper }:
{ lib
, stdenv
, fetchurl
, mkDerivation
, qmake
, qtbase
, qtquickcontrols2
, qtgraphicaleffects
, qtmultimedia
, python3
, pyotherside
, pcsclite
, yubikey-personalization
, yubikey-manager
, makeWrapper
}:
mkDerivation rec {
pname = "yubioath-desktop";
version = "5.0.5";
version = "5.1.0";
src = fetchurl {
url = "https://developers.yubico.com/yubioath-desktop/Releases/yubioath-desktop-${version}.tar.gz";
sha256 = "05xs6xh9pi50h0668arirj0gnz11adpixgsdkds072077gasdm0g";
hash = "sha256-Lm9F4eaG9T5brAV7XDAkoj0WClmXEYIhuUzh2rk0oc0=";
};
doCheck = false;
buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects python3 ];
buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects qtmultimedia python3 ];
nativeBuildInputs = [ qmake makeWrapper python3.pkgs.wrapPython ];
postPatch = ''
substituteInPlace deployment.pri \
--replace '/usr/bin' "$out/bin"
substituteInPlace QZXing/QZXing-components.pri \
--replace 'target.path = $$PREFIX/lib' 'target.path = $$PREFIX/bin'
'';
pythonPath = [ yubikey-manager ];

@ -171,8 +171,8 @@ buildStdenv.mkDerivation ({
outputs = [
"out"
"symbols"
];
]
++ lib.optionals crashreporterSupport [ "symbols" ];
# Add another configure-build-profiling run before the final configure phase if we build with pgo
preConfigurePhases = lib.optionals pgoSupport [
@ -202,7 +202,6 @@ buildStdenv.mkDerivation ({
nativeBuildInputs = [
autoconf
cargo
dump_syms
llvmPackages.llvm # llvm-objdump
makeWrapper
nodejs
@ -216,6 +215,7 @@ buildStdenv.mkDerivation ({
which
wrapGAppsHook
]
++ lib.optionals crashreporterSupport [ dump_syms ]
++ lib.optionals pgoSupport [ xvfb-run ]
++ extraNativeBuildInputs;
@ -421,11 +421,11 @@ buildStdenv.mkDerivation ({
# Generate build symbols once after the final build
# https://firefox-source-docs.mozilla.org/crash-reporting/uploading_symbol.html
preInstall = ''
preInstall = lib.optionalString crashreporterSupport ''
./mach buildsymbols
mkdir -p $symbols/
cp mozobj/dist/*.crashreporter-symbols.zip $symbols/
'' + ''
cd mozobj
'';

@ -1,20 +1,29 @@
{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
, installShellFiles
}:
buildGoModule rec {
pname = "k0sctl";
version = "0.11.4";
version = "0.12.6";
src = fetchFromGitHub {
owner = "k0sproject";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Fk1aYSa3LqzxiHtlzH5pcNtodOprjfnCFh4UMqCa6Rc=";
sha256 = "sha256-TkkMO6xBHY5t5Rpd0ieSDXMrnQ+Xdq+65Rk93ZkYcUs=";
};
vendorSha256 = "sha256-21C6wZ8lKQnbUg3aD0ZFVOgopblXyWk4WP/ubZVk3Yk=";
vendorSha256 = "sha256-nTAuvHcsJiW0XYX5GM1SL8cnOhwdrj6iw8tuAkEWNzQ=";
patches = [
(fetchpatch {
url = "https://github.com/k0sproject/${pname}/commit/22c694ab0335a1e6146d0d3f939ef79d2c005a3d.patch";
sha256 = "sha256-Ftq/vbQd5ArdHboDt6NdyuqpFalHVnsQBdpmyDG/t5Q=";
})
];
ldflags = [
"-s"
@ -23,6 +32,15 @@ buildGoModule rec {
"-X github.com/k0sproject/k0sctl/version.Version=${version}"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
for shell in bash zsh fish; do
installShellCompletion --cmd ${pname} \
--$shell <($out/bin/${pname} completion --shell $shell)
done
'';
meta = with lib; {
description = "A bootstrapping and management tool for k0s clusters.";
homepage = "https://k0sproject.io/";

@ -1,23 +1,33 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
buildGoPackage rec {
buildGoModule rec {
pname = "kube-router";
version = "1.2.2";
goPackagePath = "github.com/cloudnativelabs/kube-router";
version = "1.4.0";
src = fetchFromGitHub {
owner = "cloudnativelabs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/VToLQexvRtcBU+k8WnGEcfLfxme/hgRnhU8723BEFU=";
sha256 = "sha256-WBnJPCZHtJWckoFvE8e+eAa2EC/RA7yOMlW+Cemw53Q=";
};
vendorSha256 = "sha256-5co+288KZf/dx/jZ7xIGh6kxuW3DdbpAsrZgYob3nWk=";
CGO_ENABLED = 0;
ldflags = [
"-X ${goPackagePath}/pkg/cmd.version=${version}"
"-X ${goPackagePath}/pkg/cmd.buildDate=Nix"
"-s"
"-w"
"-X github.com/cloudnativelabs/kube-router/pkg/version.Version=${version}"
"-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate=Nix"
];
checkFlags = [ "-short" ];
passthru.tests.version = testers.testVersion {
package = kube-router;
};
meta = with lib; {
homepage = "https://www.kube-router.io/";
description = "All-in-one router, firewall and service proxy for Kubernetes";

@ -3,10 +3,10 @@
"owner": "CiscoDevNet",
"provider-source-address": "registry.terraform.io/CiscoDevNet/aci",
"repo": "terraform-provider-aci",
"rev": "v2.1.0",
"sha256": "sha256-7fOvTEinJUpSaCnlP+191VTSEpE4z11+HUcH2iTFj60=",
"rev": "v2.2.1",
"sha256": "sha256-WYKlkvGmTeaI4+7uWLy6/y+NtFb9n3Lu9lrwSR8Vg/0=",
"vendorSha256": null,
"version": "2.1.0"
"version": "2.2.1"
},
"acme": {
"owner": "vancluever",
@ -30,10 +30,10 @@
"owner": "aiven",
"provider-source-address": "registry.terraform.io/aiven/aiven",
"repo": "terraform-provider-aiven",
"rev": "v2.7.3",
"sha256": "sha256-ZAYnP2XEa2eJ0YZkqXQedRysmQI31RQ1osg/TqCqthE=",
"vendorSha256": "sha256-nBVLgOrtINrDziQLdqo5rFWfeY/cOdBW/XVDjtNaNhE=",
"version": "2.7.3"
"rev": "v3.0.0",
"sha256": "sha256-k3F6AUcGAddDD3Wy1THgTlcNzDBB403Vy+6c+avi+vQ=",
"vendorSha256": "sha256-gVZpN7Hwi+PbJDgEHSJRYq0tC1GVcetfPBY5pGhMPAc=",
"version": "3.0.0"
},
"akamai": {
"owner": "akamai",
@ -49,10 +49,10 @@
"owner": "aliyun",
"provider-source-address": "registry.terraform.io/aliyun/alicloud",
"repo": "terraform-provider-alicloud",
"rev": "v1.166.0",
"sha256": "sha256-+aRRsN3ALTmQOnDciHjoVFKV/W+/gjtdZeg3eyJ+0fY=",
"vendorSha256": "sha256-2w8o0Fc61ayyUyE4RVcmV4A0heuaIXnOZX040l2ws/Y=",
"version": "1.166.0"
"rev": "v1.167.0",
"sha256": "sha256-l2wCcYcAlKQTKkD+3yFi4zBkMVpq27Ygld1UjeD6IHM=",
"vendorSha256": "sha256-qZNYfSlUkCu7FudbKF4IOgK1xWM5LqUghclOeGOxYXg=",
"version": "1.167.0"
},
"ansible": {
"owner": "nbering",
@ -94,19 +94,19 @@
"owner": "AviatrixSystems",
"provider-source-address": "registry.terraform.io/AviatrixSystems/aviatrix",
"repo": "terraform-provider-aviatrix",
"rev": "v2.21.2",
"sha256": "sha256-crC/FKAahv1E7TiLf1XaP5ltrXPuudfki2BdggOW+v4=",
"rev": "v2.22.0",
"sha256": "sha256-ZJs9XtoftMihY9VwWw0lPxH2Nu6NmcEcchsRg71os0c=",
"vendorSha256": null,
"version": "2.21.2"
"version": "2.22.0"
},
"aws": {
"owner": "hashicorp",
"provider-source-address": "registry.terraform.io/hashicorp/aws",
"repo": "terraform-provider-aws",
"rev": "v4.13.0",
"sha256": "sha256-KEu+7hKMWsrpS1WYxj3El7M43Chy9HTBjePhWO6bXMo=",
"vendorSha256": "sha256-Ez6uCriNm1OJ2EyMAyjXihzJ/Pzf2p/oAvJ3HN6fDnA=",
"version": "4.13.0"
"rev": "v4.14.0",
"sha256": "sha256-9xJVJw2kIutmmiKGvRBKS+/oyGSq0dipeCn2Gmtk1AU=",
"vendorSha256": "sha256-+YINrbj52ionuQbcgck6Dp2h88+LS5tXPmoVHXCAXOk=",
"version": "4.14.0"
},
"azuread": {
"owner": "hashicorp",
@ -121,10 +121,10 @@
"owner": "hashicorp",
"provider-source-address": "registry.terraform.io/hashicorp/azurerm",
"repo": "terraform-provider-azurerm",
"rev": "v3.5.0",
"sha256": "sha256-LF2Mqj/w1AtoYVGkZJsFpz81cfoUR80PURIsYoIYfsI=",
"rev": "v3.6.0",
"sha256": "sha256-brC9HZbyettgvwuFjrPxeRg/msQ1leD7F/h9aUxXAYo=",
"vendorSha256": null,
"version": "3.5.0"
"version": "3.6.0"
},
"azurestack": {
"owner": "hashicorp",
@ -157,10 +157,10 @@
"owner": "DrFaust92",
"provider-source-address": "registry.terraform.io/DrFaust92/bitbucket",
"repo": "terraform-provider-bitbucket",
"rev": "v2.15.0",
"sha256": "sha256-m9LNW73CZHfOHX7qIn5Xm5JbMoV6ADGpxL9HNn8E+kA=",
"vendorSha256": "sha256-L8QYz1xgw8ZQjrU33uP18XxNUjImPYATZ02h46G4aXs=",
"version": "2.15.0"
"rev": "v2.17.0",
"sha256": "sha256-nzwfhwiszzhoobq2PlgtKfCch46fLoBVbembzdnkrD4=",
"vendorSha256": "sha256-LLhnF0/tj44vN36yss1JzNvDYy64Iuk5WVRhehf0wkk=",
"version": "2.17.0"
},
"brightbox": {
"owner": "brightbox",
@ -384,10 +384,10 @@
"owner": "fastly",
"provider-source-address": "registry.terraform.io/fastly/fastly",
"repo": "terraform-provider-fastly",
"rev": "v1.1.4",
"sha256": "sha256-sLVeVXVCvhSx51B4unYEOs0UpNsChF9guB22gpsratw=",
"rev": "v2.0.0",
"sha256": "sha256-sk146gyBgMWV+EJUrQuC6XY3rRCegezYLympPqqkI2s=",
"vendorSha256": null,
"version": "1.1.4"
"version": "2.0.0"
},
"flexibleengine": {
"owner": "FlexibleEngineCloud",
@ -512,10 +512,10 @@
"owner": "loafoe",
"provider-source-address": "registry.terraform.io/loafoe/htpasswd",
"repo": "terraform-provider-htpasswd",
"rev": "v1.0.2",
"sha256": "sha256-U8rArNTOmiB06Vrvet6PnkIuylRzswJvVptijvcuVFQ=",
"vendorSha256": "sha256-rotGWkaNbsU+9tGENvkNkR7C3d6334hfPNcvJaZDSKw=",
"version": "1.0.2"
"rev": "v1.0.3",
"sha256": "sha256-rh1AuD2azYj9bCFPFI9z/1cx6K/pHAEixUG1JXoyPEw=",
"vendorSha256": "sha256-FBWwgULCuNilfrGNMETJk7SSOIRFYGpD2L9ExeyFWqE=",
"version": "1.0.3"
},
"http": {
"owner": "hashicorp",
@ -530,10 +530,10 @@
"owner": "huaweicloud",
"provider-source-address": "registry.terraform.io/huaweicloud/huaweicloud",
"repo": "terraform-provider-huaweicloud",
"rev": "v1.35.2",
"sha256": "sha256-D1ZaYz+leYU2UNq9c589KVISSNdcjFnDO4JccSVRPYw=",
"rev": "v1.36.0",
"sha256": "sha256-bf/w6BxXOL/Fup8NmYi86tGK3HIYGaYWUSAZ0yUazb8=",
"vendorSha256": null,
"version": "1.35.2"
"version": "1.36.0"
},
"huaweicloudstack": {
"owner": "huaweicloud",
@ -584,10 +584,10 @@
"owner": "Mongey",
"provider-source-address": "registry.terraform.io/Mongey/kafka",
"repo": "terraform-provider-kafka",
"rev": "v0.4.3",
"sha256": "sha256-6JPwj1BtKOICNIDf7k0gEjVAQAeOZ++f9wvX5aVgOjM=",
"vendorSha256": "sha256-Uw3QFtC1tYtx69vxH3NktTbaav8aLAUagagL0c2gjJ0=",
"version": "0.4.3"
"rev": "v0.5.0",
"sha256": "sha256-1SZkCuAmYlfzYVpS+qrNN+vl3zrFZGUgdrrgKj0VRUE=",
"vendorSha256": "sha256-6wccODr/eJUh5eeDGDCuuK2pCFmvPlXWmdAUnjBHJ5E=",
"version": "0.5.0"
},
"kafka-connect": {
"owner": "Mongey",
@ -602,10 +602,10 @@
"owner": "mrparkers",
"provider-source-address": "registry.terraform.io/mrparkers/keycloak",
"repo": "terraform-provider-keycloak",
"rev": "v3.8.0",
"sha256": "sha256-TVSP0oORtiVkPGjgiHHJAsaWDhlN5lnpC3eJ4Ogf2Ss=",
"rev": "v3.8.1",
"sha256": "sha256-++yoMIn6K4VwAGyRVe/MUjMU46gBeHjIRF2nrXktC7E=",
"vendorSha256": "sha256-8x0MlwAzeA2O6wXXHSk++K0ePmzE9/2lfo2ID83LzRM=",
"version": "3.8.0"
"version": "3.8.1"
},
"ksyun": {
"owner": "kingsoftcloud",
@ -656,10 +656,10 @@
"owner": "linode",
"provider-source-address": "registry.terraform.io/linode/linode",
"repo": "terraform-provider-linode",
"rev": "v1.27.1",
"sha256": "sha256-rEXGKytKdlHO3RcZT+3e85cGfQ6b7mhdcFK+unw44ug=",
"rev": "v1.27.2",
"sha256": "sha256-Do9HOtgnSNnSUp3SSVwyzx9LPFSig/tO3GSigUrRcf4=",
"vendorSha256": "sha256-ZJQAZk4TaKT+hLM46gtV1XmBCtwuKwtoom9tPGaOWhc=",
"version": "1.27.1"
"version": "1.27.2"
},
"linuxbox": {
"owner": "numtide",
@ -728,10 +728,10 @@
"owner": "aminueza",
"provider-source-address": "registry.terraform.io/aminueza/minio",
"repo": "terraform-provider-minio",
"rev": "v1.5.1",
"sha256": "sha256-guSUdCBbfgwlrBW/592SqS7LSP7mB8cufrDC48K61Is=",
"vendorSha256": "sha256-Xp/Vl+z+hqElg/iCDBTtB6Xy2Ppk1oUAndVQM5hvlRg=",
"version": "1.5.1"
"rev": "v1.5.2",
"sha256": "sha256-QERV6Q/vYm1DWV91aYFCgZtFfnK9V2ATNsIAbuGzgdY=",
"vendorSha256": "sha256-SB7R466O3CbVwk6JSWXiFK4AD0rf6zijVfQW0rlEsVA=",
"version": "1.5.2"
},
"mongodbatlas": {
"owner": "mongodb",
@ -755,10 +755,10 @@
"owner": "NaverCloudPlatform",
"provider-source-address": "registry.terraform.io/NaverCloudPlatform/ncloud",
"repo": "terraform-provider-ncloud",
"rev": "v2.2.7",
"sha256": "sha256-5WZOZBFZkJtPdWmxznv/ML6d+UTr+qw+SbBuaG+bGS8=",
"rev": "v2.2.8",
"sha256": "sha256-G12/+tNSMEPCPCJH//MhRKJoRSex3mS7BZt0C2o0pF0=",
"vendorSha256": "sha256-ovHg4GcbMzjEi+qJBpdqhR0YUakZCdnpc10SCu8FP8I=",
"version": "2.2.7"
"version": "2.2.8"
},
"netlify": {
"owner": "AegirHealth",
@ -773,10 +773,10 @@
"owner": "newrelic",
"provider-source-address": "registry.terraform.io/newrelic/newrelic",
"repo": "terraform-provider-newrelic",
"rev": "v2.44.0",
"sha256": "sha256-CR1GPm8K/9ZOFYvgKqMW63sbnRx0HyAYYESC/ZnBNYI=",
"vendorSha256": "sha256-2m5T6+GJTUDS345GDOW7Yf8X+JpxvtdYvInBjNvNXlg=",
"version": "2.44.0"
"rev": "v2.45.1",
"sha256": "sha256-KA4uvhK54JgzjAeIMvlLWQjul8ZZFbvmXyQTqOonxYY=",
"vendorSha256": "sha256-8nEbs5lDpXZ49QkIC1oRxZm+gVGx9xqDHe6jK8wWOA8=",
"version": "2.45.1"
},
"nomad": {
"owner": "hashicorp",
@ -800,10 +800,10 @@
"owner": "vmware",
"provider-source-address": "registry.terraform.io/vmware/nsxt",
"repo": "terraform-provider-nsxt",
"rev": "v3.2.6",
"sha256": "sha256-1uQMjzqMJ1NQVVCXy5aHrrZ4vDK5s1JqUnLyYf1qLVw=",
"rev": "v3.2.7",
"sha256": "sha256-Og/U9bmaZIN7b/JcMnNkt6c3/H+toe4dFYNaQYfxLPM=",
"vendorSha256": null,
"version": "3.2.6"
"version": "3.2.7"
},
"null": {
"owner": "hashicorp",
@ -828,10 +828,10 @@
"owner": "oracle",
"provider-source-address": "registry.terraform.io/oracle/oci",
"repo": "terraform-provider-oci",
"rev": "v4.74.0",
"sha256": "sha256-hZpEhhI2pqOPLQm6XnVGIccyC1kVmLusUzF3KRbAHys=",
"rev": "v4.75.0",
"sha256": "sha256-tcDo7yvlobHf4+0BuPdifrkA8UPhI0txRCBgToTjIcw=",
"vendorSha256": null,
"version": "4.74.0"
"version": "4.75.0"
},
"okta": {
"owner": "okta",
@ -927,10 +927,10 @@
"owner": "PaloAltoNetworks",
"provider-source-address": "registry.terraform.io/PaloAltoNetworks/panos",
"repo": "terraform-provider-panos",
"rev": "v1.10.0",
"sha256": "1nh1kc8pz10014p6dw8l2qdiqxdgcj5yy3da2qhbarwn0qm9fs36",
"rev": "v1.10.1",
"sha256": "sha256-acxObc7cgZgyxoCQusrkUzFC68cT3WhExiw2LscKoiQ=",
"vendorSha256": null,
"version": "1.10.0"
"version": "1.10.1"
},
"pass": {
"owner": "camptocamp",
@ -999,10 +999,10 @@
"owner": "scaleway",
"provider-source-address": "registry.terraform.io/scaleway/scaleway",
"repo": "terraform-provider-scaleway",
"rev": "v2.2.1-rc.3",
"sha256": "sha256-XprfY4Zy3PIrIJA2F1tnwafg4wYuzrm9nwVZULdX1D0=",
"vendorSha256": "sha256-H5KAo2rpgFGYmOgGOx9Z5LuApmftuYA6PfYCjnr7zC0=",
"version": "2.2.1-rc.3"
"rev": "v2.2.1",
"sha256": "sha256-a3tSxGTRYQeGfaJOR8z1Qd0SeuoiLwrEbdlw3B9gc2A=",
"vendorSha256": "sha256-D/pE1uEpkWIuICNJsuWVHfRNGPf73YliFxqODkl+4QY=",
"version": "2.2.1"
},
"secret": {
"owner": "numtide",
@ -1071,19 +1071,19 @@
"owner": "carlpett",
"provider-source-address": "registry.terraform.io/carlpett/sops",
"repo": "terraform-provider-sops",
"rev": "v0.7.0",
"sha256": "sha256-Nkqc4w6dHsNEVsvmJcxLa9X9/qHProaZyOIoAADX52M=",
"vendorSha256": "sha256-ZBH8lAHYMVWsjyHkx17gX+0NstoC6PjdSmzCoShuFYQ=",
"version": "0.7.0"
"rev": "v0.7.1",
"sha256": "sha256-6FuThi6iuuUGcMhswAk3Z6Lxth/2nuI57A02Xu2s+/U=",
"vendorSha256": "sha256-NO1r/EWLgH1Gogru+qPeZ4sW7FuDENxzNnpLSKstnE8=",
"version": "0.7.1"
},
"spotinst": {
"owner": "spotinst",
"provider-source-address": "registry.terraform.io/spotinst/spotinst",
"repo": "terraform-provider-spotinst",
"rev": "v1.73.2",
"sha256": "sha256-Q5DNFJ1g6jfHQVYF5Xf5Phx/4b2nbUvE651JNp/zgJg=",
"rev": "v1.73.3",
"sha256": "sha256-J7hswjjyWOZrsqnhMGAyXnvrVwLRY9jGIdtwN7Dympc=",
"vendorSha256": "sha256-szdzI/42RExYQlHnm178RM3wlKOLax+nwgRVzonxXoI=",
"version": "1.73.2"
"version": "1.73.3"
},
"stackpath": {
"owner": "stackpath",
@ -1107,10 +1107,10 @@
"owner": "SumoLogic",
"provider-source-address": "registry.terraform.io/SumoLogic/sumologic",
"repo": "terraform-provider-sumologic",
"rev": "v2.14.0",
"sha256": "sha256-rLRU51l4cOBrC+HxVgtAay1L6VJt6qVgWUeYfJ9zSmE=",
"rev": "v2.15.0",
"sha256": "sha256-VAYU1v5uCIcbeLri6tG5RIAgDP4SzZxQDtK9P5gdSPc=",
"vendorSha256": "sha256-7DGY+L41bJJrtLwdWgu2aMCefgcmtR6tmH12foi68Kc=",
"version": "2.14.0"
"version": "2.15.0"
},
"template": {
"owner": "hashicorp",
@ -1125,10 +1125,10 @@
"owner": "tencentcloudstack",
"provider-source-address": "registry.terraform.io/tencentcloudstack/tencentcloud",
"repo": "terraform-provider-tencentcloud",
"rev": "v1.72.1",
"sha256": "sha256-vCCIHp8tpAn7PIIBMVXRSI9G420E1ijfYow9bfC3RKs=",
"rev": "v1.72.3",
"sha256": "sha256-NfrLaKPIAMWeRNVdWEg4wn7pFoLO1Hv3HsxFKkVewPc=",
"vendorSha256": null,
"version": "1.72.1"
"version": "1.72.3"
},
"tfe": {
"owner": "hashicorp",
@ -1189,10 +1189,10 @@
"owner": "ucloud",
"provider-source-address": "registry.terraform.io/ucloud/ucloud",
"repo": "terraform-provider-ucloud",
"rev": "v1.31.1",
"sha256": "sha256-xY8JXjKdi/TXpbZ1dQf9Sp8dbcHYn1cdqiszEK3evg0=",
"rev": "v1.31.3",
"sha256": "sha256-qVBvslXU5pPGMXwaBJ5f0iw4jNLgnnJ4Avr+mhC103Q=",
"vendorSha256": null,
"version": "1.31.1"
"version": "1.31.3"
},
"utils": {
"owner": "cloudposse",
@ -1270,10 +1270,10 @@
"owner": "vultr",
"provider-source-address": "registry.terraform.io/vultr/vultr",
"repo": "terraform-provider-vultr",
"rev": "v2.10.1",
"sha256": "sha256-Q4qdPfBXnhkr+zUbMvBnBqCDT0cbHFT8oNMTM6cP0SM=",
"rev": "v2.11.0",
"sha256": "sha256-5TtrjWQ6AXYCjOi6Qe3oJVp011s87XyU2CYnXb7hFII=",
"vendorSha256": null,
"version": "2.10.1"
"version": "2.11.0"
},
"wavefront": {
"owner": "vmware",

@ -5,13 +5,13 @@ buildGoModule rec {
/* Do not use "dev" as a version. If you do, Tilt will consider itself
running in development environment and try to serve assets from the
source tree, which is not there once build completes. */
version = "0.26.3";
version = "0.30.0";
src = fetchFromGitHub {
owner = "tilt-dev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jrVf6vNlEkTgALS93o3kIiticvsyFHm5oA2Fh1edAGY=";
sha256 = "sha256-bZYm9T3NRNNtT8RDGwnXcXC7Rb/GuIxI/U06By4gR/w=";
};
vendorSha256 = null;

@ -1,18 +1,17 @@
{ lib, stdenv
, fetchFromBitbucket
, fetchpatch
, autoreconfHook
}:
stdenv.mkDerivation rec {
version = "1.2";
version = "2.1";
pname = "lrcalc";
src = fetchFromBitbucket {
owner = "asbuch";
repo = "lrcalc";
rev = "lrcalc-${version}";
sha256 = "1c12d04jdyxkkav4ak8d1aqrv594gzihwhpxvc6p9js0ry1fahss";
sha256 = "0s3amf3z75hnrjyszdndrvk4wp5p630dcgyj341i6l57h43d1p4k";
};
doCheck = true;
@ -21,15 +20,6 @@ stdenv.mkDerivation rec {
autoreconfHook
];
patches = [
# Fix include syntax:
# For private includes, use `#include "..."` instead of `#include <...>`
(fetchpatch {
url = "https://bitbucket.org/asbuch/lrcalc/commits/226981a0/raw/";
sha256 = "02kaqx5s3l642rhh28kn2wg9wr098vzpknxyl4pv627lqa3lv9vm";
})
];
meta = with lib; {
description = "Littlewood-Richardson calculator";
homepage = "http://math.rutgers.edu/~asbuch/lrcalc/";

@ -48,6 +48,12 @@ let
logo64 = "${sage-src}/src/doc/common/themes/sage/static/sageicon.png";
};
jupyter-kernel-specs = pkgs.jupyter-kernel.create {
definitions = pkgs.jupyter-kernel.default // {
sagemath = jupyter-kernel-definition;
};
};
three = callPackage ./threejs-sage.nix { };
# A bash script setting various environment variables to tell sage where
@ -73,7 +79,7 @@ let
# The documentation for sage, building it takes a lot of ram.
sagedoc = callPackage ./sagedoc.nix {
inherit sage-with-env;
inherit python3 maxima;
inherit python3 maxima jupyter-kernel-specs;
};
# sagelib with added wrappers and a dependency on sage-tests to make sure thet tests were run.
@ -167,6 +173,6 @@ let
in
# A wrapper around sage that makes sure sage finds its docs (if they were build).
callPackage ./sage.nix {
inherit sage-tests sage-with-env sagedoc jupyter-kernel-definition;
inherit sage-tests sage-with-env sagedoc jupyter-kernel-specs;
inherit withDoc requireSageTests;
}

@ -1,46 +0,0 @@
diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py
index 01f32fb8e4..4d83dc7b47 100644
--- a/src/sage/doctest/control.py
+++ b/src/sage/doctest/control.py
@@ -1253,6 +1253,7 @@ class DocTestController(SageObject):
self.log("Using --optional=" + self._optional_tags_string())
available_software._allow_external = self.options.optional is True or 'external' in self.options.optional
+ available_software._autodetect_safe = self.options.optional is True or 'sage' in self.options.optional
self.log("Features to be detected: " + ','.join(available_software.detectable()))
self.add_files()
self.expand_files_into_sources()
diff --git a/src/sage/doctest/external.py b/src/sage/doctest/external.py
index 84dae19ea5..badc61466e 100644
--- a/src/sage/doctest/external.py
+++ b/src/sage/doctest/external.py
@@ -409,6 +409,7 @@ class AvailableSoftware(object):
[]
"""
self._allow_external = True
+ self._autodetect_safe = True
# For multiprocessing of doctests, the data self._seen should be
# shared among subprocesses. Thus we use Array class from the
# multiprocessing module.
@@ -430,6 +431,8 @@ class AvailableSoftware(object):
sage: 'internet' in available_software # random, optional - internet
True
"""
+ if not self._autodetect_safe:
+ return False
try:
idx = self._indices[item]
except KeyError:
diff --git a/src/sage/features/sagemath.py b/src/sage/features/sagemath.py
index 433338766d..233623b14a 100644
--- a/src/sage/features/sagemath.py
+++ b/src/sage/features/sagemath.py
@@ -12,7 +12,7 @@ class sagemath_doc_html(StaticFile):
EXAMPLES::
- sage: from sage.features.sagemath import sagemath_doc_html
+ sage: from sage.features.sagemath import sagemath_doc_html # optional - sagemath_doc_html
sage: sagemath_doc_html().is_present() # optional - sagemath_doc_html
FeatureTestResult('sagemath_doc_html', True)
"""

@ -13,7 +13,7 @@ index 67d7d2accf..18279581e2 100644
- True
+ sage: print(output)
+ sage...[False, True]
+ sage...Exiting Sage ...
+ ...
"""
#*****************************************************************************

@ -1,11 +1,11 @@
diff --git a/src/sage/misc/sagedoc.py b/src/sage/misc/sagedoc.py
index 4c56aea078..e51a77ae8a 100644
index 08c4225b87..3a9bbe4ed0 100644
--- a/src/sage/misc/sagedoc.py
+++ b/src/sage/misc/sagedoc.py
@@ -1402,6 +1402,8 @@ class _sage_doc:
sage: identity_matrix.__doc__ in browse_sage_doc(identity_matrix, 'rst')
True
sage: browse_sage_doc(identity_matrix, 'html', False) # optional - sphinx
sage: browse_sage_doc(identity_matrix, 'html', False) # optional - sphinx sagemath_doc_html
+ ...
+ FutureWarning: The configuration setting "embed_images" will be removed in Docutils 1.2. Use "image_loading: link".
'...div...File:...Type:...Definition:...identity_matrix...'

@ -1,10 +1,10 @@
diff --git a/src/sage_docbuild/__init__.py b/src/sage_docbuild/__init__.py
index 8a5c1a19d2..21fd192642 100644
index b12d56a3c9..df9d949ed1 100644
--- a/src/sage_docbuild/__init__.py
+++ b/src/sage_docbuild/__init__.py
@@ -89,27 +89,6 @@ def builder_helper(type):
@@ -88,30 +88,6 @@ def builder_helper(type):
"""
Returns a function which builds the documentation for
Return a function which builds the documentation for
output type ``type``.
-
- TESTS:
@ -19,10 +19,13 @@ index 8a5c1a19d2..21fd192642 100644
- ....: raise BaseException("abort pool operation")
- sage: original_runsphinx, sage_docbuild.sphinxbuild.runsphinx = sage_docbuild.sphinxbuild.runsphinx, raiseBaseException
-
- sage: from sage.misc.temporary_file import tmp_dir
- sage: os.environ['SAGE_DOC'] = tmp_dir()
- sage: sage.env.var('SAGE_DOC') # random
- sage: from sage_docbuild import builder_helper, build_ref_doc
- sage: from sage_docbuild import _build_many as build_many
- sage: helper = builder_helper("html")
- sage: try:
- sage: try: # optional - sagemath_doc_html
- ....: build_many(build_ref_doc, [("docname", "en", "html", {})])
- ....: except Exception as E:
- ....: "Non-exception during docbuild: abort pool operation" in str(E)
@ -30,7 +33,7 @@ index 8a5c1a19d2..21fd192642 100644
"""
def f(self, *args, **kwds):
output_dir = self._output_dir(type)
@@ -131,10 +110,9 @@ def builder_helper(type):
@@ -139,10 +115,9 @@ def builder_helper(type):
logger.debug(build_command)
# Run Sphinx with Sage's special logger
@ -44,10 +47,10 @@ index 8a5c1a19d2..21fd192642 100644
if ABORT_ON_ERROR:
raise
diff --git a/src/sage_docbuild/sphinxbuild.py b/src/sage_docbuild/sphinxbuild.py
index d917c3e9d4..551cc8028a 100644
index a39c99ffe9..73be823684 100644
--- a/src/sage_docbuild/sphinxbuild.py
+++ b/src/sage_docbuild/sphinxbuild.py
@@ -327,3 +327,8 @@ def runsphinx():
@@ -330,3 +330,8 @@ def runsphinx():
sys.stderr = saved_stderr
sys.stdout.flush()
sys.stderr.flush()

@ -2,6 +2,7 @@
, buildPythonPackage
, sage-src
, sphinx
, jupyter-sphinx
}:
buildPythonPackage rec {
@ -11,6 +12,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
sphinx
jupyter-sphinx
];
preBuild = ''

@ -186,7 +186,7 @@ writeTextFile rec {
export SAGE_EXTCODE='${sagelib.src}/src/sage/ext_data'
# for find_library
export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [stdenv.cc.libc singular]}''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [stdenv.cc.libc singular giac]}''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
'';
} // { # equivalent of `passthru`, which `writeTextFile` doesn't support
lib = sagelib;

@ -58,30 +58,19 @@ let
);
in
stdenv.mkDerivation rec {
version = "9.5";
version = "9.6";
pname = "sage-src";
src = fetchFromGitHub {
owner = "sagemath";
repo = "sage";
rev = version;
sha256 = "sha256-uOsLpsGpcIGs8Xr82X82MElnTB2E908gytyNJ8WVD5w=";
sha256 = "sha256-QY8Yga3hD1WhSCtA2/PVry8hHlMmC31J8jCBFtWgIU0=";
};
# Patches needed because of particularities of nix or the way this is packaged.
# The goal is to upstream all of them and get rid of this list.
nixPatches = [
# Since https://trac.sagemath.org/ticket/32174, some external features are
# marked as "safe" and get auto-detected, in which case the corresponding
# optional tests are executed. We disable auto-detection of safe features if
# we are doctesting with an "--optional" argument which does not include
# "sage", because tests from autodetected features expect context provided
# by running basic sage tests. This is necessary to test sagemath_doc_html
# separately. See https://trac.sagemath.org/ticket/26110 for a related
# upstream discussion (from the time when Sage still had optional py2/py3
# tags).
./patches/Only-test-external-software-when-all-of-sage-is.patch
# Fixes a potential race condition which can lead to transient doctest failures.
./patches/fix-ecl-race.patch
@ -120,81 +109,13 @@ stdenv.mkDerivation rec {
# https://trac.sagemath.org/ticket/32959
./patches/linbox-1.7-upgrade.patch
# https://trac.sagemath.org/ticket/33170
(fetchSageDiff {
base = "9.6.beta5";
name = "ipython-8.1-update.patch";
rev = "4d2b53f1541375861310af3a7f7109c1c2ed475d";
sha256 = "sha256-ELda/VBzsQH7NdFas69fQ35QPUoJCeLx/gxT1j7qGR8=";
})
# https://trac.sagemath.org/ticket/32968
(fetchSageDiff {
base = "9.5";
name = "sphinx-4.3-update.patch";
rev = "fc84f82f52b6f05f512cb359ec7c100f93cf8841";
sha256 = "sha256-bBbfdcnw/9LUOlY8rHJRbFJEdMXK4shosqTNaobTS1Q=";
})
# https://trac.sagemath.org/ticket/33189
(fetchSageDiff {
base = "9.5";
name = "arb-2.22-update.patch";
rev = "53532ddd4e2dc92469c1590ebf0c40f8f69bf579";
sha256 = "sha256-6SoSBvIlqvNwZV3jTB6uPdUtaWIOeNmddi2poK/WvGs=";
})
# TODO: This will not be necessary when Sphinx 4.4.1 is released,
# since some warnings introduced in 4.4.0 will be disabled by then
# (https://github.com/sphinx-doc/sphinx/pull/10126).
# https://trac.sagemath.org/ticket/33272
(fetchSageDiff {
base = "9.5";
name = "sphinx-4.4-warnings.patch";
rev = "97d7958bed441cf2ccc714d88f83d3a8426bc085";
sha256 = "sha256-y1STE0oxswnijGCsBw8eHWWqpmT1XMznIfA0vvX9pFA=";
})
# adapted from https://trac.sagemath.org/ticket/23712#comment:22
./patches/tachyon-renamed-focallength.patch
# https://trac.sagemath.org/ticket/33336
(fetchSageDiff {
base = "9.6.beta2";
name = "scipy-1.8-update.patch";
rev = "9c8235e44ffb509efa8a3ca6cdb55154e2b5066d";
sha256 = "sha256-bfc4ljNOxVnhlmxIuNbjbKl4vJXYq2tlF3Z8bbC8PWw=";
})
# https://trac.sagemath.org/ticket/33495
(fetchSageDiff {
base = "9.6.beta5";
name = "networkx-2.7-update.patch";
rev = "8452003846a7303100847d8d0ed642fc642c11d6";
sha256 = "sha256-A/XMouPlc2sjFp30L+56fBGJXydS2EtzfPOV98FCDqI=";
})
# https://trac.sagemath.org/ticket/33226
(fetchSageDiff {
base = "9.6.beta0";
name = "giac-1.7.0-45-update.patch";
rev = "33ea2adf01e9e2ce9f1e33779f0b1ac0d9d1989c";
sha256 = "sha256-DOyxahf3+IaYdkgmAReNDCorRzMgO8+yiVrJ5TW1km0=";
})
# https://trac.sagemath.org/ticket/33398
(fetchSageDiff {
base = "9.6.beta4";
name = "sympy-1.10-update.patch";
rev = "6b7c3a28656180e42163dc10f7b4a571b93e5f27";
sha256 = "sha256-fnUyM2yjHkCykKRfzQQ4glcUYmCS/fYzDzmCf0nuebk=";
# The patch contains a whitespace change to a file that didn't exist in Sage 9.5.
excludes = [ "build/*" "src/sage/manifolds/vector_bundle_fiber_element.py" ];
})
# docutils 0.18.1 now triggers Sphinx warnings. tolerate them for
# now, because patching Sphinx is not feasible.
# https://github.com/sphinx-doc/sphinx/issues/9777#issuecomment-1104481271
# now, because patching Sphinx is not feasible. remove when Sphinx
# 5.0 hits nixpkgs.
# https://github.com/sphinx-doc/sphinx/pull/10372
./patches/docutils-0.18.1-deprecation.patch
];

@ -2,8 +2,7 @@
, makeWrapper
, sage-tests
, sage-with-env
, jupyter-kernel-definition
, jupyter-kernel
, jupyter-kernel-specs
, sagedoc
, withDoc
, requireSageTests
@ -12,14 +11,6 @@
# A wrapper that makes sure sage finds its docs (if they were build) and the
# jupyter kernel spec.
let
# generate kernel spec + default kernels
kernel-specs = jupyter-kernel.create {
definitions = jupyter-kernel.default // {
sagemath = jupyter-kernel-definition;
};
};
in
stdenv.mkDerivation rec {
version = src.version;
pname = "sage";
@ -43,7 +34,7 @@ stdenv.mkDerivation rec {
--set SAGE_DOC_SRC_OVERRIDE "${src}/src/doc" ${
lib.optionalString withDoc "--set SAGE_DOC_OVERRIDE ${sagedoc}/share/doc/sage"
} \
--prefix JUPYTER_PATH : "${kernel-specs}"
--prefix JUPYTER_PATH : "${jupyter-kernel-specs}"
'';
doInstallCheck = withDoc;
@ -58,7 +49,7 @@ stdenv.mkDerivation rec {
quicktest = sage-tests.override { longTests = false; timeLimit = 600; }; # as many tests as possible in ~10m
doc = sagedoc;
lib = sage-with-env.env.lib;
kernelspec = jupyter-kernel-definition;
kernelspec = jupyter-kernel-specs.definition.sagemath;
};
meta = with lib; {

@ -1,6 +1,7 @@
{ stdenv
, sage-with-env
, python3
, jupyter-kernel-specs
, maxima
, tachyon
, jmol
@ -59,10 +60,15 @@ stdenv.mkDerivation rec {
OUTPUT="$OUTPUT_DIR/options.txt"
${sage-with-env}/bin/sage -advanced > "$OUTPUT"
${sage-with-env}/bin/sage --docbuild \
# jupyter-sphinx calls the sagemath jupyter kernel during docbuild
export JUPYTER_PATH=${jupyter-kernel-specs}
# sage --docbuild unsets JUPYTER_PATH, so we call sage_docbuild directly
# https://trac.sagemath.org/ticket/33650#comment:32
${sage-with-env}/bin/sage --python3 -m sage_docbuild \
--mathjax \
--no-pdf-links \
all html
all html < /dev/null
'';
installPhase = ''
@ -83,6 +89,10 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = ''
${sage-with-env}/bin/sage -t --optional=sagemath_doc_html --all
# sagemath_doc_html tests assume sage tests are being run, so we
# compromise: we run standard tests, but only on files containing
# relevant tests. as of Sage 9.6, there are only 4 such files.
grep -PRl "#.*optional.*sagemath_doc_html" ${src}/src/sage{,_docbuild} | \
xargs ${sage-with-env}/bin/sage -t --optional=sage,sagemath_doc_html
'';
}

@ -67,7 +67,9 @@
, pillow
, ipykernel
, networkx
, sphinx # TODO: this is in setup.cfg, bug should we override it?
, ptyprocess
, lrcalc-python
, sphinx # TODO: this is in setup.cfg, should we override it?
}:
assert (!blas.isILP64) && (!lapack.isILP64);
@ -157,6 +159,8 @@ buildPythonPackage rec {
networkx
jupyter-client
ipywidgets
ptyprocess
lrcalc-python
sphinx
];
@ -188,7 +192,7 @@ buildPythonPackage rec {
# Sage tests already catch any relevant API breakage.
# according to the discussion at https://trac.sagemath.org/ticket/33520,
# upper bounds will be less noisy starting from Sage 9.6.
sed -i 's/==2.1.0rc1/>=2.1.1/' ../gmpy2/install-requires.txt
sed -i 's/==0.5.1/>=0.5.1/' ../ptyprocess/install-requires.txt
sed -i 's/, <[^, ]*//' ../*/install-requires.txt
for infile in src/*.m4; do

@ -104,6 +104,7 @@ stdenv.mkDerivation rec {
"-Drpath=ON"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_CXX_FLAGS=-std=c++11"
"-Dalien=OFF"
"-Dbonjour=OFF"
"-Dcastor=OFF"

@ -55,7 +55,7 @@ in mkDerivation {
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin out/makemkv ../makemkv-bin-${version}/bin/amd64/makemkvcon
install -Dm555 -t $out/bin out/makemkv out/mmccextr ../makemkv-bin-${version}/bin/amd64/makemkvcon
install -D -t $out/lib out/lib{driveio,makemkv,mmbd}.so.*
install -D -t $out/share/MakeMKV ../makemkv-bin-${version}/src/share/*
install -Dm444 -t $out/share/applications ../makemkv-oss-${version}/makemkvgui/share/makemkv.desktop

@ -1,23 +1,16 @@
{ lib, stdenv, mkDerivation, fetchFromGitLab, fetchpatch, pkg-config, qmake, qtx11extras, qttools, mpv }:
{ lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, qmake, qtx11extras, qttools, mpv }:
mkDerivation rec {
pname = "mpc-qt";
version = "2019-06-09";
version = "22.02";
src = fetchFromGitLab {
src = fetchFromGitHub {
owner = "mpc-qt";
repo = "mpc-qt";
rev = "2abe6e7fc643068d50522468fe75d614861555ad";
sha256 = "1cis8dl9pm91mpnp696zvwsfp96gkwr8jgs45anbwd7ldw78w4x5";
rev = "v${version}";
sha256 = "sha256-DRbNDrWnaTT4A0dRFAv9MX/MDwV/rXIw+R8fQJmVN+g=";
};
patches = [
(fetchpatch {
url = "https://gitlab.com/mpc-qt/mpc-qt/-/commit/02f2bc7a22e863a89ba322b9acb61cf1aef23ba0.diff";
sha256 = "0khld55i194zgi18d0wch5459lfzzkbfdbl1im8akvq8ks5xijis";
})
];
nativeBuildInputs = [ pkg-config qmake qttools ];
buildInputs = [ mpv qtx11extras ];
@ -26,7 +19,7 @@ mkDerivation rec {
meta = with lib; {
description = "Media Player Classic Qute Theater";
homepage = "https://gitlab.com/mpc-qt/mpc-qt";
homepage = "https://mpc-qt.github.io";
license = licenses.gpl2;
platforms = platforms.unix;
broken = stdenv.isDarwin;

@ -315,10 +315,10 @@ rec {
allowSubstitutes = false;
}
''
n=$out/bin/$name
mkdir -p "$(dirname "$n")"
mv "$codePath" code.c
$CC -x c code.c -o "$n"
n=$out/bin/$name
mkdir -p "$(dirname "$n")"
mv "$codePath" code.c
$CC -x c code.c -o "$n"
'';

@ -47,10 +47,6 @@ def fetch_extension_data(uuid: str, version: str) -> Tuple[str, str]:
uuid = uuid.replace("@", "")
url: str = f"https://extensions.gnome.org/extension-data/{uuid}.v{version}.shell-extension.zip"
# TODO remove when Vitals@CoreCoding.com version != 53, this extension has a missing manifest.json
if url == 'https://extensions.gnome.org/extension-data/VitalsCoreCoding.com.v53.shell-extension.zip':
url = 'https://extensions.gnome.org/extension-data/VitalsCoreCoding.com.v53.shell-extension_v1BI2FB.zip'
# Download extension and add the zip content to nix-store
process = subprocess.run(
["nix-prefetch-url", "--unpack", "--print-path", url], capture_output=True, text=True

@ -6,12 +6,12 @@ mkCoqDerivation rec {
domain = "gitlab.inria.fr";
inherit version;
defaultVersion = with lib.versions; lib.switch coq.coq-version [
{ case = isGe "8.8"; out = "4.4.0"; }
{ case = isGe "8.8"; out = "4.5.1"; }
{ case = range "8.8" "8.12"; out = "4.0.0"; }
{ case = range "8.7" "8.11"; out = "3.4.2"; }
{ case = range "8.5" "8.6"; out = "3.3.0"; }
] null;
release."4.4.0".sha256 = "sha256-0+9AatTIEsjul0RXoOw6zWGEbGDVmuy7XuyrZNBZ8Kk=";
release."4.5.1".sha256 = "sha256-5OxbSPdw/1FFENubulKSk6fEIEYSPCxfvMMgtgN6j6s=";
release."4.3.0".sha256 = "sha256-k8DLC4HYYpHeEEgXUafS8jkaECqlM+/CoYaInmUTYko=";
release."4.2.0".sha256 = "sha256-SD5thgpirs3wmZBICjXGpoefg9AAXyExb5t8tz3iZhE=";
release."4.1.1".sha256 = "sha256-h2NJ6sZt1C/88v7W2xyuftEDoyRt3H6kqm5g2hc1aoU=";

@ -6,6 +6,12 @@
, coreutils
, gnugrep
, ncurses
, findutils
, hostname
, parallel
, flock
, ps
, bats
, lsof
, doInstallCheck ? true
}:
@ -31,32 +37,99 @@ resholve.mkDerivation rec {
solutions = {
bats = {
scripts = [ "bin/bats" ];
scripts = [
"bin/bats"
"libexec/bats-core/*"
"lib/bats-core/*"
];
interpreter = "${bash}/bin/bash";
inputs = [ bash coreutils gnugrep ];
inputs = [
bash
coreutils
gnugrep
ncurses
findutils
hostname
parallel
flock
"lib/bats-core"
"libexec/bats-core"
];
fake = {
external = [ "greadlink" ];
external = [
"greadlink"
"shlock"
];
};
fix = {
"$BATS_ROOT" = [ "${placeholder "out"}" ];
"$BATS_LIBEXEC" = [ "${placeholder "out"}/libexec/bats-core" ];
};
keep = {
"${placeholder "out"}/libexec/bats-core/bats" = true;
source = [
"${placeholder "out"}/lib/bats-core/validator.bash"
"${placeholder "out"}/lib/bats-core/preprocessing.bash"
"$BATS_TEST_SOURCE"
"${placeholder "out"}/lib/bats-core/tracing.bash"
"${placeholder "out"}/lib/bats-core/test_functions.bash"
"$library_load_path"
"${placeholder "out"}/lib/bats-core/common.bash"
"${placeholder "out"}/lib/bats-core/semaphore.bash"
"${placeholder "out"}/lib/bats-core/formatter.bash"
];
"$report_formatter" = true;
"$formatter" = true;
"$pre_command" = true;
"$BATS_TEST_NAME" = true;
"${placeholder "out"}/libexec/bats-core/bats-exec-test" = true;
};
execer = [
/*
both blatant lies for expedience; these can certainly exec args
they may be safe here, because they may always run things that
are ultimately in libexec?
TODO: handle parallel and flock in binlore/resholve
*/
"cannot:${parallel}/bin/parallel"
"cannot:${flock}/bin/flock"
"cannot:libexec/bats-core/bats-preprocess"
# these do exec, but other internal files
"cannot:libexec/bats-core/bats-exec-file"
"cannot:libexec/bats-core/bats-exec-suite"
];
};
};
inherit doInstallCheck;
installCheckInputs = [ ncurses ] ++ lib.optionals stdenv.isDarwin [ lsof ];
installCheckPhase = ''
# TODO: cut if https://github.com/bats-core/bats-core/issues/418 allows
sed -i '/test works even if PATH is reset/a skip' test/bats.bats
passthru.tests.upstream = bats.unresholved.overrideAttrs (old: {
name = "${bats.name}-tests";
installCheckInputs = [
ncurses
parallel # skips some tests if it can't detect
flock # skips some tests if it can't detect
ps
] ++ lib.optionals stdenv.isDarwin [ lsof ];
inherit doInstallCheck;
installCheckPhase = ''
# TODO: cut if https://github.com/bats-core/bats-core/issues/418 allows
sed -i '/test works even if PATH is reset/a skip "disabled for nix build"' test/bats.bats
# TODO: cut when https://github.com/bats-core/bats-core/pull/554 allows
substituteInPlace test/parallel.bats --replace '&& type -p shlock' '|| type -p shlock'
# test generates file with absolute shebang dynamically
substituteInPlace test/install.bats --replace \
"/usr/bin/env bash" "${bash}/bin/bash"
bin/bats test
'';
# skip tests that assume bats `install.sh` will be in BATS_ROOT
rm test/root.bats
# test generates file with absolute shebang dynamically
substituteInPlace test/install.bats --replace \
"/usr/bin/env bash" "${bash}/bin/bash"
${bats}/bin/bats test
rm -rf $out
touch $out
'';
});
meta = with lib; {
homepage = "https://github.com/bats-core/bats-core";

@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "bullet";
version = "3.22b";
version = "3.23";
src = fetchFromGitHub {
owner = "bulletphysics";
repo = "bullet3";
rev = version;
sha256 = "sha256-hf2b7enh9mziPKFcdU8NwLdhcxhV7Ididf9Bwwa+5/M=";
sha256 = "sha256-XZpwCVfSJD3W93BJrGefy3dGrevNzChU+TrKalMpY4Q=";
};
nativeBuildInputs = [ cmake ];

@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
zstd
];
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" ];
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
meta = with lib; {
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/facebook/folly";
license = licenses.asl20;
# 32bit is not supported: https://github.com/facebook/folly/issues/103
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
maintainers = with maintainers; [ abbradar pierreis ];
};
}

@ -62,7 +62,7 @@ in
stdenv.mkDerivation rec {
pname = "gtk4";
version = "4.6.3";
version = "4.6.4";
outputs = [ "out" "dev" ] ++ lib.optionals x11Support [ "devdoc" ];
outputBin = "dev";
@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://gnome/sources/gtk/${lib.versions.majorMinor version}/gtk-${version}.tar.xz";
sha256 = "pXrNDkSCmBcA/fhllsdBPLYe9H915HR/2oCegjG42Ww=";
sha256 = "p5orvMeTG3A/xPofy+G5BuIpoVIthU1SKAF2anm8rJ8=";
};
nativeBuildInputs = [

@ -2,12 +2,12 @@
, xercesc, xml-security-c, pkg-config, xsd, zlib, xalanc, xxd }:
stdenv.mkDerivation rec {
version = "3.14.7";
version = "3.14.8";
pname = "libdigidocpp";
src = fetchurl {
url = "https://github.com/open-eid/libdigidocpp/releases/download/v${version}/libdigidocpp-${version}.tar.gz";
sha256 = "sha256-QdctW2+T8kPNUJv30pXZ/qfnw1Uhq6gScSjUI+bZMfY=";
sha256 = "sha256-U5i5IAyJF4359q6M6mQemEuG7+inPYIXqLy8GHv4dkg=";
};
nativeBuildInputs = [ cmake pkg-config xxd ];

@ -2,13 +2,13 @@
buildNimPackage rec {
pname = "jsony";
version = "1.1.3";
version = "d0e69bddf83874e15b5c2f52f8b1386ac080b443";
src = fetchFromGitHub {
owner = "treeform";
repo = pname;
rev = version;
hash = "sha256-jtUCoqwCmE536Kpv/vZxGgqiHyReZf1WOiBdUzmMhM4=";
sha256 = "1p250wb97nzz2g0vvq6mn521fx7sn1jpk1ralbzqh5q8clh4g7wr";
};
doCheck = true;

@ -3,6 +3,6 @@
fetchFromGitHub {
owner = "guzba";
repo = "supersnappy";
rev = "1.1.5";
sha256 = "1y26sgnszvdf5sn7j0jx2dpd4i03mvbk9i9ni9kbyrs798bjwi6z";
rev = "2.1.1";
sha256 = "03df1qgrbp84swhqy12ansyn951lkaw0kf1arbnki4fkgdnqdamf";
}

@ -72,6 +72,7 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [
"http_over_https_error"
"bind_addr_unix"
"test_ssl_env"
];
disabledTestPaths = [

@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "django-anymail";
version = "8.5";
version = "8.6";
src = fetchFromGitHub {
owner = "anymail";
repo = pname;
rev = "v${version}";
sha256 = "1p2c7hf9baxr8khk8h7y8d38imw4zm920dgd9nbda18vlh7gpbcf";
rev = "refs/tags/v${version}";
sha256 = "sha256-hLNILUV7qzqHfh7l3SJAoFveUIRSCHTjEQ3ZC3PhZUY=";
};
propagatedBuildInputs = [

@ -12,11 +12,12 @@
, mock
, pkgs
, urllib3
, paramiko
, pythonOlder
}:
buildPythonPackage rec {
version = "0.20.35";
version = "0.20.36";
pname = "dulwich";
format = "setuptools";
@ -24,7 +25,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
hash = "sha256-lT9jAanfigkfqI1V7tOUqIv5mIzei+NBd1NUkQkYwZY=";
hash = "sha256-2s7xVJwSdffS1v7NLyz6O6ozB9AJpRTAwjIDP2uqXSE=";
};
LC_ALL = "en_US.UTF-8";
@ -43,6 +44,7 @@ buildPythonPackage rec {
gpgme
pkgs.gnupg
mock
paramiko
];
doCheck = !stdenv.isDarwin;

@ -1,4 +1,5 @@
{ lib, buildPythonPackage, fetchFromSourcehut, sqlparse, wrapt, pytestCheckHook }:
{ stdenv, lib, buildPythonPackage, fetchFromSourcehut,
sqlparse, wrapt, pytestCheckHook }:
buildPythonPackage rec {
pname = "embrace";
@ -16,6 +17,10 @@ buildPythonPackage rec {
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "embrace" ];
# Some test for hot-reload fails on Darwin, but the rest of the library
# should remain usable. (https://todo.sr.ht/~olly/embrace-sql/4)
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "Embrace SQL keeps your SQL queries in SQL files";
homepage = "https://pypi.org/project/embrace/";

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "gcal-sync";
version = "0.7.1";
version = "0.8.0";
disabled = pythonOlder "3.9";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "allenporter";
repo = "gcal_sync";
rev = version;
hash = "sha256-NOB74P+5i63FEeHJsPXRdRgY6iyIUEn7BogbVKm8P5M=";
hash = "sha256-Qk4WlMVyzOK2uyrUlJw9Q8ENtNT3PZ7FKTlCtPsm2v0=";
};
propagatedBuildInputs = [

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "geocachingapi";
version = "0.2.1";
version = "0.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Sholofly";
repo = "geocachingapi-python";
rev = "refs/tags/${version}";
sha256 = "sha256-36CkbwRDpMTprsZuPJ9khSrzqLb2Sz7iCvXtJ46uTL0=";
sha256 = "sha256-EoAY3kUFCxQY2Dodwl0TWye5MTjjHvbna5AHha1UzCc=";
};
nativeBuildInputs = [

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib, buildPythonPackage, fetchPypi, yajl, cffi, pytestCheckHook }:
buildPythonPackage rec {
pname = "ijson";
@ -9,7 +9,11 @@ buildPythonPackage rec {
sha256 = "1d1003ae3c6115ec9b587d29dd136860a81a23c7626b682e2b5b12c9fd30e4ea";
};
doCheck = false; # something about yajl
buildInputs = [ yajl ];
propagatedBuildInputs = [ cffi ];
checkInputs = [ pytestCheckHook ];
doCheck = true;
meta = with lib; {
description = "Iterative JSON parser with a standard Python iterator interface";

@ -0,0 +1,31 @@
{ lib
, fetchPypi
, buildPythonPackage
, cython
, pkg-config
, lrcalc
}:
buildPythonPackage rec {
pname = "lrcalc-python";
version = "2.1";
src = fetchPypi {
inherit version;
pname = "lrcalc";
sha256 = "e3a0509aeda487b412b391a52e817ca36b5c063a8305e09fd54d53259dd6aaa9";
};
nativeBuildInputs = [ cython pkg-config ];
buildInputs = [ lrcalc ];
pythonImportsCheck = [ "lrcalc" ];
meta = with lib; {
description = "Littlewood-Richardson Calculator bindings";
homepage = "https://sites.math.rutgers.edu/~asbuch/lrcalc/";
maintainers = teams.sage.members;
license = licenses.gpl3;
};
}

@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "manuel";
version = "1.10.1";
version = "1.11.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy";
sha256 = "sha256-nJt3WMQ66oa3VlW5InJCzOea96Wf7WwxSbBp9WIfzqc=";
};
propagatedBuildInputs = [ six ];

@ -27,7 +27,7 @@
buildPythonPackage rec {
pname = "ocrmypdf";
version = "13.4.3";
version = "13.4.4";
src = fetchFromGitHub {
owner = "jbarlow83";
@ -39,7 +39,7 @@ buildPythonPackage rec {
extraPostFetch = ''
rm "$out/.git_archival.txt"
'';
hash = "sha256-kriT3NV9Lj44WjOeK6+pILjfRMt9QMcKU57si394xxI=";
hash = "sha256-uFKnohUxh17h6u0vwVB7EaTEh5NRowP8a6za63Ehodk=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "pex";
version = "2.1.87";
version = "2.1.88";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LPOHpylnWxwEdPT3oJjbn8NkTY9tE/pMyGE8Dy7nwrU=";
hash = "sha256-lDUmudfs3Py4ytHsEvgnTiMvVQkom9X+uCeZHhTshjc=";
};
nativeBuildInputs = [

@ -25,7 +25,7 @@
buildPythonPackage rec {
pname = "pikepdf";
version = "5.1.2";
version = "5.1.3";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -40,7 +40,7 @@ buildPythonPackage rec {
extraPostFetch = ''
rm "$out/.git_archival.txt"
'';
hash = "sha256-VR2/+XCQb62FdkGZBxP2XTqatdFYZO1ngb8gvoJEvzs=";
hash = "sha256-jkAwc1bQ1jRDf/qY+xAjiLXXO98qKjyX+J7Lu4tYWoI=";
};
patches = [

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "pycep-parser";
version = "0.3.4";
version = "0.3.5";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -20,8 +20,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "gruebel";
repo = "pycep";
rev = version;
hash = "sha256-o2sYPvZVevDqZV8EtKWTL2zHHzX2kmTZ4iVHsUhFv7M=";
rev = "refs/tags/${version}";
hash = "sha256-Nj/drNRSIBh8DaE+vzQRijQg8NVUK5qBClwU3aWiA48=";
};
nativeBuildInputs = [

@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.5.7";
version = "0.5.8";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Richardk2n";
repo = "pylsp-mypy";
rev = version;
sha256 = "0am16z9kmj57r5pi32jhzlbdngzmvzzaiqjm7cba1izh7w5m6dvc";
rev = "refs/tags/${version}";
sha256 = "sha256-Yu1e/8gYFYEZ/IoFo8WnyRNYkCZ9i7NgjEjYBbagWMA=";
};
disabledTests = [

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "pynx584";
version = "0.6";
version = "0.7";
disabled = pythonOlder "3.6";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "kk7ds";
repo = pname;
rev = version;
sha256 = "0if1jq8qiqp4w4zhf2xzzcb8y70hr5pxqzh96i008p6izjha89y6";
sha256 = "sha256-44JFq19fpJmpZzLeVcBILs8c9bOfWyMrb2jA4Yx8+Co=";
};
propagatedBuildInputs = [

@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "pyskyqhub";
version = "0.1.8";
version = "0.1.9";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "RogerSelwyn";
repo = "skyq_hub";
rev = version;
sha256 = "sha256-1KNgF3d5w+aNKNkOZVkdD3VVLz/F8NyQ5MxO1UaWrFk=";
sha256 = "sha256-yXqtABbsCh1yb96lsEA0gquikVenGLCo6J93AeXAC8k=";
};
propagatedBuildInputs = [

@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "pywlroots";
version = "0.15.13";
version = "0.15.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "teZ8udox+4NefgA73gD5d6hPur/zjCapoMYPW36ax0s=";
sha256 = "z0PVjVzmAb5cgBdXWMxOdsy0VMMkmewHZaPNBYivXSA=";
};
nativeBuildInputs = [ pkg-config ];

@ -82,6 +82,9 @@ buildPythonPackage rec {
# needed for relative paths for some packages
cd tests
'' + lib.optionalString stdenv.isDarwin ''
# OSError: [Errno 24] Too many open files
ulimit -n 1024
'';
# uvloop usage is buggy

@ -15,7 +15,7 @@
let
pname = "torchmetrics";
version = "0.8.1";
version = "0.8.2";
in
buildPythonPackage {
inherit pname version;
@ -23,8 +23,8 @@ buildPythonPackage {
src = fetchFromGitHub {
owner = "PyTorchLightning";
repo = "metrics";
rev = "v${version}";
hash = "sha256-AryEhYAeC97dO2pgHoz0Y9F//DVdX6RfCa80gI56iz4=";
rev = "refs/tags/v${version}";
hash = "sha256-1TO2YgZzjVmrE5jhMwo0Y+bQUQ5jJj34k+kGpdqqPVQ=";
};
propagatedBuildInputs = [

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "twentemilieu";
version = "0.6.0";
version = "0.6.1";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "frenck";
repo = "python-twentemilieu";
rev = "v${version}";
sha256 = "sha256-UE7fhbSThXmMns1XfUUQqw0wn5/w/x+UncansIBiank=";
sha256 = "sha256-k2jdw2H/bNejNUjIEQlEA1KkHHpkyFlSDC1HKUoMIqQ=";
};
postPatch = ''

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "fx";
version = "22.0.10";
version = "24.0.0";
src = fetchFromGitHub {
owner = "antonmedv";
repo = pname;
rev = version;
sha256 = "sha256-BoWb27sRqcYHSLhUvjRIRIkcj90FitpbrH2R3VHsRyI=";
sha256 = "sha256-Sg+mluDOGpkEUl+3BoItuPnMqs8F6o+D5xIqF0w0EIU=";
};
vendorSha256 = "sha256-ZDPRKrum2tnhscZxLzslezYs/hOOtHwAORrAWoQhXbs=";
vendorSha256 = "sha256-4hx1AZQQ4xHBTzBK0OmrTUGMK4Rfu36cmopVV4SOjCQ=";
meta = with lib; {
description = "Terminal JSON viewer";

@ -6,13 +6,13 @@
buildGoModule rec {
pname = "devspace";
version = "5.18.4";
version = "5.18.5";
src = fetchFromGitHub {
owner = "loft-sh";
repo = "devspace";
rev = "v${version}";
sha256 = "0s5117cgxgrxfki5drvg6d22dvrjffa03bi644zdl1p631r599r1";
sha256 = "1i4ir8p3xpfy8z8w8gzpk1hyzs04b5llrjd6hl2hzrxd1likl0sh";
};
vendorSha256 = null;

@ -15,12 +15,13 @@
}:
let
merlinVersion = "4.4";
merlinVersion = "4.5";
hashes = {
"4.4-411" = "sha256:0chx28098mmnjbnaz5wgzsn82rh1w9dhzqmsykb412cq13msl1q4";
"4.4-412" = "sha256:18xjpsiz7xbgjdnsxfc52l7yfh22harj0birlph4xm42d14pkn0n";
"4.4-413" = "sha256:1ilmh2gqpwgr51w2ba8r0s5zkj75h00wkw4az61ssvivn9jxr7k0";
"4.5-411" = "sha256:05nz6y7r91rh0lj8b6xdv3s3yknmvjc7y60v17kszgqnr887bvpn";
"4.5-412" = "sha256:0i5c3rfzinmwdjya7gv94zyknsm32qx9dlg472xpfqivwvnnhf1z";
"4.5-413" = "sha256:1sphq9anfg1qzrvj7hdcqflj6cmc1qiyfkljhng9fxnnr0i7550s";
"4.5-414" = "sha256:13h588kwih05zd9p3p7q528q4zc0d1l983kkvbmkxgay5d17nn1i";
};
ocamlVersionShorthand = lib.concatStrings
@ -55,8 +56,6 @@ buildDunePackage {
./test.patch
;
useDune2 = true;
strictDeps = true;
nativeBuildInputs = [

@ -1,215 +0,0 @@
# Generated by carnix 0.10.0: carnix generate-nix
{ lib, buildPlatform, buildRustCrate, buildRustCrateHelpers, cratesIO, fetchgit }:
with buildRustCrateHelpers;
let inherit (lib.lists) fold;
inherit (lib.attrsets) recursiveUpdate;
in
rec {
crates = cratesIO;
systemfd = crates.crates.systemfd."0.3.0" deps;
__all = [ (systemfd {}) ];
deps.aho_corasick."0.6.4" = {
memchr = "2.0.1";
};
deps.ansi_term."0.11.0" = {
winapi = "0.3.4";
};
deps.atty."0.2.10" = {
termion = "1.5.1";
libc = "0.2.40";
winapi = "0.3.4";
};
deps.backtrace."0.3.7" = {
cfg_if = "0.1.3";
rustc_demangle = "0.1.8";
backtrace_sys = "0.1.16";
libc = "0.2.40";
winapi = "0.3.4";
};
deps.backtrace_sys."0.1.16" = {
libc = "0.2.40";
cc = "1.0.15";
};
deps.bitflags."1.0.3" = {};
deps.byteorder."1.2.3" = {};
deps.bytes."0.4.7" = {
byteorder = "1.2.3";
iovec = "0.1.2";
};
deps.cc."1.0.15" = {};
deps.cfg_if."0.1.3" = {};
deps.clap."2.31.2" = {
atty = "0.2.10";
bitflags = "1.0.3";
strsim = "0.7.0";
textwrap = "0.9.0";
unicode_width = "0.1.4";
vec_map = "0.8.1";
ansi_term = "0.11.0";
};
deps.clicolors_control."0.2.0" = {
lazy_static = "0.2.11";
libc = "0.2.40";
kernel32_sys = "0.2.2";
winapi = "0.3.4";
};
deps.console."0.6.1" = {
clicolors_control = "0.2.0";
lazy_static = "0.2.11";
libc = "0.2.40";
parking_lot = "0.5.5";
regex = "0.2.11";
unicode_width = "0.1.4";
termios = "0.2.2";
winapi = "0.3.4";
};
deps.failure."0.1.1" = {
backtrace = "0.3.7";
failure_derive = "0.1.1";
};
deps.failure_derive."0.1.1" = {
quote = "0.3.15";
syn = "0.11.11";
synstructure = "0.6.1";
};
deps.fuchsia_zircon."0.3.3" = {
bitflags = "1.0.3";
fuchsia_zircon_sys = "0.3.3";
};
deps.fuchsia_zircon_sys."0.3.3" = {};
deps.gcc."0.3.54" = {};
deps.iovec."0.1.2" = {
libc = "0.2.40";
winapi = "0.2.8";
};
deps.kernel32_sys."0.2.2" = {
winapi = "0.2.8";
winapi_build = "0.1.1";
};
deps.lazy_static."0.2.11" = {};
deps.lazy_static."1.0.0" = {};
deps.libc."0.2.40" = {};
deps.memchr."2.0.1" = {
libc = "0.2.40";
};
deps.nix."0.10.0" = {
bitflags = "1.0.3";
bytes = "0.4.7";
cfg_if = "0.1.3";
libc = "0.2.40";
void = "1.0.2";
};
deps.owning_ref."0.3.3" = {
stable_deref_trait = "1.0.0";
};
deps.parking_lot."0.5.5" = {
owning_ref = "0.3.3";
parking_lot_core = "0.2.14";
};
deps.parking_lot_core."0.2.14" = {
rand = "0.4.2";
smallvec = "0.6.1";
libc = "0.2.40";
winapi = "0.3.4";
};
deps.quote."0.3.15" = {};
deps.rand."0.4.2" = {
fuchsia_zircon = "0.3.3";
libc = "0.2.40";
winapi = "0.3.4";
};
deps.redox_syscall."0.1.37" = {};
deps.redox_termios."0.1.1" = {
redox_syscall = "0.1.37";
};
deps.regex."0.2.11" = {
aho_corasick = "0.6.4";
memchr = "2.0.1";
regex_syntax = "0.5.6";
thread_local = "0.3.5";
utf8_ranges = "1.0.0";
};
deps.regex."1.0.0" = {
aho_corasick = "0.6.4";
memchr = "2.0.1";
regex_syntax = "0.6.0";
thread_local = "0.3.5";
utf8_ranges = "1.0.0";
};
deps.regex_syntax."0.5.6" = {
ucd_util = "0.1.1";
};
deps.regex_syntax."0.6.0" = {
ucd_util = "0.1.1";
};
deps.rustc_demangle."0.1.8" = {};
deps.smallvec."0.6.1" = {};
deps.socket2."0.3.5" = {
cfg_if = "0.1.3";
libc = "0.2.40";
winapi = "0.3.4";
};
deps.stable_deref_trait."1.0.0" = {};
deps.strsim."0.7.0" = {};
deps.syn."0.11.11" = {
quote = "0.3.15";
synom = "0.11.3";
unicode_xid = "0.0.4";
};
deps.synom."0.11.3" = {
unicode_xid = "0.0.4";
};
deps.synstructure."0.6.1" = {
quote = "0.3.15";
syn = "0.11.11";
};
deps.systemfd."0.3.0" = {
clap = "2.31.2";
console = "0.6.1";
failure = "0.1.1";
failure_derive = "0.1.1";
lazy_static = "1.0.0";
libc = "0.2.40";
regex = "1.0.0";
nix = "0.10.0";
socket2 = "0.3.5";
uuid = "0.6.3";
winapi = "0.3.4";
};
deps.termion."1.5.1" = {
libc = "0.2.40";
redox_syscall = "0.1.37";
redox_termios = "0.1.1";
};
deps.termios."0.2.2" = {
libc = "0.2.40";
};
deps.textwrap."0.9.0" = {
unicode_width = "0.1.4";
};
deps.thread_local."0.3.5" = {
lazy_static = "1.0.0";
unreachable = "1.0.0";
};
deps.ucd_util."0.1.1" = {};
deps.unicode_width."0.1.4" = {};
deps.unicode_xid."0.0.4" = {};
deps.unreachable."1.0.0" = {
void = "1.0.2";
};
deps.utf8_ranges."1.0.0" = {};
deps.uuid."0.6.3" = {
cfg_if = "0.1.3";
rand = "0.4.2";
};
deps.vec_map."0.8.1" = {};
deps.void."1.0.2" = {};
deps.winapi."0.2.8" = {};
deps.winapi."0.3.4" = {
winapi_i686_pc_windows_gnu = "0.4.0";
winapi_x86_64_pc_windows_gnu = "0.4.0";
};
deps.winapi_build."0.1.1" = {};
deps.winapi_i686_pc_windows_gnu."0.4.0" = {};
deps.winapi_x86_64_pc_windows_gnu."0.4.0" = {};
}

@ -1,62 +0,0 @@
aho-corasick-0.6.4
ansi_term-0.11.0
atty-0.2.10
backtrace-0.3.7
backtrace-sys-0.1.16
bitflags-1.0.3
byteorder-1.2.3
bytes-0.4.7
cc-1.0.15
cfg-if-0.1.3
clap-2.31.2
clicolors-control-0.2.0
console-0.6.1
failure-0.1.1
failure_derive-0.1.1
fuchsia-zircon-0.3.3
fuchsia-zircon-sys-0.3.3
gcc-0.3.54
iovec-0.1.2
kernel32-sys-0.2.2
lazy_static-0.2.11
lazy_static-1.0.0
libc-0.2.40
memchr-2.0.1
nix-0.10.0
owning_ref-0.3.3
parking_lot-0.5.5
parking_lot_core-0.2.14
quote-0.3.15
rand-0.4.2
redox_syscall-0.1.37
redox_termios-0.1.1
regex-0.2.11
regex-1.0.0
regex-syntax-0.5.6
regex-syntax-0.6.0
rustc-demangle-0.1.8
smallvec-0.6.1
socket2-0.3.5
stable_deref_trait-1.0.0
strsim-0.7.0
syn-0.11.11
synom-0.11.3
synstructure-0.6.1
systemfd-0.3.0
termion-1.5.1
termios-0.2.2
textwrap-0.9.0
thread_local-0.3.5
ucd-util-0.1.1
unicode-width-0.1.4
unicode-xid-0.0.4
unreachable-1.0.0
utf8-ranges-1.0.0
uuid-0.6.3
vec_map-0.8.1
void-1.0.2
winapi-0.2.8
winapi-0.3.4
winapi-build-0.1.1
winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0

File diff suppressed because it is too large Load Diff

@ -1,18 +1,32 @@
{ lib, fetchgit, darwin, buildPlatform
, buildRustCrate, buildRustCrateHelpers, defaultCrateOverrides }:
{ lib
, fetchFromGitHub
, rustPlatform
}:
((import ./Cargo.nix {
inherit lib buildPlatform buildRustCrate buildRustCrateHelpers fetchgit;
cratesIO = import ./crates-io.nix { inherit lib buildRustCrate buildRustCrateHelpers; };
}).systemfd {}).override {
crateOverrides = defaultCrateOverrides // {
systemfd = attrs: {
meta = {
description = "A convenient helper for passing sockets into another process";
homepage = "https://github.com/mitsuhiko/systemfd";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.adisbladis ];
};
};
let
version = "0.4.0";
in
rustPlatform.buildRustPackage {
pname = "systemfd";
inherit version;
src = fetchFromGitHub {
repo = "systemfd";
owner = "mitsuhiko";
rev = version;
sha256 = "sha256-HUJgYPD4C9fMUYKpzmIy9gDT6HAZDWw1JLMKLgzRQTY=";
};
cargoSha256 = "sha256-UhfE9Q5E79rN2mjkNB5IAN/J0fbpoy9CmM6ojHQcFP0=";
meta = {
description = "A convenient helper for passing sockets into another process";
homepage = "https://github.com/mitsuhiko/systemfd";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.adisbladis ];
platforms = lib.platforms.unix;
};
}

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "microcode-intel";
version = "20220419";
version = "20220510";
src = fetchFromGitHub {
owner = "intel";
repo = "Intel-Linux-Processor-Microcode-Data-Files";
rev = "microcode-${version}";
sha256 = "sha256-i3OhOEqyK6gJfRIPewPGb4/6k6lO0atmedEqJ2e+66U=";
sha256 = "sha256-x+8qyC7YP7co/7qLhaAtjMtyeANaZJ/r41iFl1Mut+M=";
};
nativeBuildInputs = [ iucode-tool libarchive ];

@ -1,8 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, python3Packages
# build time
, autoreconfHook
@ -33,31 +31,22 @@
stdenv.mkDerivation rec {
pname = "frr";
version = "8.1";
version = "8.2.2";
src = fetchFromGitHub {
owner = "FRRouting";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-hJcgLiPBxOE5QEh0RhtZhM3dOxFqW5H0TUjN+aP4qRk=";
hash = "sha256-zuOgbRxyyhFdBplH/K1fpyD+KUWa7FXPDmGKF5Kb7SQ=";
};
patches = [
(fetchpatch {
# Fix clippy build on aarch64-linux
# https://github.com/FRRouting/frr/issues/10267
url = "https://github.com/FRRouting/frr/commit/3942ee1f7bc754dd0dd9ae79f89d0f2635be334f.patch";
sha256 = "1i0acfy5k9fbm9cxchrcvkhyw9704srq4wm2hyjqgdimm2dq7ryf";
})
];
nativeBuildInputs = [
autoreconfHook
bison
flex
perl
pkg-config
python3Packages.sphinx
python3.pkgs.sphinx
texinfo
];
@ -78,34 +67,35 @@ stdenv.mkDerivation rec {
];
configureFlags = [
"--sysconfdir=/etc/frr"
"--localstatedir=/run/frr"
"--sbindir=$(out)/libexec/frr"
"--disable-exampledir"
"--enable-user=frr"
"--enable-group=frr"
"--enable-configfile-mask=0640"
"--enable-group=frr"
"--enable-logfile-mask=0640"
"--enable-vty-group=frrvty"
"--enable-snmp"
"--enable-multipath=64"
"--enable-snmp"
"--enable-user=frr"
"--enable-vty-group=frrvty"
"--localstatedir=/run/frr"
"--sbindir=$(out)/libexec/frr"
"--sysconfdir=/etc/frr"
];
postPatch = ''
substituteInPlace tools/frr-reload --replace /usr/lib/frr/ $out/libexec/frr/
substituteInPlace tools/frr-reload \
--replace /usr/lib/frr/ $out/libexec/frr/
'';
doCheck = true;
checkInputs = [
nettools
python3Packages.pytest
python3.pkgs.pytest
];
enableParallelBuilding = true;
passthru.tests = { inherit (nixosTests) frr; };
meta = with lib; {
homepage = "https://frrouting.org/";
description = "FRR BGP/OSPF/ISIS/RIP/RIPNG routing daemon suite";
longDescription = ''
FRRouting (FRR) is a free and open source Internet routing protocol suite
@ -129,9 +119,10 @@ stdenv.mkDerivation rec {
infrastructure, web 2.0 businesses, hyperscale services, and Fortune 500
private clouds.
'';
homepage = "https://frrouting.org/";
license = with licenses; [ gpl2Plus lgpl21Plus ];
platforms = platforms.unix;
maintainers = with maintainers; [ woffs ];
platforms = platforms.unix;
};
passthru.tests = { inherit (nixosTests) frr; };
}

@ -8,16 +8,16 @@
rustPlatform.buildRustPackage rec {
pname = "libreddit";
version = "0.22.6";
version = "0.22.7";
src = fetchFromGitHub {
owner = "spikecodes";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Dx0eVg1T9WTHeIQO9hwUoCAcUgQey8rlZ5+uxPIX0Wc=";
sha256 = "sha256-kM+XvkSxc+OsHq2hGPdpy32jQ/35AJo75PlpbeWjef0=";
};
cargoSha256 = "sha256-RGZgo9uxRmPpZzXu6AC2FPjOoZxLnh4gCjadAOTWJ4Q=";
cargoSha256 = "sha256-md56axw3tpl++wP3ga0iMX63ixu/35lhT4TA2Uo8GpI=";
buildInputs = lib.optional stdenv.isDarwin Security;

@ -2,14 +2,14 @@
nimPackages.buildNimPackage rec {
pname = "nitter";
version = "unstable-2022-03-21";
version = "unstable-2022-05-13";
nimBinOnly = true;
src = fetchFromGitHub {
owner = "zedeus";
repo = "nitter";
rev = "6884f05041a9b8619ec709afacdfdd6482a120a0";
sha256 = "1mnc6jqljpqp9lgcrxxvf3aiswssr34v139cxfbwlmj45swmsazh";
rev = "683c052036b268028f0ecae020a1519bc586516d";
sha256 = "179z66jlwbdarrgvpdh8aqy2ihkiakd22wqydrfgpsgr59ma8fgl";
};
buildInputs = with nimPackages; [
@ -29,6 +29,7 @@ nimPackages.buildNimPackage rec {
postBuild = ''
nim c --hint[Processing]:off -r tools/gencss
nim c --hint[Processing]:off -r tools/rendermd
'';
postInstall = ''

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "wishlist";
version = "0.4.0";
version = "0.5.0";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "wishlist";
rev = "v${version}";
sha256 = "sha256-qXCPxFdwX+z0aaZbqFt7bWPlBJDnr0SDMrBHSALX1aw=";
sha256 = "sha256-J9Wd2CyQo8vzfE2jXQzbNA+oihG71F3ZQmEW/r0a72I=1";
};
vendorSha256 = "sha256-vLhRZVEiYUCvGqPMtOz/8T6W5AKwkSzPdEglG3AevE8=";
vendorSha256 = "sha256-5+wuavHLXwjtvwA9tSpdF2Zd8tw5FklzvaTeCZlA4WQ=";
doCheck = false;

@ -11,6 +11,12 @@ stdenv.mkDerivation {
sha256 = "125jx1rsqkiifcffyjb05b2s36rllckdgjaf1bay15k9gzhwwldz";
};
# Add workaround for -fno-common toolchains like upstream gcc-10 to
# avoid build failures like:
# ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of
# `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildInputs = [ fuse readline libgcrypt gmp ];
meta = with lib; {

@ -1,23 +0,0 @@
{ lib, fetchFromGitHub, buildGoPackage }:
buildGoPackage rec {
pname = "oci-image-tool";
version = "1.0.0-rc1";
goPackagePath = "github.com/opencontainers/image-tools";
subPackages = [ "cmd/oci-image-tool" ];
src = fetchFromGitHub {
owner = "opencontainers";
repo = "image-tools";
rev = "v${version}";
sha256 = "0c4n69smqlkf0r6khy9gbg5f810qh9g8jqsl9kibb0dyswizr14r";
};
meta = {
description = "A collection of tools for working with the OCI image format specification";
homepage = "https://github.com/opencontainers/image-tools";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nzhang-zh ];
};
}

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, libpcap }:
{ lib, stdenv, fetchurl, fetchpatch, libpcap }:
stdenv.mkDerivation rec {
pname = "cdpr";
@ -8,6 +8,15 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tgz";
sha256 = "1idyvyafkk0ifcbi7mc65b60qia6hpsdb6s66j4ggqp7if6vblrj";
};
patches = [
# Pull fix pending upstream inclusion for gcc-10 compatibility:
# https://sourceforge.net/p/cdpr/bugs/3/
(fetchurl {
name = "fno-common";
url = "https://sourceforge.net/p/cdpr/bugs/3/attachment/0001-cdpr-fix-build-on-gcc-10-fno-common.patch";
sha256 = "023cvkpc4ry1pbjd91kkwj4af3hia0layk3fp8q40vh6mbr14pnp";
})
];
postPatch = ''
substituteInPlace Makefile --replace 'gcc' '"$$CC"'

@ -1,52 +1,32 @@
{ lib, stdenv, fetchurl, pkg-config
{ lib, stdenv, fetchurl, pkg-config, cmake
, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
, libmspack, systemd, Foundation, json_c, check
, rustc, rust-bindgen, rustfmt, cargo, python3
}:
stdenv.mkDerivation rec {
pname = "clamav";
version = "0.103.5";
version = "0.105.0";
src = fetchurl {
url = "https://www.clamav.net/downloads/production/${pname}-${version}.tar.gz";
sha256 = "sha256-HnSx4dKoqQVkScMT9Ippg7nVug1vte8LK+atPIQaVCY=";
sha256 = "sha256-JwIDpUxFgEnbVPzZNoP/Wy2xkVHzY8SOgs7O/d4rNdQ=";
};
# don't install sample config files into the absolute sysconfdir folder
postPatch = ''
substituteInPlace Makefile.in --replace ' etc ' ' '
'';
# Flaky test, remove this when https://github.com/Cisco-Talos/clamav/issues/343 is fixed
patches = [ ./remove-freshclam-test.patch ];
enableParallelBuilding = true;
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ cmake pkg-config rustc rust-bindgen rustfmt cargo python3 ];
buildInputs = [
zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre2 libmspack json_c check
] ++ lib.optional stdenv.isLinux systemd
++ lib.optional stdenv.isDarwin Foundation;
configureFlags = [
"--libdir=$(out)/lib"
"--sysconfdir=/etc/clamav"
"--disable-llvm" # enabling breaks the build at the moment
"--with-zlib=${zlib.dev}"
"--with-xml=${libxml2.dev}"
"--with-openssl=${openssl.dev}"
"--with-libcurl=${curl.dev}"
"--with-libjson=${json_c.dev}"
"--with-system-libmspack"
"--enable-milter"
"--disable-unrar" # disable unrar because it's non-free and requires some extra patching to work properly
"--enable-check"
] ++ lib.optional stdenv.isLinux
"--with-systemdsystemunitdir=$(out)/lib/systemd";
cmakeFlags = [
"-DSYSTEMD_UNIT_DIR=${placeholder "out"}/lib/systemd"
];
postInstall = ''
mkdir $out/etc
cp etc/*.sample $out/etc
'';
# Only required for the unit tests
hardeningDisable = [ "format" ];
doCheck = true;
meta = with lib; {

@ -0,0 +1,20 @@
diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt
index 1460357ba..1194abc9d 100644
--- a/unit_tests/CMakeLists.txt
+++ b/unit_tests/CMakeLists.txt
@@ -371,15 +371,6 @@ if(ENABLE_APP)
set_property(TEST clamd_valgrind PROPERTY ENVIRONMENT ${ENVIRONMENT} VALGRIND=${Valgrind_EXECUTABLE})
endif()
- add_test(NAME freshclam COMMAND ${PythonTest_COMMAND};freshclam_test.py
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
- set_property(TEST freshclam PROPERTY ENVIRONMENT ${ENVIRONMENT})
- if(Valgrind_FOUND)
- add_test(NAME freshclam_valgrind COMMAND ${PythonTest_COMMAND};freshclam_test.py
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
- set_property(TEST freshclam_valgrind PROPERTY ENVIRONMENT ${ENVIRONMENT} VALGRIND=${Valgrind_EXECUTABLE})
- endif()
-
add_test(NAME sigtool COMMAND ${PythonTest_COMMAND};sigtool_test.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set_property(TEST sigtool PROPERTY ENVIRONMENT ${ENVIRONMENT})

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
buildInputs = [ readline bzip2 ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: ../util/libutil.a(estream-printf.o):/build/gnupg-1.4.23/util/../include/memory.h:100: multiple definition of
# `memory_debug_mode'; gpgsplit.o:/build/gnupg-1.4.23/tools/../include/memory.h:100: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
doCheck = true;
meta = with lib; {

@ -904,6 +904,7 @@ mapAliases ({
### O ###
oathToolkit = oath-toolkit; # Added 2022-04-04
oci-image-tool = throw "oci-image-tool is no longer actively maintained, and has had major deficiencies for several years."; # Added 2022-05-14;
oracleXE = throw "oracleXE has been removed, as it's heavily outdated and unmaintained"; # Added 2020-10-09
OVMF-CSM = throw "OVMF-CSM has been removed in favor of OVMFFull"; # Added 2021-10-16
OVMF-secureBoot = throw "OVMF-secureBoot has been removed in favor of OVMFFull"; # Added 2021-10-16

@ -8876,8 +8876,6 @@ with pkgs;
buildGoModule = buildGo116Module;
};
oci-image-tool = callPackage ../tools/misc/oci-image-tool { };
ocproxy = callPackage ../tools/networking/ocproxy { };
ocserv = callPackage ../tools/networking/ocserv { };
@ -22708,7 +22706,9 @@ with pkgs;
webmetro = callPackage ../servers/webmetro { };
wishlist = callPackage ../servers/wishlist { };
wishlist = callPackage ../servers/wishlist {
buildGoModule = buildGo118Module;
};
wsdd = callPackage ../servers/wsdd { };
@ -23451,6 +23451,8 @@ with pkgs;
system76-firmware = callPackage ../os-specific/linux/firmware/system76-firmware { };
system76-keyboard-configurator = callPackage ../applications/misc/system76-keyboard-configurator { };
ocf-resource-agents = callPackage ../os-specific/linux/ocf-resource-agents { };
open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { };
@ -34702,7 +34704,9 @@ with pkgs;
tgswitch = callPackage ../applications/networking/cluster/tgswitch {};
tilt = callPackage ../applications/networking/cluster/tilt { };
tilt = callPackage ../applications/networking/cluster/tilt {
buildGoModule = buildGo118Module;
};
timeular = callPackage ../applications/office/timeular {};

@ -4998,6 +4998,8 @@ in {
losant-rest = callPackage ../development/python-modules/losant-rest { };
lrcalc-python = callPackage ../development/python-modules/lrcalc-python { };
lru-dict = callPackage ../development/python-modules/lru-dict { };
lsassy = callPackage ../development/python-modules/lsassy { };

Loading…
Cancel
Save