Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2024-09-09 12:06:25 +00:00 committed by GitHub
commit 6bb37a137e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
59 changed files with 911 additions and 528 deletions

View File

@ -4988,6 +4988,12 @@
githubId = 62989; githubId = 62989;
name = "Demyan Rogozhin"; name = "Demyan Rogozhin";
}; };
denperidge = {
email = "contact@denperidge.com";
github = "denperidge";
githubId = 27348469;
name = "Cat";
};
derchris = { derchris = {
email = "derchris@me.com"; email = "derchris@me.com";
github = "derchrisuk"; github = "derchrisuk";
@ -19386,6 +19392,13 @@
githubId = 158321; githubId = 158321;
name = "Stewart Mackenzie"; name = "Stewart Mackenzie";
}; };
skeuchel = {
name = "Steven Keuchel";
email = "steven.keuchel@gmail.com";
github = "skeuchel";
githubId = 617130;
keys = [ { fingerprint = "C4F7 46C7 B560 38D8 210F 0288 5877 DEE9 7428 557F"; } ];
};
skovati = { skovati = {
github = "skovati"; github = "skovati";
githubId = 49844593; githubId = 49844593;

View File

@ -162,6 +162,7 @@ in
boot.kernelParams = [ boot.kernelParams = [
"console=${qemu-common.qemuSerialDevice}" "console=${qemu-common.qemuSerialDevice}"
"console=tty0"
# Panic if an error occurs in stage 1 (rather than waiting for # Panic if an error occurs in stage 1 (rather than waiting for
# user intervention). # user intervention).
"panic=1" "boot.panic_on_fail" "panic=1" "boot.panic_on_fail"
@ -180,6 +181,7 @@ in
services.journald.extraConfig = services.journald.extraConfig =
'' ''
ForwardToConsole=yes ForwardToConsole=yes
TTYPath=/dev/${qemu-common.qemuSerialDevice}
MaxLevelConsole=debug MaxLevelConsole=debug
''; '';

View File

@ -444,7 +444,6 @@ in {
hibernate-systemd-stage-1 = handleTestOn ["x86_64-linux"] ./hibernate.nix { systemdStage1 = true; }; hibernate-systemd-stage-1 = handleTestOn ["x86_64-linux"] ./hibernate.nix { systemdStage1 = true; };
hitch = handleTest ./hitch {}; hitch = handleTest ./hitch {};
hledger-web = handleTest ./hledger-web.nix {}; hledger-web = handleTest ./hledger-web.nix {};
hocker-fetchdocker = handleTest ./hocker-fetchdocker {};
hockeypuck = handleTest ./hockeypuck.nix { }; hockeypuck = handleTest ./hockeypuck.nix { };
home-assistant = handleTest ./home-assistant.nix {}; home-assistant = handleTest ./home-assistant.nix {};
hostname = handleTest ./hostname.nix {}; hostname = handleTest ./hostname.nix {};

View File

@ -1,16 +0,0 @@
import ../make-test-python.nix ({ pkgs, ...} : {
name = "test-hocker-fetchdocker";
meta = with pkgs.lib.maintainers; {
maintainers = [ ixmatus ];
broken = true; # tries to download from registry-1.docker.io - how did this ever work?
};
nodes.machine = import ./machine.nix;
testScript = ''
start_all()
machine.wait_for_unit("sockets.target")
machine.wait_until_succeeds("docker run registry-1.docker.io/v2/library/hello-world:latest")
'';
})

View File

@ -1,19 +0,0 @@
{ fetchDockerConfig, fetchDockerLayer, fetchdocker }:
fetchdocker rec {
name = "hello-world";
registry = "https://registry-1.docker.io/v2/";
repository = "library";
imageName = "hello-world";
tag = "latest";
imageConfig = fetchDockerConfig {
inherit tag registry repository imageName;
sha256 = "1ivbd23hyindkahzfw4kahgzi6ibzz2ablmgsz6340vc6qr1gagj";
};
imageLayers = let
layer0 = fetchDockerLayer {
inherit registry repository imageName;
layerDigest = "ca4f61b1923c10e9eb81228bd46bee1dfba02b9c7dac1844527a734752688ede";
sha256 = "1plfd194fwvsa921ib3xkhms1yqxxrmx92r2h7myj41wjaqn2kya";
};
in [ layer0 ];
}

View File

@ -1,26 +0,0 @@
{ pkgs, ... }:
{ nixpkgs.config.packageOverrides = pkgs': {
hello-world-container = pkgs'.callPackage ./hello-world-container.nix { };
};
virtualisation.docker = {
enable = true;
package = pkgs.docker;
};
systemd.services.docker-load-fetchdocker-image = {
description = "Docker load hello-world-container";
wantedBy = [ "multi-user.target" ];
wants = [ "docker.service" ];
after = [ "docker.service" ];
script = ''
${pkgs.hello-world-container}/compositeImage.sh | ${pkgs.docker}/bin/docker load
'';
serviceConfig = {
Type = "oneshot";
};
};
}

View File

@ -1,9 +1,30 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch2, cmake, ninja, pkg-config {
, boost, miniupnpc, openssl, unbound lib,
, zeromq, pcsclite, readline, libsodium, hidapi stdenv,
, randomx, rapidjson fetchFromGitHub,
, CoreData, IOKit, PCSC cmake,
, trezorSupport ? true, libusb1, protobuf, python3 ninja,
pkg-config,
boost,
libsodium,
miniupnpc,
openssl,
python3,
randomx,
rapidjson,
readline,
unbound,
zeromq,
# darwin
CoreData,
IOKit,
trezorSupport ? true,
hidapi,
libusb1,
protobuf_21,
udev,
}: }:
let let
@ -25,40 +46,16 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "monero-cli"; pname = "monero-cli";
version = "0.18.3.3"; version = "0.18.3.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "monero-project"; owner = "monero-project";
repo = "monero"; repo = "monero";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-1LkKIrud317BEE+713t5wiJV6FcDlJdj4ypXPR0bKTs="; hash = "sha256-nDiFJjhsISYM8kTgJUaPYL44iyccnz5+Pd5beBh+lsM=";
}; };
patches = [ patches = [ ./use-system-libraries.patch ];
# cmake: remove unused/extera cmake/FindMiniupnpc.cmake and only rely on external/miniupnpc
# https://github.com/monero-project/monero/pull/9366
(fetchpatch2 {
url = "https://github.com/monero-project/monero/commit/5074a543a49f7e23fb39b6462fd4c4c9741c3693.patch?full_index=1";
hash = "sha256-dS2hhEU6m2of0ULlsf+/tZMHUmq3vGGXJPGHvtnpQnY=";
})
# cmake: add different parameters to add_monero_library.
# https://github.com/monero-project/monero/pull/9367
(fetchpatch2 {
url = "https://github.com/monero-project/monero/commit/b91ead90254ac6d6daf908f689c38e372a44c615.patch?full_index=1";
hash = "sha256-DL2YqkvEONbeEDqLOAo2eSF5JF5gOzKcLKeNlUXBY1w=";
})
# external: update miniupnpc to 2.2.8
# https://github.com/monero-project/monero/pull/9367
(fetchpatch2 {
url = "https://github.com/monero-project/monero/commit/d81da086ec5088a04b3f7b34831e72910300e2f7.patch?full_index=1";
hash = "sha256-ZJGiDMk5DMmEXwzoUYPC+DIoebluFh54kMQtQU78ckI=";
excludes = [ "external/miniupnp" ];
})
./use-system-libraries.patch
];
postPatch = '' postPatch = ''
# manually install submodules # manually install submodules
@ -69,31 +66,60 @@ stdenv.mkDerivation rec {
cp -r . $source cp -r . $source
''; '';
nativeBuildInputs = [ cmake ninja pkg-config ]; nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [ buildInputs =
boost miniupnpc openssl unbound [
zeromq pcsclite readline boost
libsodium hidapi randomx rapidjson libsodium
protobuf miniupnpc
] ++ lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ] openssl
++ lib.optionals trezorSupport [ libusb1 protobuf python3 ]; randomx
rapidjson
readline
unbound
zeromq
]
++ lib.optionals stdenv.isDarwin [
IOKit
CoreData
]
++ lib.optionals trezorSupport [
python3
hidapi
libusb1
protobuf_21
]
++ lib.optionals (trezorSupport && stdenv.isLinux) [
udev
];
cmakeFlags = [ cmakeFlags =
"-DUSE_DEVICE_TREZOR=ON" [
"-DBUILD_GUI_DEPS=ON" # skip submodules init
"-DReadline_ROOT_DIR=${readline.dev}" "-DMANUAL_SUBMODULES=ON"
"-DRandomX_ROOT_DIR=${randomx}" # required by monero-gui
] ++ lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF"; "-DBUILD_GUI_DEPS=ON"
"-DReadline_ROOT_DIR=${readline.dev}"
]
++ lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF"
++ lib.optional trezorSupport [
"-DUSE_DEVICE_TREZOR=ON"
# fix build on recent gcc versions
"-DCMAKE_CXX_FLAGS=-fpermissive"
];
outputs = [ "out" "source" ]; outputs = [ "out" "source" ];
meta = with lib; { meta = {
description = "Private, secure, untraceable currency"; description = "Private, secure, untraceable currency";
homepage = "https://getmonero.org/"; homepage = "https://getmonero.org/";
license = licenses.bsd3; license = lib.licenses.bsd3;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ rnhmjoj ]; maintainers = with lib.maintainers; [ rnhmjoj ];
mainProgram = "monero-wallet-cli"; mainProgram = "monero-wallet-cli";
}; };
} }

