push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "mt-st";
version = "1.8";
src = fetchFromGitHub {
owner = "iustin";
repo = "mt-st";
tag = "v${version}";
hash = "sha256-Sl+/v+ko3K4npY/M49H1YDxqOMy923qcAkTohi5Xg70=";
};
installFlags = [
"PREFIX="
"DESTDIR=$(out)"
"COMPLETIONINSTALLDIR=$(out)/share/bash-completion/completions"
];
meta = {
description = "Magnetic Tape control tools for Linux";
longDescription = ''
Fork of the standard "mt" tool with additional Linux-specific IOCTLs.
'';
homepage = "https://github.com/iustin/mt-st";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.redvers ];
platforms = lib.platforms.linux;
};
}

View File

@@ -0,0 +1,51 @@
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
gotools,
}:
buildGoModule rec {
pname = "mtail";
version = "3.2.18";
src = fetchFromGitHub {
owner = "jaqx0r";
repo = "mtail";
rev = "v${version}";
hash = "sha256-Z3FPZNWGyXtY2KLRF/oJIuN+lXE14SQce72pTKBsZEk=";
};
vendorHash = "sha256-SMdEowzg53uori/Ge+GE4542wswBU2kgdyAXxeKQiiU=";
nativeBuildInputs = [
gotools # goyacc
];
ldflags = [
"-X=main.Branch=main"
"-X=main.Version=${version}"
"-X=main.Revision=${src.rev}"
];
# fails on darwin with: write unixgram -> <tmpdir>/rsyncd.log: write: message too long
doCheck = !stdenv.hostPlatform.isDarwin;
checkFlags = [
# can only be executed under bazel
"-skip=TestExecMtail"
];
preBuild = ''
GOOS= GOARCH= go generate ./...
'';
meta = {
description = "Tool for extracting metrics from application logs";
homepage = "https://github.com/jaqx0r/mtail";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nickcao ];
mainProgram = "mtail";
};
}

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchurl,
evdev-proto,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "mtdev";
version = "1.1.7";
src = fetchurl {
url = "https://bitmath.org/code/mtdev/${pname}-${version}.tar.bz2";
hash = "sha256-oQetrSEB/srFSsf58OCg3RVdlUGT2lXCNAyX8v8dgU4=";
};
buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD evdev-proto;
passthru.updateScript = gitUpdater {
url = "https://bitmath.org/git/mtdev.git";
rev-prefix = "v";
};
meta = with lib; {
homepage = "https://bitmath.org/code/mtdev/";
description = "Multitouch Protocol Translation Library";
mainProgram = "mtdev-test";
longDescription = ''
The mtdev is a stand-alone library which transforms all variants of
kernel MT events to the slotted type B protocol. The events put into
mtdev may be from any MT device, specifically type A without contact
tracking, type A with contact tracking, or type B with contact tracking.
See the kernel documentation for further details.
'';
license = licenses.mit;
platforms = with platforms; freebsd ++ linux;
};
}

View File

@@ -0,0 +1,75 @@
{
lib,
stdenv,
fetchgit,
autoreconfHook,
pkg-config,
cmocka,
acl,
libuuid,
lzo,
util-linux,
zlib,
zstd,
}:
stdenv.mkDerivation rec {
pname = "mtd-utils";
version = "2.3.0";
src = fetchgit {
url = "git://git.infradead.org/mtd-utils.git";
rev = "v${version}";
hash = "sha256-qQ8r0LBxwzdT9q9ILxKD1AfzLimaNHdc9BT3Rox1eXs=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
]
++ lib.optional doCheck cmocka;
buildInputs = [
acl
libuuid
lzo
util-linux
zlib
zstd
];
postPatch = ''
substituteInPlace ubifs-utils/mount.ubifs \
--replace-fail "/bin/mount" "${util-linux}/bin/mount"
'';
enableParallelBuilding = true;
configureFlags = [
(lib.enableFeature doCheck "unit-tests")
(lib.enableFeature doCheck "tests")
];
makeFlags = [ "AR:=$(AR)" ];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
outputs = [
"out"
"dev"
];
postInstall = ''
mkdir -p $dev/lib
mv *.a $dev/lib/
mv include $dev/
'';
meta = with lib; {
description = "Tools for MTD filesystems";
downloadPage = "https://git.infradead.org/mtd-utils.git";
license = licenses.gpl2Plus;
homepage = "http://www.linux-mtd.infradead.org/";
maintainers = with lib.maintainers; [ skeuchel ];
platforms = with platforms; linux;
};
}

View File

@@ -0,0 +1,28 @@
{
fetchFromGitHub,
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mtk-uartboot";
version = "0-unstable-2024-12-07";
src = fetchFromGitHub {
owner = "981213";
repo = "mtk_uartboot";
rev = "b0ec7bdf1bab7089df948e745e17d206f3426dc1";
hash = "sha256-wUF1e0TfP9khfC9WruJkIg4j4DClOJTTPRABIe4Ma4U=";
};
cargoHash = "sha256-DtYCSPcyLDYeo9fIQpHGdm5r6ijRAzsDExWcDuSvh/o=";
meta = {
description = "Tool to load and execute binaries over UART for Mediatek SoCs";
homepage = "https://github.com/981213/mtk_uartboot";
license = lib.licenses.agpl3Only;
mainProgram = "mtk_uartboot";
maintainers = [ lib.maintainers.jmbaur ];
platforms = lib.platforms.unix;
};
})

View File

@@ -0,0 +1,49 @@
{
lib,
stdenv,
fetchFromGitHub,
ncurses,
}:
stdenv.mkDerivation rec {
pname = "mtm";
version = "1.2.1";
outputs = [
"out"
"terminfo"
];
src = fetchFromGitHub {
owner = "deadpixi";
repo = "mtm";
rev = version;
sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv";
};
buildInputs = [ ncurses ];
makeFlags = [
"DESTDIR=${placeholder "out"}"
"MANDIR=${placeholder "out"}/share/man/man1"
];
preInstall = ''
mkdir -p $out/bin/ $out/share/man/man1
'';
postInstall = ''
mkdir -p $terminfo/share/terminfo $out/nix-support
tic -x -o $terminfo/share/terminfo mtm.ti
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
'';
meta = with lib; {
description = "Perhaps the smallest useful terminal multiplexer in the world";
homepage = "https://github.com/deadpixi/mtm";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = [ ];
mainProgram = "mtm";
};
}

View File

@@ -0,0 +1,11 @@
--- mtools/sysincludes.h.orig 2017-04-01 20:59:46.083196540 +0100
+++ mtools/sysincludes.h 2017-04-01 20:59:12.855030456 +0100
@@ -103,7 +103,7 @@
# define PACKED __attribute__ ((packed))
# if __GNUC__ == 2 && __GNUC_MINOR__ > 6 || __GNUC__ >= 3
/* gcc 2.6.3 doesn't have "unused" */ /* mool */
-# define UNUSED(x) x __attribute__ ((unused));x
+# define UNUSED(x) x
# define UNUSEDP __attribute__ ((unused))
# else
# define UNUSED(x) x

View File

@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchurl,
libiconv,
}:
stdenv.mkDerivation rec {
pname = "mtools";
version = "4.0.49";
src = fetchurl {
url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2";
hash = "sha256-b+UZNYPW58Wdp15j1yNPdsCwfK8zsQOJT0b2aocf/J8=";
};
patches = lib.optional stdenv.hostPlatform.isDarwin ./UNUSED-darwin.patch;
# fails to find X on darwin
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--without-x";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
enableParallelBuilding = true;
doCheck = true;
passthru = {
updateScript = ./update.sh;
};
meta = with lib; {
homepage = "https://www.gnu.org/software/mtools/";
description = "Utilities to access MS-DOS disks";
platforms = platforms.unix;
license = licenses.gpl3;
};
}

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl common-updater-scripts
set -eu -o pipefail
version="$(curl -s --list-only ftp://ftp.gnu.org/gnu/mtools/ | sed 's/^.*-\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/' | sort -n | uniq | tail -n1)"
update-source-version mtools "$version"

View File

@@ -0,0 +1,64 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
freetype,
giflib,
gtk3,
lcms2,
libjpeg,
libpng,
libtiff,
openjpeg,
gifsicle,
}:
stdenv.mkDerivation {
pname = "mtPaint";
version = "3.50.01";
src = fetchFromGitHub {
owner = "wjaguar";
repo = "mtPaint";
rev = "a4675ff5cd9fcd57d291444cb9f332b48f11243f";
sha256 = "04wqxz8i655gz5rnz90cksy8v6m2jhcn1j8rzhqpp5xhawlmq24y";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
freetype
giflib
gtk3
lcms2
libjpeg
libpng
libtiff
openjpeg
gifsicle
];
configureFlags = [
"gtk3"
"intl"
"man"
];
meta = {
description = "Simple GTK painting program";
longDescription = ''
mtPaint is a simple GTK painting program designed for
creating icons and pixel based artwork. It can edit indexed palette
or 24 bit RGB images and offers basic painting and palette manipulation
tools. It also has several other more powerful features such as channels,
layers and animation.
Due to its simplicity and lack of dependencies it runs well on
GNU/Linux, Windows and older PC hardware.
'';
homepage = "https://mtpaint.sourceforge.net/";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.vklquevs ];
mainProgram = "mtpaint";
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
fuse,
libmtp,
glib,
libmad,
libid3tag,
}:
stdenv.mkDerivation rec {
pname = "mtpfs";
version = "1.1";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
fuse
libmtp
glib
libid3tag
libmad
];
src = fetchurl {
url = "https://www.adebenham.com/files/mtp/mtpfs-${version}.tar.gz";
sha256 = "07acrqb17kpif2xcsqfqh5j4axvsa4rnh6xwnpqab5b9w5ykbbqv";
};
meta = with lib; {
homepage = "https://github.com/cjd/mtpfs";
description = "FUSE Filesystem providing access to MTP devices";
platforms = platforms.all;
license = licenses.gpl3;
maintainers = [ maintainers.qknight ];
broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/mtpfs.x86_64-darwin
mainProgram = "mtpfs";
};
}