View File

@ -1,14 +1,15 @@
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index f8b834ac17...520e148428 100644 index 5b7f69a56..cc4b0a346 100644
--- a/external/CMakeLists.txt --- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt +++ b/external/CMakeLists.txt
@@ -39,23 +39,12 @@ @@ -35,25 +35,14 @@
add_compile_options(-D_GNU_SOURCE) # ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with
endif() # others.
-find_package(Miniupnpc REQUIRED)
-
-message(STATUS "Using in-tree miniupnpc") -message(STATUS "Using in-tree miniupnpc")
-set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE) -set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE)
-set(UPNPC_BUILD_TESTS FALSE CACHE BOOL "Disable miniupnp internal tests." FORCE)
-add_subdirectory(miniupnp/miniupnpc) -add_subdirectory(miniupnp/miniupnpc)
-set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") -set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
-set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON) -set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON)
@ -20,19 +21,58 @@ index f8b834ac17...520e148428 100644
-if(CMAKE_SYSTEM_NAME MATCHES "NetBSD") -if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE") - set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE")
-endif() -endif()
+include(FindPkgConfig)
+pkg_check_modules(MINIUPNPC REQUIRED IMPORTED_TARGET GLOBAL miniupnpc)
+get_target_property(MINIUPNPC_INCLUDE_DIR PkgConfig::MINIUPNPC INTERFACE_INCLUDE_DIRECTORIES)
+set_target_properties(PkgConfig::MINIUPNPC PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${MINIUPNPC_INCLUDE_DIR}/miniupnpc")
+set(UPNP_LIBRARIES PkgConfig::MINIUPNPC PARENT_SCOPE)
-set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
- -
-set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(MINIUPNPC REQUIRED miniupnpc)
+link_libraries(${MINIUPNPC_LIBRARIES})
+include_directories(${MINIUPNPC_INCLUDE_DIRS})
+find_package(RapidJSON)
find_package(Unbound) find_package(Unbound)
+find_library(RANDOMX_LIBRARY randomx)
if(NOT UNBOUND_INCLUDE_DIR) if(NOT UNBOUND_INCLUDE_DIR)
@@ -72,4 +61,3 @@ die("Could not find libunbound")
@@ -69,4 +58,3 @@ endif()
add_subdirectory(db_drivers) add_subdirectory(db_drivers)
add_subdirectory(easylogging++) add_subdirectory(easylogging++)
add_subdirectory(qrcodegen) add_subdirectory(qrcodegen)
-add_subdirectory(randomx EXCLUDE_FROM_ALL) -add_subdirectory(randomx EXCLUDE_FROM_ALL)
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 71f5393e8..bb48083d0 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -60,9 +60,9 @@
#include "cryptonote_core/cryptonote_core.h"
#include "net/parse.h"
-#include <miniupnp/miniupnpc/miniupnpc.h>
-#include <miniupnp/miniupnpc/upnpcommands.h>
-#include <miniupnp/miniupnpc/upnperrors.h>
+#include <miniupnpc/miniupnpc.h>
+#include <miniupnpc/upnpcommands.h>
+#include <miniupnpc/upnperrors.h>
#undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "net.p2p"
@@ -2989,7 +2989,8 @@ namespace nodetool
UPNPUrls urls;
IGDdatas igdData;
char lanAddress[64];
- result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress);
+ char wanAddress[64];
+ result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress, wanAddress, sizeof wanAddress);
freeUPNPDevlist(deviceList);
if (result > 0) {
if (result == 1) {
@@ -3057,7 +3058,8 @@ namespace nodetool
UPNPUrls urls;
IGDdatas igdData;
char lanAddress[64];
- result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress);
+ char wanAddress[64];
+ result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress, wanAddress, sizeof wanAddress);
freeUPNPDevlist(deviceList);
if (result > 0) {
if (result == 1) {

View File

@ -1,43 +1,88 @@
{ lib, stdenv, wrapQtAppsHook, makeDesktopItem {
, fetchFromGitHub lib,
, cmake, qttools, pkg-config fetchFromGitHub,
, qtbase, qtdeclarative, qtgraphicaleffects makeDesktopItem,
, qtmultimedia, qtxmlpatterns boost,
, qtquickcontrols, qtquickcontrols2 cmake,
, qtmacextras libgcrypt,
, monero-cli, miniupnpc, unbound, readline libgpg-error,
, boost, libunwind, libsodium, pcsclite libsodium,
, randomx, zeromq, libgcrypt, libgpg-error miniupnpc,
, hidapi, rapidjson, quirc monero-cli,
, trezorSupport ? true, libusb1, protobuf, python3 pkg-config,
qtbase,
qtdeclarative,
qtgraphicaleffects,
qtmacextras,
qtmultimedia,
qtquickcontrols,
qtquickcontrols2,
qttools,
qtxmlpatterns,
quirc,
randomx,
rapidjson,
stdenv,
unbound,
wrapQtAppsHook,
zeromq,
trezorSupport ? true,
hidapi,
libusb1,
protobuf_21,
python3,
udev,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "monero-gui"; pname = "monero-gui";
version = "0.18.3.3"; version = "0.18.3.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "monero-project"; owner = "monero-project";
repo = "monero-gui"; repo = "monero-gui";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-6qadBm4bPui11OVY1tLFcHsfswXWBFiJvutIsF6EfX8="; hash = "sha256-wnU24EmZig2W/psy4OhaQVy2WwR0CgljlyYwOg4bzwM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake pkg-config wrapQtAppsHook cmake
pkg-config
wrapQtAppsHook
(lib.getDev qttools) (lib.getDev qttools)
]; ];
buildInputs = [ buildInputs =
qtbase qtdeclarative qtgraphicaleffects [
qtmultimedia qtquickcontrols qtquickcontrols2 boost
qtxmlpatterns libgcrypt
monero-cli miniupnpc unbound readline libgpg-error
randomx libgcrypt libgpg-error libsodium
boost libunwind libsodium pcsclite miniupnpc
zeromq hidapi rapidjson quirc qtbase
] ++ lib.optionals trezorSupport [ libusb1 protobuf python3 ] qtdeclarative
++ lib.optionals stdenv.isDarwin [ qtmacextras ]; qtgraphicaleffects
qtmultimedia
qtquickcontrols
qtquickcontrols2
qtxmlpatterns
quirc
randomx
rapidjson
unbound
zeromq
]
++ lib.optionals stdenv.isDarwin [ qtmacextras ]
++ lib.optionals trezorSupport [
hidapi
libusb1
protobuf_21
python3
]
++ lib.optionals (trezorSupport && stdenv.isLinux) [
udev
];
postUnpack = '' postUnpack = ''
# copy monero sources here # copy monero sources here
@ -68,7 +113,12 @@ stdenv.mkDerivation rec {
--replace 'add_subdirectory(external)' "" --replace 'add_subdirectory(external)' ""
''; '';
cmakeFlags = [ "-DARCH=default" ]; cmakeFlags =
[ "-DARCH=default" ]
++ lib.optional trezorSupport [
# fix build on recent gcc versions
"-DCMAKE_CXX_FLAGS=-fpermissive"
];
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "monero-wallet-gui"; name = "monero-wallet-gui";
@ -76,7 +126,7 @@ stdenv.mkDerivation rec {
icon = "monero"; icon = "monero";
desktopName = "Monero"; desktopName = "Monero";
genericName = "Wallet"; genericName = "Wallet";
categories = [ "Network" "Utility" ]; categories = [ "Network" "Utility" ];
}; };
postInstall = '' postInstall = ''
@ -93,12 +143,12 @@ stdenv.mkDerivation rec {
done; done;
''; '';
meta = with lib; { meta = {
description = "Private, secure, untraceable currency"; description = "Private, secure, untraceable currency";
homepage = "https://getmonero.org/"; homepage = "https://getmonero.org/";
license = licenses.bsd3; license = lib.licenses.bsd3;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ rnhmjoj ]; maintainers = with lib.maintainers; [ rnhmjoj ];
mainProgram = "monero-wallet-gui"; mainProgram = "monero-wallet-gui";
}; };
} }

View File