View File

@@ -0,0 +1,30 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "mtr-exporter";
version = "0.6.0";
src = fetchFromGitHub {
owner = "mgumz";
repo = "mtr-exporter";
rev = version;
hash = "sha256-GkTkL72ZdxeCMG24rjGx8vWt5GQqrTXNxTDpQ81ite8=";
};
vendorHash = null;
meta = with lib; {
description = ''
Mtr-exporter periodically executes mtr to a given host and
provides the measured results as prometheus metrics.
'';
homepage = "https://github.com/mgumz/mtr-exporter";
license = licenses.bsd3;
maintainers = with maintainers; [ jakubgs ];
mainProgram = "mtr-exporter";
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "mtx";
version = "1.3.12";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-stable/${version}/${pname}-${version}.tar.gz";
sha256 = "0261c5e90b98b6138cd23dadecbc7bc6e2830235145ed2740290e1f35672d843";
};
doCheck = false;
meta = {
description = "Media Changer Tools";
longDescription = ''
The mtx command controls single or multi-drive SCSI media changers such as
tape changers, autoloaders, tape libraries, or optical media jukeboxes. It
can also be used with media changers that use the 'ATTACHED' API, presuming
that they properly report the MChanger bit as required by the SCSI T-10 SMC
specification.
'';
homepage = "https://sourceforge.net/projects/mtx/";
license = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.redvers ];
platforms = lib.platforms.linux;
};
}

View File

@@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
coeurl,
curl,
libevent,
nlohmann_json,
olm,
openssl,
re2,
spdlog,
gtest,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mtxclient";
version = "0.10.1";
src = fetchFromGitHub {
owner = "Nheko-Reborn";
repo = "mtxclient";
rev = "v${finalAttrs.version}";
hash = "sha256-Y0FMCq4crSbm0tJtYq04ZFwWw+vlfxXKXBo0XUgf7hw=";
};
patches = [
./remove-network-tests.patch
];
cmakeFlags = [
(lib.cmakeBool "BUILD_LIB_TESTS" finalAttrs.finalPackage.doCheck)
(lib.cmakeBool "BUILD_LIB_EXAMPLES" false)
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
coeurl
curl
libevent
nlohmann_json
olm
openssl
re2
spdlog
];
checkInputs = [ gtest ];
doCheck = true;
meta = with lib; {
description = "Client API library for the Matrix protocol";
homepage = "https://github.com/Nheko-Reborn/mtxclient";
license = licenses.mit;
maintainers = with maintainers; [
fpletz
pstn
rebmit
rnhmjoj
];
platforms = platforms.all;
};
})

View File

@@ -0,0 +1,77 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d9f92932246ebec8ab5d1cc462366a17818d014..ce27390bd754a33986188dd2bf29cd0c818c2d58 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -398,36 +398,6 @@ if(BUILD_LIB_TESTS)
file(COPY tests/fixtures DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
- add_executable(client_api tests/client_api.cpp)
- target_link_libraries(client_api
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(client_api PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
- add_executable(media_api tests/media_api.cpp)
- target_link_libraries(media_api
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(media_api PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
- add_executable(e2ee tests/e2ee.cpp)
- target_link_libraries(e2ee
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(e2ee PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
- add_executable(device tests/device.cpp)
- target_link_libraries(device
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(device PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
add_executable(utils tests/utils.cpp)
target_link_libraries(utils
MatrixClient::MatrixClient
@@ -435,21 +405,6 @@ if(BUILD_LIB_TESTS)
GTest::Main)
target_include_directories(utils PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
- add_executable(pushrules tests/pushrules.cpp)
- target_link_libraries(pushrules
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(pushrules PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
- add_executable(connection tests/connection.cpp)
- target_link_libraries(connection
- MatrixClient::MatrixClient
- GTest::GTest
- GTest::Main)
- target_include_directories(connection PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-
add_executable(identifiers tests/identifiers.cpp)
target_link_libraries(identifiers
MatrixClient::MatrixClient
@@ -498,13 +453,7 @@ if(BUILD_LIB_TESTS)
GTest::GTest
GTest::Main)
- add_test(BasicConnectivity connection)
- add_test(ClientAPI client_api)
- add_test(MediaAPI media_api)
- add_test(Encryption e2ee)
- add_test(Devices device)
add_test(Utilities utils)
- add_test(Pushrules pushrules)
add_test(Identifiers identifiers)
add_test(Errors errors)
add_test(CryptoStructs crypto)