@ -69,9 +69,9 @@ in rec {
unstable = fetchurl rec { unstable = fetchurl rec {
# NOTE: Don't forget to change the hash for staging as well. # NOTE: Don't forget to change the hash for staging as well.
version = "9.16"; version = "9.17";
url = "https://dl.winehq.org/wine/source/9.x/wine-${version}.tar.xz"; url = "https://dl.winehq.org/wine/source/9.x/wine-${version}.tar.xz";
hash = "sha256-iQQq6MgLIzP4p9GId/xBecB9Y1erfyjMvabQbzwzDFA="; hash = "sha256-Ptt+tvMbtcP3N43VYj2p2V99TW18g3iv2JyOOjCqCAw=";
inherit (stable) patches; inherit (stable) patches;
## see http://wiki.winehq.org/Gecko ## see http://wiki.winehq.org/Gecko
@ -117,7 +117,7 @@ in rec {
staging = fetchFromGitLab rec { staging = fetchFromGitLab rec {
# https://gitlab.winehq.org/wine/wine-staging # https://gitlab.winehq.org/wine/wine-staging
inherit (unstable) version; inherit (unstable) version;
hash = "sha256-CUVUatw9SH/LwYwloGHsU8TFjAVQRhd3WBk4AP+2NH4="; hash = "sha256-ez7P9R5Q7t+FpaU5bVer4n2bt+evgXLJb83gP+zxIAw=";
domain = "gitlab.winehq.org"; domain = "gitlab.winehq.org";
owner = "wine"; owner = "wine";
repo = "wine-staging"; repo = "wine-staging";

View File

@ -24,11 +24,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mc"; pname = "mc";
version = "4.8.31"; version = "4.8.32";
src = fetchurl { src = fetchurl {
url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz"; url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
sha256 = "sha256-JBkc+GZ2dbjjH8Sp0YoKZb3AWYwsXE6gkklM0Tq0qxo="; hash = "sha256-TdyD0e3pryNjs+q5h/VLh89mGTJBEM4tOg5wlE0TWf4=";
}; };
nativeBuildInputs = [ pkg-config unzip ] nativeBuildInputs = [ pkg-config unzip ]

View File

@ -6,7 +6,7 @@
buildGoModule rec { buildGoModule rec {
pname = "rclone"; pname = "rclone";
version = "1.67.0"; version = "1.68.0";
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
@ -14,10 +14,10 @@ buildGoModule rec {
owner = "rclone"; owner = "rclone";
repo = "rclone"; repo = "rclone";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-rTibyh5z89QuPgZMvv3Y6FCugxMIytAg1gdCxE3+QLE="; hash = "sha256-xLTzfS3/9XBqh0B7/VeRKYEHAgc4rY3QcIUS3f1/e0M=";
}; };
vendorHash = "sha256-Sw9zZf0rup+VyncIpJHp9PKUp60lv+TV4wbWtVTTK3w="; vendorHash = "sha256-vZxdayoKTo/fs5PgEdT4gepNq0kNNmLQhlybWY5kpx0=";
subPackages = [ "." ]; subPackages = [ "." ];

View File

@ -13,16 +13,16 @@ let
common = { stname, target, postInstall ? "" }: common = { stname, target, postInstall ? "" }:
buildGoModule rec { buildGoModule rec {
pname = stname; pname = stname;
version = "1.27.9"; version = "1.27.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "syncthing"; owner = "syncthing";
repo = "syncthing"; repo = "syncthing";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-9PKx5jxntG1QjDA+6XySxGahE1IrKKBl/Xk5ZaCAf5I="; hash = "sha256-/HPq71KkWUE0vG7qUBD3JON4N5KBkuRWc4SvX/JA2nQ=";
}; };
vendorHash = "sha256-Xv5x+/1lx8nyXw72eEHz7+qnkyZfPAnBtDRrOrD2l+g="; vendorHash = "sha256-R5GlsCkfoMc5km+NaV+TNUlM3Ot1ARcXfEFimcZOLI4=";
nativeBuildInputs = lib.optionals stdenv.isDarwin [ nativeBuildInputs = lib.optionals stdenv.isDarwin [
# Recent versions of macOS seem to require binaries to be signed when # Recent versions of macOS seem to require binaries to be signed when
@ -61,14 +61,14 @@ let
inherit (nixosTests) syncthing syncthing-init syncthing-relay; inherit (nixosTests) syncthing syncthing-init syncthing-relay;
}; };
meta = with lib; { meta = {
homepage = "https://syncthing.net/"; homepage = "https://syncthing.net/";
description = "Open Source Continuous File Synchronization"; description = "Open Source Continuous File Synchronization";
changelog = "https://github.com/syncthing/syncthing/releases/tag/v${version}"; changelog = "https://github.com/syncthing/syncthing/releases/tag/v${version}";
license = licenses.mpl20; license = lib.licenses.mpl20;
maintainers = with maintainers; [ joko peterhoeg ]; maintainers = with lib.maintainers; [ joko peterhoeg ];
mainProgram = target; mainProgram = target;
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
}; };
@ -90,17 +90,13 @@ in
'' + lib.optionalString (stdenv.isLinux) '' '' + lib.optionalString (stdenv.isLinux) ''
mkdir -p $out/lib/systemd/{system,user} mkdir -p $out/lib/systemd/{system,user}
substitute etc/linux-systemd/system/syncthing-resume.service \
$out/lib/systemd/system/syncthing-resume.service \
--replace /usr/bin/pkill ${procps}/bin/pkill
substitute etc/linux-systemd/system/syncthing@.service \ substitute etc/linux-systemd/system/syncthing@.service \
$out/lib/systemd/system/syncthing@.service \ $out/lib/systemd/system/syncthing@.service \
--replace /usr/bin/syncthing $out/bin/syncthing --replace-fail /usr/bin/syncthing $out/bin/syncthing
substitute etc/linux-systemd/user/syncthing.service \ substitute etc/linux-systemd/user/syncthing.service \
$out/lib/systemd/user/syncthing.service \ $out/lib/systemd/user/syncthing.service \
--replace /usr/bin/syncthing $out/bin/syncthing --replace-fail /usr/bin/syncthing $out/bin/syncthing
''; '';
}; };
@ -118,7 +114,7 @@ in
substitute cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ substitute cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
$out/lib/systemd/system/strelaysrv.service \ $out/lib/systemd/system/strelaysrv.service \
--replace /usr/bin/strelaysrv $out/bin/strelaysrv --replace-fail /usr/bin/strelaysrv $out/bin/strelaysrv
''; '';
}; };
} }

View File

@ -26,6 +26,7 @@ Some other notable packages that compose the Xen Ecosystem include:
- `ocamlPackages.xenstore-tool`: XAPI's `oxenstore` utilities. - `ocamlPackages.xenstore-tool`: XAPI's `oxenstore` utilities.
- `xen-guest-agent`: Guest drivers for UNIX domUs. - `xen-guest-agent`: Guest drivers for UNIX domUs.
- `win-pvdrivers`: Guest drivers for Windows domUs. - `win-pvdrivers`: Guest drivers for Windows domUs.
- `xtf`: The Xen Test Framework.
## Updating ## Updating
@ -100,6 +101,8 @@ open a PR fixing the script, and update Xen manually:
``` ```
Change the value of `xenToEvaluate` to evaluate all relevant Xen packages. Change the value of `xenToEvaluate` to evaluate all relevant Xen packages.
1. Run `xtf --all --host` as root when booted into the Xen update, and make
sure no tests fail.
1. Clean up your changes and commit them, making sure to follow the 1. Clean up your changes and commit them, making sure to follow the
[Nixpkgs Contribution Guidelines](../../../../CONTRIBUTING.md). [Nixpkgs Contribution Guidelines](../../../../CONTRIBUTING.md).
1. Open a PR and await a review from the current maintainers. 1. Open a PR and await a review from the current maintainers.

View File

@ -1,24 +1,29 @@
{ lib {
, fetchFromGitHub lib,
, buildGoModule fetchFromGitHub,
, testers buildGoModule,
, athens testers,
athens,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "athens"; pname = "athens";
version = "0.14.1"; version = "0.15.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gomods"; owner = "gomods";
repo = "athens"; repo = "athens";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-vpg5EcQSxVFjDFKa4oHwF5fNHhLWtj3ZMi2wbMZNn/8="; hash = "sha256-JERyECQ3/pI+ApWyWvUwZqkGBmA+6pP7Uj+RfpUGsOw=";
}; };
vendorHash = "sha256-LajNPzGbWqW+9aqiquk2LvSUjKwi1gbDY4cKXmn3PWk="; vendorHash = "sha256-tCpwiqJHGRo9vqUh00k+tg4X6WNPnnknV7zjPkgs6Zs=";
CGO_ENABLED = "0"; CGO_ENABLED = "0";
ldflags = [ "-s" "-w" "-X github.com/gomods/athens/pkg/build.version=${version}" ]; ldflags = [
"-s"
"-X github.com/gomods/athens/pkg/build.version=${version}"
];
subPackages = [ "cmd/proxy" ]; subPackages = [ "cmd/proxy" ];
@ -27,9 +32,7 @@ buildGoModule rec {
''; '';
passthru = { passthru = {
tests.version = testers.testVersion { tests.version = testers.testVersion { package = athens; };
package = athens;
};
}; };
meta = with lib; { meta = with lib; {
@ -38,7 +41,10 @@ buildGoModule rec {
changelog = "https://github.com/gomods/athens/releases/tag/v${version}"; changelog = "https://github.com/gomods/athens/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
mainProgram = "athens"; mainProgram = "athens";
maintainers = with maintainers; [ katexochen malt3 ]; maintainers = with maintainers; [
katexochen
malt3
];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,37 +1,36 @@
{ lib {
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
fetchFromGitHub,
nix-update-script,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "capslock"; pname = "capslock";
version = "0.1.1"; version = "0.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "capslock"; repo = "capslock";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-mGrq43YCjF137c5ynQxL7IXDCUbnbBLv5E0tw/boObE="; hash = "sha256-xeezGU9bI1MwonSGv+XimSfboMQr/1TPMTduDQ+MP1g=";
}; };
vendorHash = "sha256-WTbHcVARbz7cvAY7IZnACTrN5h9NXWXfxxEWq4hssOM="; vendorHash = "sha256-Z4oj+af8jqqhgHQrTb+lkbIMMa/yOnvkMti/s+wiQsI=";
subPackages = [ subPackages = [ "cmd/capslock" ];
"cmd/capslock"
];
CGO_ENABLED = "0"; CGO_ENABLED = "0";
ldflags = [ ldflags = [ "-s" ];
"-s"
"-w"
];
meta = with lib; { passthru.updateScript = nix-update-script { };
meta = {
description = "Capability analysis CLI for Go packages that informs users of which privileged operations a given package can access"; description = "Capability analysis CLI for Go packages that informs users of which privileged operations a given package can access";
homepage = "https://github.com/google/capslock"; homepage = "https://github.com/google/capslock";
license = licenses.bsd3; license = lib.licenses.bsd3;
mainProgram = "capslock"; mainProgram = "capslock";
maintainers = with maintainers; [ katexochen ]; maintainers = with lib.maintainers; [ katexochen ];
}; };
} }

View File

@ -1,14 +1,19 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, fetchpatch fetchFromGitHub,
fetchpatch,
nix-update-script,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "cronutils"; pname = "cronutils";
version = "1.10"; version = "1.10";
outputs = [ "out" "man" ]; outputs = [
"out"
"man"
];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
@ -43,12 +48,14 @@ stdenv.mkDerivation (finalAttrs: {
"-Wno-format-nonliteral" "-Wno-format-nonliteral"
]); ]);
meta = with lib; { passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/google/cronutils/releases/tag/version%2F${finalAttrs.version}"; changelog = "https://github.com/google/cronutils/releases/tag/version%2F${finalAttrs.version}";
description = "Utilities to assist running periodic batch processing jobs"; description = "Utilities to assist running periodic batch processing jobs";
homepage = "https://github.com/google/cronutils"; homepage = "https://github.com/google/cronutils";
license = licenses.asl20; license = lib.licenses.asl20;
maintainers = with maintainers; [ katexochen ]; maintainers = with lib.maintainers; [ katexochen ];
platforms = platforms.all; platforms = lib.platforms.all;
}; };
}) })

View File

@ -1,8 +1,10 @@
{ lib {
, rustPlatform lib,
, fetchFromGitHub rustPlatform,
, stdenv fetchFromGitHub,
, darwin stdenv,
darwin,
nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -19,13 +21,9 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-zPgaZPDyNVPmBXz6QwOYnmh/sbJ8aPST8znLMfIWejk="; cargoHash = "sha256-zPgaZPDyNVPmBXz6QwOYnmh/sbJ8aPST8znLMfIWejk=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
darwin.apple_sdk.frameworks.Security
];
cargoBuildFlags = [ cargoBuildFlags = [ "--example formatjson5" ];
"--example formatjson5"
];
postInstall = postInstall =
let let
@ -35,6 +33,8 @@ rustPlatform.buildRustPackage rec {
install -D target/${cargoTarget}/release/examples/formatjson5 $out/bin/formatjson5 install -D target/${cargoTarget}/release/examples/formatjson5 $out/bin/formatjson5
''; '';
passthru.updateScript = nix-update-script { };
meta = { meta = {
description = "JSON5 formatter"; description = "JSON5 formatter";
homepage = "https://github.com/google/json5format"; homepage = "https://github.com/google/json5format";

View File

@ -1,26 +1,31 @@
{ lib {
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
fetchFromGitHub,
nix-update-script,
}: }:
buildGoModule { buildGoModule {
pname = "goat"; pname = "goat";
version = "unstable-2022-08-15"; # Upstream currently isn't doing tags/releases. version = "0-unstable-2024-07-31"; # Upstream currently isn't doing tags/releases.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "blampe"; owner = "blampe";
repo = "goat"; repo = "goat";
rev = "07bb911fe3106cc3c1d1097318a9fffe816b59fe"; rev = "177de93b192b8ffae608e5d9ec421cc99bf68402";
hash = "sha256-gSSDp9Q2hGH85dkE7RoER5ig+Cz1oSOD0FNRBeTZM4U="; hash = "sha256-/DR6RN7dCROp18P7dgm4DMppwdtYl0AOVNMEtXz8ldk=";
}; };
vendorHash = "sha256-24YllmSUzRcqWbJ8NLyhsJaoGG2+yE8/eXX6teJ1nV8="; vendorHash = "sha256-24YllmSUzRcqWbJ8NLyhsJaoGG2+yE8/eXX6teJ1nV8=";
meta = with lib; { passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Go ASCII Tool. Render ASCII art as SVG diagrams"; description = "Go ASCII Tool. Render ASCII art as SVG diagrams";
homepage = "https://github.com/blampe/goat"; homepage = "https://github.com/blampe/goat";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ katexochen ]; maintainers = with lib.maintainers; [ katexochen ];
mainProgram = "goat"; mainProgram = "goat";
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View File

@ -0,0 +1,81 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
doxygen,
boost,
eigen,
assimp,
octomap,
qhull,
pythonSupport ? false,
python3Packages,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hpp-fcl";
version = "2.4.5";
src = fetchFromGitHub {
owner = "humanoid-path-planner";
repo = "hpp-fcl";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
doxygen
] ++ lib.optionals pythonSupport [ python3Packages.numpy ];
propagatedBuildInputs =
[
assimp
qhull
octomap
zlib
]
++ lib.optionals (!pythonSupport) [
boost
eigen
]
++ lib.optionals pythonSupport [
python3Packages.boost
python3Packages.eigenpy
];
cmakeFlags = [
(lib.cmakeBool "HPP_FCL_HAS_QHULL" true)
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
];
doCheck = true;
# pythonImportsCheck, but in stdenv.mkDerivation
postInstall = lib.optionalString pythonSupport ''
PYTHONPATH=$out/${python3Packages.python.sitePackages}:$PYTHONPATH
python -c "import hppfcl"
'';
outputs = [
"dev"
"out"
"doc"
];
postFixup = ''
moveToOutput share/ament_index "$dev"
moveToOutput share/${finalAttrs.pname} "$dev"
'';
meta = {
description = "Extension of the Flexible Collision Library";
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ nim65s ];
};
})

View File

@ -1,9 +1,11 @@
{ lib {
, python3 lib,
, fetchFromGitHub python3,
, fetchpatch fetchFromGitHub,
, which fetchpatch,
, acpica-tools which,
acpica-tools,
nix-update-script,
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
@ -38,18 +40,20 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ acpica-tools ]; nativeBuildInputs = [ acpica-tools ];
propagatedBuildInputs = (with python3.pkgs; [ propagatedBuildInputs =
setuptools (with python3.pkgs; [
ecdsa setuptools
cstruct ecdsa
pyelftools cstruct
pytest pyelftools
cached-property pytest
frozendict cached-property
]) ++ [ frozendict
acpica-tools ])
which ++ [
]; acpica-tools
which
];
postInstall = '' postInstall = ''
mkdir -p $out/share/igvm-tooling/acpi/acpi-clh mkdir -p $out/share/igvm-tooling/acpi/acpi-clh
@ -58,11 +62,16 @@ python3.pkgs.buildPythonApplication rec {
find $out/share/igvm-tooling/acpi -name "*.dsl" -exec iasl -f {} \; find $out/share/igvm-tooling/acpi -name "*.dsl" -exec iasl -f {} \;
''; '';
passthru.updateScript = nix-update-script { };
meta = { meta = {
description = "IGVM Image Generator"; description = "IGVM Image Generator";
homepage = "https://github.com/microsoft/igvm-tooling"; homepage = "https://github.com/microsoft/igvm-tooling";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ malt3 katexochen ]; maintainers = with lib.maintainers; [
malt3
katexochen
];
changelog = "https://github.com/microsoft/igvm-tooling/releases/tag/igvm-${version}"; changelog = "https://github.com/microsoft/igvm-tooling/releases/tag/igvm-${version}";
mainProgram = "igvmgen"; mainProgram = "igvmgen";
platforms = lib.platforms.all; platforms = lib.platforms.all;

View File

@ -0,0 +1,46 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
# nativeBuildInputs
pkg-config,
# buildInputs
openssl,
darwin,
}:
rustPlatform.buildRustPackage {
pname = "inv-sig-helper";
version = "0-unstable-2024-08-17";
src = fetchFromGitHub {
owner = "iv-org";
repo = "inv_sig_helper";
rev = "215d32c76e5e9e598de6e4f8542316f80dd92f57";
hash = "sha256-Ge0XoWrscyZSrkmtDPkAnv96IVylKZTcgGgonbFV43I=";
};
cargoHash = "sha256-JVpLUhNJ7/4WZwLn/zOurpP8kF5WblF3nphJh6keHG8=";
nativeBuildInputs = [
pkg-config
];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
meta = {
description = "Rust service that decrypts YouTube signatures and manages player information";
homepage = "https://github.com/iv-org/inv_sig_helper";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "inv_sig_helper_rust";
};
}

View File

@ -0,0 +1,27 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "leftwm-config";
version = "0-unstable-2024-03-13";
src = fetchFromGitHub {
owner = "leftwm";
repo = "leftwm-config";
rev = "a9f2f21ece3a01d6c36610295ae3163644d3f99e";
hash = "sha256-wyb/26EyNyBJeTDUvnMxlMiQjaCGBES8t4VteNY1I/A=";
};
cargoHash = "sha256-U3mgbG9h2cDqr0aqxbI2CJUOweIoDXDxmsWg0zxolSo=";
meta = {
description = "Little satellite utility for LeftWM";
homepage = "https://github.com/leftwm/leftwm-config";
maintainers = with lib.maintainers; [ denperidge ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};
}

View File

@ -0,0 +1,43 @@
{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
}:
rustPlatform.buildRustPackage {
pname = "leftwm-theme";
version = "unstable-2024-03-05";
src = fetchFromGitHub {
owner = "leftwm";
repo = "leftwm-theme";
rev = "b394824ff874b269a90c29e2d45b0cacc4d209f5";
hash = "sha256-cV4tY1qKNluSSGf+WwKFK3iVE7cMevafl6qQvhy1flE=";
};
cargoHash = "sha256-VEQn1LFXiZCVR2WgOFoHo18d3cdIoq9/zNjg8GMs0j8=";
checkFlags = [
# direct writing /tmp
"--skip=models::config::test::test_config_new"
# with network access when testing
"--skip=operations::update::test::test_update_repos"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
env = {
OPENSSL_NO_VENDOR = 1;
};
meta = {
description = "Theme manager for LeftWM";
homepage = "https://github.com/leftwm/leftwm-theme";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ denperidge ];
};
}

View File

@ -6,13 +6,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "oelint-adv"; pname = "oelint-adv";
version = "5.7.2"; version = "6.0.0";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "oelint_adv"; pname = "oelint_adv";
hash = "sha256-nHtOSOAKbmbmihaL8qvXBOB76LaC9E95UFQ479X/Rgo="; hash = "sha256-tN+DHLj/sey8CipQT5nnwym0JkiIkR8WJg2jKys+4Yk=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [

View File

@ -6,14 +6,14 @@
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "renode-dts2repl"; pname = "renode-dts2repl";
version = "0-unstable-2024-08-30"; version = "0-unstable-2024-09-05";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "antmicro"; owner = "antmicro";
repo = "dts2repl"; repo = "dts2repl";
rev = "231e1330c3210d31f08bf739ef69f096f0732291"; rev = "3444d8aa86bb4ad3907c7d6886feafd65b8c2ff8";
hash = "sha256-oD67tMJ23FBZzELtTdFZ2E7AtKs9m3T6L1rRuibfvY8="; hash = "sha256-aHSuu9dYmY4ZKs6bzJostzeO1hFgkt/VBAbs2Ntj6dU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,31 +1,27 @@
{ lib {
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
, fetchpatch fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "snicat"; pname = "snicat";
version = "0.0.1"; version = "0.0.1-unstable-2024-09-05";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "CTFd"; owner = "CTFd";
repo = "snicat"; repo = "snicat";
rev = version; rev = "8c8f06e59d5aedb9a97115a4e0eafa75b17a6cdf";
hash = "sha256-fFlTBOz127le2Y7F9KKhbcldcyFEpAU5QiJ4VCAPs9Y="; hash = "sha256-71wVth+VzEnGW8ErWmj6XjhNtVpx/q8lViIA71njwqU=";
}; };
patches = [
# Migrate to Go modules
(fetchpatch {
url = "https://github.com/CTFd/snicat/commit/098a5ce3141bae5d2e188338d78517d710d10f70.patch";
hash = "sha256-pIdXViUz14nkvL1H3u3oFkm308XA2POtKIGZOKDO6p8=";
})
];
vendorHash = "sha256-27ykI9HK1jFanxwa6QrN6ZS548JbFNSZHaXr4ciCVOE="; vendorHash = "sha256-27ykI9HK1jFanxwa6QrN6ZS548JbFNSZHaXr4ciCVOE=";
proxyVendor = true; proxyVendor = true;
ldflags = [ "-s" "-X main.version=v${version}" ]; ldflags = [
"-s"
"-X main.version=v${version}"
];
postInstall = '' postInstall = ''
mv $out/bin/snicat $out/bin/sc mv $out/bin/snicat $out/bin/sc

View File

@ -5,13 +5,13 @@
buildGoModule rec { buildGoModule rec {
pname = "templ"; pname = "templ";
version = "0.2.771"; version = "0.2.778";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "a-h"; owner = "a-h";
repo = "templ"; repo = "templ";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-1S8rdq+dRVh5NulXZw70TC5NjaWb6YdIfT6NcZTvx8U="; hash = "sha256-lU8aVTw73HX0lNGPyD8Xnvtnr2VFTXv/S6xCVn6Lg74=";
}; };
vendorHash = "sha256-ZWY19f11+UI18jeHYIEZjdb9Ii74mD6w+dYRLPkdfBU="; vendorHash = "sha256-ZWY19f11+UI18jeHYIEZjdb9Ii74mD6w+dYRLPkdfBU=";

View File

@ -1,8 +1,11 @@
{ lib {
, fetchFromGitHub lib,
, buildGoModule fetchFromGitHub,
, installShellFiles buildGoModule,
installShellFiles,
nix-update-script,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "uplosi"; pname = "uplosi";
version = "0.3.0"; version = "0.3.0";
@ -17,7 +20,10 @@ buildGoModule rec {
vendorHash = "sha256-o7PPgW3JL47G6Na5n9h3RasRMfU25FD1U/wCMaydRmc="; vendorHash = "sha256-o7PPgW3JL47G6Na5n9h3RasRMfU25FD1U/wCMaydRmc=";
CGO_ENABLED = "0"; CGO_ENABLED = "0";
ldflags = [ "-s" "-w" "-X main.version=${version}" ]; ldflags = [
"-s"
"-X main.version=${version}"
];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
@ -28,13 +34,18 @@ buildGoModule rec {
--zsh <($out/bin/uplosi completion zsh) --zsh <($out/bin/uplosi completion zsh)
''; '';
meta = with lib; { passthru.updateScript = nix-update-script { };
meta = {
description = "Upload OS images to cloud provider"; description = "Upload OS images to cloud provider";
homepage = "https://github.com/edgelesssys/uplosi"; homepage = "https://github.com/edgelesssys/uplosi";
changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}"; changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}";
license = licenses.asl20; license = lib.licenses.asl20;
mainProgram = "uplosi"; mainProgram = "uplosi";
maintainers = with maintainers; [ katexochen malt3 ]; maintainers = with lib.maintainers; [
platforms = platforms.unix; katexochen
malt3
];
platforms = lib.platforms.unix;
}; };
} }

View File

@ -0,0 +1,78 @@
{
lib,
fetchgit,
unstableGitUpdater,
stdenv,
doxygen,
graphviz,
python3Packages,
}:
stdenv.mkDerivation {
pname = "xtf";
version = "0-unstable-2024-07-25";
outputs = [
"out" # xtf-runner and test suite.
"doc" # Autogenerated HTML documentation website.
"dev" # Development headers.
];
src = fetchgit {
url = "https://xenbits.xenproject.org/git-http/xtf.git";
rev = "f37c4574dd79d058c035be989ac6648508556a1a";
hash = "sha256-3eOKQXdyFX0iY90UruK8lLfnXQt+cOlvyW/KMj2hczQ=";
};
nativeBuildInputs =
(with python3Packages; [
python
wrapPython
])
++ [
doxygen
graphviz
];
buildFlags = [ "doxygen" ];
installFlags = [
"xtfdir=$(out)/share/xtf"
];
postInstall =
# Much like Xen, XTF installs its files to dist/nix/store/*/*,
# so we need to copy them to the right place.
''
mkdir -p ''${!outputBin}/share
cp -prvd dist/nix/store/*/* ''${!outputBin}
''
# The documentation and development headers aren't in the dist/
# folder, so we copy those too.
+ ''
mkdir -p ''${!outputDoc}/share/doc/xtf
cp -prvd docs/autogenerated/html ''${!outputDoc}/share/doc/xtf
mkdir -p ''${!outputDev}/include
cp -prvd include ''${!outputDev}
''
# Wrap xtf-runner, and link it to $out/bin.
# This is necessary because the real xtf-runner should
# be in the same directory as the tests/ directory.
+ ''
wrapPythonProgramsIn "''${!outputBin}/share/xtf" "''${!outputBin} $pythonPath"
mkdir -p ''${!outputBin}/bin
ln -s ''${!outputBin}/share/xtf/xtf-runner ''${!outputBin}/bin/xtf-runner
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Xen Test Framework and Suite for creating microkernel-based tests";
homepage = "https://xenbits.xenproject.org/docs/xtf/index.html";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sigmasquadron ];
mainProgram = "xtf-runner";
platforms = lib.lists.intersectLists lib.platforms.linux lib.platforms.x86_64;
};
}

View File

@ -55,16 +55,16 @@ assert (extraParameters != null) -> set != null;
buildNpmPackage rec { buildNpmPackage rec {
pname = "Iosevka${toString set}"; pname = "Iosevka${toString set}";
version = "31.5.0"; version = "31.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "be5invis"; owner = "be5invis";
repo = "iosevka"; repo = "iosevka";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-kjydpYLOw1uZGmedemZKey0go8DRmgnUq5nrVM0NfxY="; hash = "sha256-5FqfJCquF26Mbpm2pN9P1gg4B2nASZz9utFJWBgScLY=";
}; };
npmDepsHash = "sha256-PpoSzHQMqdlGfcWvIH34ATcf4HZB+VbA6X7zqzV9xZk="; npmDepsHash = "sha256-/qx+pnXbAgdkUCHH2SQSgI0omjrL3PLtni3iLbswd3c=";
nativeBuildInputs = [ nativeBuildInputs = [
remarshal remarshal

View File

@ -1,46 +0,0 @@
diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
index 3e04f340..894b0ac7 100755
--- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
+++ b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
@@ -20,13 +20,8 @@ DEFINES += USE_SYSTEM_LIBJPEG \
USE_SYSTEM_LIBOPENJPEG2 \
USE_SYSTEM_FREETYPE
-INCLUDEPATH += /usr/include/openjpeg-2.3 \
- /usr/include/openjpeg-2.4 \
- /usr/include/freetype2 \
- /usr/include/freetype2/freetype \
- /usr/include/freetype2/freetype/config
-
-LIBS += -lopenjp2 -llcms2 -lfreetype
+CONFIG += link_pkgconfig
+PKGCONFIG += libopenjp2 lcms2 freetype2
#QMAKE_CXXFLAGS += "-Wc++11-narrowing" #is_clang
#QMAKE_CXXFLAGS += "-Wno-inconsistent-missing-override" #is_clang Suppress no override warning for overridden functions.
diff --git a/3rdparty/deepin-pdfium/src/src.pro b/3rdparty/deepin-pdfium/src/src.pro
index 196b91d3..bda71ff4 100755
--- a/3rdparty/deepin-pdfium/src/src.pro
+++ b/3rdparty/deepin-pdfium/src/src.pro
@@ -2,7 +2,9 @@ TARGET = $$PWD/../lib/deepin-pdfium
TEMPLATE = lib
-CONFIG += c++14
+CONFIG += c++14 link_pkgconfig
+
+PKGCONFIG += chardet
###安全漏洞检测
#QMAKE_CXX += -g -fsanitize=undefined,address -O2
@@ -28,10 +30,6 @@ include($$PWD/3rdparty/pdfium/pdfium.pri)
INCLUDEPATH += $$PWD/../include
-INCLUDEPATH += /usr/include/chardet
-
-LIBS += -lchardet
-
public_headers += \
$$PWD/../include/dpdfglobal.h \
$$PWD/../include/dpdfdoc.h \

View File

@ -42,6 +42,7 @@
, gtk3 , gtk3
, glib , glib
, writeShellScript , writeShellScript
, versionCheckHook
}: }:
let let
@ -254,6 +255,13 @@ stdenv.mkDerivation (finalAttrs: {
pos = __curPos; pos = __curPos;
meta = import ./meta.nix lib featureVersion; meta = import ./meta.nix lib featureVersion;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/java";
doInstallCheck = true;
passthru = { passthru = {
updateScript = updateScript =
let let

View File

@ -1,74 +0,0 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, doxygen
, boost
, eigen
, assimp
, octomap
, qhull
, pythonSupport ? false
, python3Packages
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hpp-fcl";
version = "2.4.5";
src = fetchFromGitHub {
owner = "humanoid-path-planner";
repo = "hpp-fcl";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
doxygen
] ++ lib.optionals pythonSupport [
python3Packages.numpy
];
propagatedBuildInputs = [
assimp
qhull
octomap
] ++ lib.optionals (!pythonSupport) [
boost
eigen
] ++ lib.optionals pythonSupport [
python3Packages.boost
python3Packages.eigenpy
];
cmakeFlags = [
"-DHPP_FCL_HAS_QHULL=ON"
"-DINSTALL_DOCUMENTATION=ON"
] ++ lib.optionals (!pythonSupport) [
"-DBUILD_PYTHON_INTERFACE=OFF"
];
doCheck = true;
pythonImportsCheck = lib.optionals (!pythonSupport) [
"hppfcl"
];
outputs = [ "dev" "out" "doc" ];
postFixup = ''
moveToOutput share/ament_index "$dev"
moveToOutput share/${finalAttrs.pname} "$dev"
'';
meta = with lib; {
description = "Extension of the Flexible Collision Library";
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
license = licenses.bsd3;
maintainers = with maintainers; [ nim65s ];
platforms = platforms.unix;
};
})

View File

@ -18,7 +18,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cwl-utils"; pname = "cwl-utils";
version = "0.33"; version = "0.34";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "common-workflow-language"; owner = "common-workflow-language";
repo = "cwl-utils"; repo = "cwl-utils";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-+GvG5Uu2nQWYCcuAkBkegsmMCWhf269jH6Zcex99I4M="; hash = "sha256-HzLDUhiFegYPWAKt3YoiWiunNHcDEx9FvRXwxKd7wp0=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -14,31 +14,32 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-auth-oauthlib"; pname = "google-auth-oauthlib";
version = "1.2.0"; version = "1.2.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "google_auth_oauthlib";
hash = "sha256-KS0tN4M0nysHNKCgIHseHjIqwZPCwJ2PfGE/t8xQHqg="; inherit version;
hash = "sha256-r9DK0JKi6qU82OgphVfW3hA0xstKdAUAtTV7ZIr5cmM=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ dependencies = [
google-auth google-auth
requests-oauthlib requests-oauthlib
]; ];
passthru.optional-dependencies = { optional-dependencies = {
tool = [ click ]; tool = [ click ];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
mock mock
pytestCheckHook pytestCheckHook
] ++ passthru.optional-dependencies.tool; ] ++ optional-dependencies.tool;
disabledTests = disabledTests =
[ [
@ -53,11 +54,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "google_auth_oauthlib" ]; pythonImportsCheck = [ "google_auth_oauthlib" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v${version}/CHANGELOG.md";
description = "Google Authentication Library: oauthlib integration"; description = "Google Authentication Library: oauthlib integration";
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib"; homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
changelog = "https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
mainProgram = "google-oauthlib-tool";
maintainers = with maintainers; [ terlar ]; maintainers = with maintainers; [ terlar ];
mainProgram = "google-oauthlib-tool";
}; };
} }

View File

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mkdocstrings"; pname = "mkdocstrings";
version = "0.26.0"; version = "0.26.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "mkdocstrings"; owner = "mkdocstrings";
repo = "mkdocstrings"; repo = "mkdocstrings";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-266Kd3jp35RBvN1t11OiWszV5ehsZUXZxXpU+dA9XSg="; hash = "sha256-YV9Cncry+RXXGxRYN4dXp5E2msGA4Kq2QSvcPywWV2c=";
}; };
postPatch = '' postPatch = ''

View File

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "publicsuffixlist"; pname = "publicsuffixlist";
version = "1.0.2.20240906"; version = "1.0.2.20240907";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-AHvj0eyJKPGXEIk6Cu/q2cDDiGCDH/QvBPGm9Cfy2w8="; hash = "sha256-+DzSFzdgGyirt8X+vW7fzofyHOLXbuVySxV+8CZ5ZlQ=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyaussiebb"; pname = "pyaussiebb";
version = "0.1.1"; version = "0.1.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -21,23 +21,23 @@ buildPythonPackage rec {
owner = "yaleman"; owner = "yaleman";
repo = "aussiebb"; repo = "aussiebb";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-XNf9vYMlTLqhYIVNw9GjPcXpOm5EYCcC4aGukR8g3zc="; hash = "sha256-IW2HraJbgvf0G1eRXNpnsPMWlLXi2P9DTyk+tG5Hc2U=";
}; };
nativeBuildInputs = [ poetry-core ]; postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'requests = "^2.27.1"' 'requests = "*"'
'';
propagatedBuildInputs = [ build-system = [ poetry-core ];
dependencies = [
aiohttp aiohttp
requests requests
loguru loguru
pydantic pydantic
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'requests = "^2.27.1"' 'requests = "*"'
'';
# Tests require credentials and requests-testing # Tests require credentials and requests-testing
doCheck = false; doCheck = false;

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyexploitdb"; pname = "pyexploitdb";
version = "0.2.33"; version = "0.2.34";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "pyExploitDb"; pname = "pyExploitDb";
inherit version; inherit version;
hash = "sha256-K7IK1Cc8SvEgGvszEnSZepQ+ZvqoVdd+7QdnFk7imTk="; hash = "sha256-5vWR6LNJknxVQ5Mmgw+c4clXhVQsHc68R1MMdzdsMgM=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pypoolstation"; pname = "pypoolstation";
version = "0.5.4"; version = "0.5.6";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-SA5Eqz0WoisVVAjeKQymVh17+fHa7SuiYXgOL2BiJcc="; hash = "sha256-E5/Z7TgIZlbIDB9I+DJI812ce8ctidDAXGCHBFzk7F8=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];

View File

@ -9,18 +9,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-xz"; pname = "python-xz";
version = "0.5.0"; version = "0.5.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q="; hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q=";
}; };
nativeBuildInputs = [ setuptools-scm ]; build-system = [ setuptools-scm ];
# has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "xz" ]; pythonImportsCheck = [ "xz" ];
@ -28,6 +28,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Pure Python library for seeking within compressed xz files"; description = "Pure Python library for seeking within compressed xz files";
homepage = "https://github.com/Rogdham/python-xz"; homepage = "https://github.com/Rogdham/python-xz";
changelog = "https://github.com/Rogdham/python-xz/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ mxmlnkn ]; maintainers = with lib.maintainers; [ mxmlnkn ];
platforms = platforms.all; platforms = platforms.all;

View File

@ -2,26 +2,43 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pythonOlder,
fusepy, fusepy,
indexed-gzip,
indexed-zstd,
libarchive-c,
python-xz,
pythonOlder,
rapidgzip,
rarfile,
ratarmountcore, ratarmountcore,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ratarmount"; pname = "ratarmount";
version = "0.15.1"; version = "0.15.2";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-hprXZGgE2fpg8Km3gWO60e7teUB4Age5skNPc4p+wIg="; hash = "sha256-1JAj9vA/aZLDvZC7j5PD1OL9n4I0gag4Ezc0i68OQsw=";
}; };
propagatedBuildInputs = [ pythonRelaxDeps = [ "python-xz" ];
ratarmountcore
build-system = [ setuptools ];
dependencies = [
fusepy fusepy
indexed-gzip
indexed-zstd
libarchive-c
python-xz
rapidgzip
rarfile
ratarmountcore
]; ];
checkPhase = '' checkPhase = ''
@ -34,10 +51,10 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Mounts archives as read-only file systems by way of indexing"; description = "Mounts archives as read-only file systems by way of indexing";
mainProgram = "ratarmount";
homepage = "https://github.com/mxmlnkn/ratarmount"; homepage = "https://github.com/mxmlnkn/ratarmount";
changelog = "https://github.com/mxmlnkn/ratarmount/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ mxmlnkn ]; maintainers = with lib.maintainers; [ mxmlnkn ];
platforms = platforms.all; mainProgram = "ratarmount";
}; };
} }

View File

@ -2,53 +2,61 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder,
pytestCheckHook,
indexed-bzip2,
indexed-gzip, indexed-gzip,
indexed-zstd, indexed-zstd,
libarchive-c,
pytestCheckHook,
python-xz, python-xz,
setuptools, pythonOlder,
rapidgzip, rapidgzip,
rarfile, rarfile,
setuptools,
zstandard, # Python bindings zstandard, # Python bindings
zstd, # System tool zstd, # System tool
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ratarmountcore"; pname = "ratarmountcore";
version = "0.6.3"; version = "0.7.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mxmlnkn"; owner = "mxmlnkn";
repo = "ratarmount"; repo = "ratarmount";
rev = "core-v${version}"; rev = "core-v${version}";
hash = "sha256-2jG066BUkhyHRqRyFAucQRJrjXQNw2ccCxERKkltO3Y="; hash = "sha256-2LPGKdofx2ID8BU0dZhGiZ3tUkd+niEVGvTSBFX4InU=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
sourceRoot = "${src.name}/core"; sourceRoot = "${src.name}/core";
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [
indexed-gzip
indexed-bzip2
indexed-zstd
python-xz
rapidgzip
rarfile
];
pythonImportsCheck = [ "ratarmountcore" ]; optional-dependencies = {
full = [
indexed-gzip
indexed-zstd
python-xz
rapidgzip
rarfile
];
_7z = [ libarchive-c ];
bzip2 = [ rapidgzip ];
gzip = [ indexed-gzip ];
rar = [ rarfile ];
xz = [ python-xz ];
zstd = [ indexed-zstd ];
};
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
zstandard zstandard
zstd zstd
]; ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "ratarmountcore" ];
disabledTestPaths = [ disabledTestPaths = [
# Disable this test because for arcane reasons running pytest with nix-build uses 10-100x # Disable this test because for arcane reasons running pytest with nix-build uses 10-100x
@ -60,9 +68,17 @@ buildPythonPackage rec {
"tests/test_BlockParallelReaders.py" "tests/test_BlockParallelReaders.py"
]; ];
disabledTests = [
# Tests with issues
"test_file_versions"
"test_stream_compressed"
"test_chimera_file"
];
meta = with lib; { meta = with lib; {
description = "Library for accessing archives by way of indexing"; description = "Library for accessing archives by way of indexing";
homepage = "https://github.com/mxmlnkn/ratarmount/tree/master/core"; homepage = "https://github.com/mxmlnkn/ratarmount/tree/master/core";
changelog = "https://github.com/mxmlnkn/ratarmount/blob/core-v${version}/core/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ mxmlnkn ]; maintainers = with lib.maintainers; [ mxmlnkn ];
}; };

View File

@ -28,7 +28,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ydata-profiling"; pname = "ydata-profiling";
version = "4.8.3"; version = "4.9.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -36,14 +36,18 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ydataai"; owner = "ydataai";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/v${version}";
hash = "sha256-tMwhoVnn65EvZK5NBvh/G36W8tH7I9qaL+NTK3IZVdI="; hash = "sha256-OZCgtnsLXLJ0m1t/mWqQTbFL8DPKaR9Tr7QCGT2HpvE=";
}; };
preBuild = '' preBuild = ''
echo ${version} > VERSION echo ${version} > VERSION
''; '';
pythonRelaxDeps = [
"scipy"
];
propagatedBuildInputs = [ propagatedBuildInputs = [
dacite dacite
htmlmin htmlmin

View File

@ -6,11 +6,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sgt-puzzles"; pname = "sgt-puzzles";
version = "20240827.52afffa"; version = "20240909.53ceb98";
src = fetchurl { src = fetchurl {
url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz"; url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz";
hash = "sha256-G+FZnr7+XvvxDpBWyH4Dv8NEjSWTXDoVNzbzNpMTbLg="; hash = "sha256-BRbTm6dnogzkAVYZjQ8/YTEB4A8edNa2yymR3KlqAE4=";
}; };
sgt-puzzles-menu = fetchurl { sgt-puzzles-menu = fetchurl {

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl { lib, stdenv, fetchurl, fetchpatch
, file, openssl, perl, nettools , file, openssl, perl, nettools
, autoreconfHook , autoreconfHook
, withPerlTools ? false , withPerlTools ? false
@ -27,7 +27,11 @@ in stdenv.mkDerivation rec {
in [ in [
(fetchAlpinePatch "fix-includes.patch" "0zpkbb6k366qpq4dax5wknwprhwnhighcp402mlm7950d39zfa3m") (fetchAlpinePatch "fix-includes.patch" "0zpkbb6k366qpq4dax5wknwprhwnhighcp402mlm7950d39zfa3m")
(fetchAlpinePatch "netsnmp-swinst-crash.patch" "0gh164wy6zfiwiszh58fsvr25k0ns14r3099664qykgpmickkqid") (fetchAlpinePatch "netsnmp-swinst-crash.patch" "0gh164wy6zfiwiszh58fsvr25k0ns14r3099664qykgpmickkqid")
(fetchAlpinePatch "fix-fd_mask.patch" "/i9ve61HjDzqZt+u1wajNtSQoizl+KePvhcAt24HKd0=") (fetchpatch {
name = "configure-musl.patch";
url = "https://github.com/net-snmp/net-snmp/commit/a62169f1fa358be8f330ea8519ade0610fac525b.patch";
hash = "sha256-+vWH095fFL3wE6XLsTaPXgMDya0LRWdlL6urD5AIBUs=";
})
]; ];
outputs = [ "bin" "out" "dev" "lib" ]; outputs = [ "bin" "out" "dev" "lib" ];

View File

@ -0,0 +1,38 @@
{
php,
fetchFromGitHub,
lib,
}:
php.buildComposerProject (finalAttrs: {
pname = "hmr_enabler";
# composer doesn't support our unstable version format
# version = "0-unstable-2024-08-24";
version = "0";
src = fetchFromGitHub {
owner = "nextcloud";
repo = "hmr_enabler";
rev = "d5d9d330d405ac4aa0de1a87d1133784560462ed";
hash = "sha256-uLCpwvMVQ20z9vlO5q/GVPnaaQZ7ZjE8+V/zuqaB9Yo=";
};
composerNoDev = false;
vendorHash = "sha256-ZuEEcFT+q49CCooEwdiu2Co345s0ZCC7jeEksi6A99A=";
postInstall = ''
chmod -R u+w $out/share
mv $out/share/php/hmr_enabler/* $out/
rm -r $out/share $out/composer.* $out/Makefile $out/psalm.xml $out/tests
'';
meta = {
description = " Development Nextcloud app to enable apps to use hot module reloading";
homepage = "https://github.com/nextcloud/hmr_enabler";
changelog = "https://github.com/nextcloud/hmr_enabler/blob/master/CHANGELOG.md";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ onny ];
};
})

View File

@ -2,28 +2,58 @@
# Licensed under: MIT # Licensed under: MIT
# Slightly modified # Slightly modified
{ lib, pkgs, newScope, apps }: {
lib,
pkgs,
newScope,
apps,
callPackage,
}:
let packages = self: let
let packages =
generatedJson = { self:
inherit apps; let
}; generatedJson = {
appBaseDefs = builtins.fromJSON (builtins.readFile ./nextcloud-apps.json); inherit apps;
};
appBaseDefs = builtins.fromJSON (builtins.readFile ./nextcloud-apps.json);
in { in
# Create a derivation from the official Nextcloud apps. {
# This takes the data generated from the go tool. # Create a derivation from the official Nextcloud apps.
mkNextcloudDerivation = self.callPackage ({ }: { pname, data }: # This takes the data generated from the go tool.
pkgs.fetchNextcloudApp { mkNextcloudDerivation = self.callPackage (
appName = pname; { }:
appVersion = data.version; { pname, data }:
license = appBaseDefs.${pname}; pkgs.fetchNextcloudApp {
inherit (data) url hash description homepage; appName = pname;
}) {}; appVersion = data.version;
license = appBaseDefs.${pname};
inherit (data)
url
hash
description
homepage
;
}
) { };
} // lib.mapAttrs (type: pkgs: }
lib.makeExtensible (_: lib.mapAttrs (pname: data: self.mkNextcloudDerivation { inherit pname; inherit data; }) pkgs)) // lib.mapAttrs (
generatedJson; type: pkgs:
lib.makeExtensible (
_:
lib.mapAttrs (
pname: data:
self.mkNextcloudDerivation {
inherit pname data;
}
) pkgs
)
) generatedJson;
in (lib.makeExtensible (_: (lib.makeScope newScope packages))).extend (selfNC: superNC: {}) in
(lib.makeExtensible (_: (lib.makeScope newScope packages))).extend (
import ./thirdparty.nix
)

View File

@ -0,0 +1,12 @@
_:
{ apps, callPackage, ... }:
{
apps = apps.extend (
self: super: {
hmr_enabler = callPackage ./apps/hmr_enabler.nix { };
}
);
}

View File

@ -11,8 +11,8 @@
let let
apexcharts = fetchurl { apexcharts = fetchurl {
url = "https://cdn.jsdelivr.net/npm/apexcharts@3.50.0/dist/apexcharts.min.js"; url = "https://cdn.jsdelivr.net/npm/apexcharts@3.52.0/dist/apexcharts.min.js";
hash = "sha256-pLaS+eABqnCs0TLhRUEBQVLeF7RSlW5LjsmS7eV4iKI="; hash = "sha256-2sxp9+shRA5LMxzhgx+fpeQPIY2ZWgBdt4mp5V2Yn+E=";
}; };
tablerCss = fetchurl { tablerCss = fetchurl {
url = "https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta20/dist/css/tabler.min.css"; url = "https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta20/dist/css/tabler.min.css";
@ -42,18 +42,18 @@ in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "sqlpage"; pname = "sqlpage";
version = "0.25.0"; version = "0.28.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lovasoa"; owner = "lovasoa";
repo = "SQLpage"; repo = "SQLpage";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ixxTaJ72EqGqvopcIr/7kRfFyK9p5laAmu7+jR5Tp1I="; hash = "sha256-veqkHjIbR4qENarmXHakDDG4Rxq9mUD/io+dfwaWAqg=";
}; };
postPatch = '' postPatch = ''
substituteInPlace sqlpage/apexcharts.js \ substituteInPlace sqlpage/apexcharts.js \
--replace-fail '/* !include https://cdn.jsdelivr.net/npm/apexcharts@3.50.0/dist/apexcharts.min.js */' \ --replace-fail '/* !include https://cdn.jsdelivr.net/npm/apexcharts@3.52.0/dist/apexcharts.min.js */' \
"$(cat ${apexcharts})" "$(cat ${apexcharts})"
substituteInPlace sqlpage/sqlpage.css \ substituteInPlace sqlpage/sqlpage.css \
--replace-fail '/* !include https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta20/dist/css/tabler.min.css */' \ --replace-fail '/* !include https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta20/dist/css/tabler.min.css */' \
@ -75,7 +75,7 @@ rustPlatform.buildRustPackage rec {
"$(cat ${tomselect})" "$(cat ${tomselect})"
''; '';
cargoHash = "sha256-yD82/h5dgcvp8OBfAoRfkq+YsauPncaRjfGM7dRQq5E="; cargoHash = "sha256-idX3uU1nSI2a93srlJ1HvKcwVD0C4FmkQKTEYod5qgg=";
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config

View File

@ -149,7 +149,6 @@ lib/engines-3/capi.so
lib/engines-3/devcrypto.so lib/engines-3/devcrypto.so
lib/engines-3/loader_attic.so lib/engines-3/loader_attic.so
lib/engines-3/padlock.so lib/engines-3/padlock.so
lib/freebsd/libclang_rt.builtins-x86_64.a
lib/gawk/filefuncs.so lib/gawk/filefuncs.so
lib/gawk/fnmatch.so lib/gawk/fnmatch.so
lib/gawk/fork.so lib/gawk/fork.so

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
downloadPage = "https://git.infradead.org/mtd-utils.git"; downloadPage = "https://git.infradead.org/mtd-utils.git";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
homepage = "http://www.linux-mtd.infradead.org/"; homepage = "http://www.linux-mtd.infradead.org/";
maintainers = [ ]; maintainers = with lib.maintainers; [ skeuchel ];
platforms = with platforms; linux; platforms = with platforms; linux;
}; };
} }

View File

@ -23,5 +23,9 @@ stdenv.mkDerivation rec {
license = lib.licenses.free; license = lib.licenses.free;
maintainers = [ ]; maintainers = [ ];
platforms = with lib.platforms; unix; platforms = with lib.platforms; unix;
knownVulnerabilities = [
"CVE-2023-50671"
"CVE-2024-42851"
];
}; };
} }

View File

@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
especially over Wi-Fi, cellular, and long-distance links. especially over Wi-Fi, cellular, and long-distance links.
''; '';
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ ]; maintainers = with lib.maintainers; [ skeuchel ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -18,15 +18,15 @@
, tree ? null , tree ? null
}: }:
stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: {
pname = "passage"; pname = "passage";
version = "unstable-2022-05-01"; version = "1.7.4a2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FiloSottile"; owner = "FiloSottile";
repo = "passage"; repo = "passage";
rev = "1262d308f09db9b243513a428ab4b8fb1c30d31d"; rev = "${finalAttrs.version}";
sha256 = "1val8wl9kzlxj4i1rrh2iiyf97w9akffvr0idvbkdb09hfzz4lz8"; hash = "sha256-tGHJFzDc2K117r5EMFdKsfw/+EpdZ0qzaExt+RGI4qo=";
}; };
patches = [ patches = [
@ -77,4 +77,4 @@ stdenv.mkDerivation {
passwords. passwords.
''; '';
}; };
} })

View File

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "igrep"; pname = "igrep";
version = "1.2.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "konradsz"; owner = "konradsz";
repo = "igrep"; repo = "igrep";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-L5mHuglU0CvTi02pbR8xfezBoH8L/DS+7jgvYvb4yro="; hash = "sha256-ZZhzBGLpzd9+rok+S/ypKpWXVzXaA1CnviC7LfgP/CU=";
}; };
cargoHash = "sha256-k63tu5Ffus4z0yd8vQ79q4+tokWAXD05Pvv9JByfnDg="; cargoHash = "sha256-raSz/+u7P04qHmvdfYoWKOKtNtaFlgmT8Nw0ImhCMkU=";
buildInputs = lib.optionals stdenv.isDarwin [ Security ]; buildInputs = lib.optionals stdenv.isDarwin [ Security ];

View File

@ -5543,11 +5543,6 @@ with pkgs;
loccount = callPackage ../development/tools/misc/loccount { }; loccount = callPackage ../development/tools/misc/loccount { };
logseq = callPackage ../by-name/lo/logseq/package.nix {
# electron version from: https://github.com/logseq/logseq/blob/0.10.9/package.json#L116
electron = electron_27;
};
long-shebang = callPackage ../misc/long-shebang { }; long-shebang = callPackage ../misc/long-shebang { };
lssecret = callPackage ../misc/lssecret {}; lssecret = callPackage ../misc/lssecret {};
@ -20680,8 +20675,6 @@ with pkgs;
hound = callPackage ../development/tools/misc/hound { }; hound = callPackage ../development/tools/misc/hound { };
hpp-fcl = callPackage ../development/libraries/hpp-fcl { };
hpx = callPackage ../development/libraries/hpx { hpx = callPackage ../development/libraries/hpx {
boost = boost179; boost = boost179;
asio = asio.override { boost = boost179; }; asio = asio.override { boost = boost179; };
@ -34927,7 +34920,7 @@ with pkgs;
lndmanage = callPackage ../applications/blockchains/lndmanage { }; lndmanage = callPackage ../applications/blockchains/lndmanage { };
monero-cli = callPackage ../applications/blockchains/monero-cli { monero-cli = callPackage ../applications/blockchains/monero-cli {
inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC; inherit (darwin.apple_sdk.frameworks) CoreData IOKit;
}; };
haven-cli = callPackage ../applications/blockchains/haven-cli { haven-cli = callPackage ../applications/blockchains/haven-cli {

View File

@ -841,7 +841,7 @@ with self; {
url = "mirror://cpan/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz"; url = "mirror://cpan/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz";
hash = "sha256-lj5jxuGocl/y9iTpCGOWrhUNtR3QozfDeB0JqZSvBaU="; hash = "sha256-lj5jxuGocl/y9iTpCGOWrhUNtR3QozfDeB0JqZSvBaU=";
}; };
# Use TLS endpoints for downloads and metadata by default # CVE-2024-45321: Use TLS endpoints for downloads and metadata
preConfigure = '' preConfigure = ''
substituteInPlace bin/cpanm \ substituteInPlace bin/cpanm \
--replace-fail http://www.cpan.org https://www.cpan.org \ --replace-fail http://www.cpan.org https://www.cpan.org \