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,38 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fp16";
version = "0-unstable-2024-20-06";
src = fetchFromGitHub {
owner = "Maratyszcza";
repo = "FP16";
rev = "98b0a46bce017382a6351a19577ec43a715b6835";
sha256 = "sha256-aob776ZGjnH4k/xfsdIcN9+wiuDreUoRBpyzrWGuxKk=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
(lib.cmakeBool "FP16_BUILD_TESTS" false)
(lib.cmakeBool "FP16_BUILD_BENCHMARKS" false)
(lib.cmakeBool "FP16_USE_SYSTEM_LIBS" true)
];
doCheck = true;
meta = {
description = "Header-only library for conversion to/from half-precision floating point formats";
homepage = "https://github.com/Maratyszcza/FP16";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ phodina ];
};
})

View File

@@ -0,0 +1,28 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation {
pname = "fparser";
version = "0-unstable-2015-09-25";
src = fetchFromGitHub {
owner = "thliebig";
repo = "fparser";
rev = "a59e1f51e32096bfe2a0a2640d5dffc7ae6ba37b";
sha256 = "0wayml1mlyi922gp6am3fsidhzsilziksdn5kbnpcln01h8555ad";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "C++ Library for Evaluating Mathematical Functions";
homepage = "https://github.com/thliebig/fparser";
license = licenses.lgpl3;
maintainers = with maintainers; [ matthuszagh ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
fts,
}:
stdenv.mkDerivation rec {
pname = "fpart";
version = "1.7.0";
src = fetchFromGitHub {
owner = "martymac";
repo = "fpart";
rev = "fpart-${version}";
sha256 = "sha256-BQGSKDSuK2iB0o2v8I+XOwhYtU/0QtMevt4pgIfRhNQ=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ fts ];
postInstall = ''
sed "s|^FPART_BIN=.*|FPART_BIN=\"$out/bin/fpart\"|" \
-i "$out/bin/fpsync"
'';
meta = with lib; {
description = "Split file trees into bags (called \"partitions\")";
longDescription = ''
Fpart is a tool that helps you sort file trees and pack them into bags
(called "partitions").
It splits a list of directories and file trees into a certain number of
partitions, trying to produce partitions with the same size and number of
files. It can also produce partitions with a given number of files or a
limited size.
Once generated, partitions are either printed as file lists to stdout
(default) or to files. Those lists can then be used by third party programs.
Fpart also includes a live mode, which allows it to crawl very large
filesystems and produce partitions in live. Hooks are available to act on
those partitions (e.g. immediately start a transfer using rsync(1))
without having to wait for the filesystem traversal job to be finished.
Used this way, fpart can be seen as a powerful data migration tool.
'';
homepage = "http://contribs.martymac.org/";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
};
}

View File

@@ -0,0 +1,32 @@
{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.9";
pname = "fpattern";
src = fetchFromGitHub {
owner = "Loadmaster";
repo = "fpattern";
rev = "v${finalAttrs.version}";
hash = "sha256-/QvMQCmoocaXfDm3/c3IAPyfZqR6d7IiJ9UoFKZTpVI=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/include
cp *.c *.h $out/include
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/Loadmaster/fpattern";
description = "Filename pattern matching library functions for DOS, Windows, and Unix";
license = licenses.mit;
maintainers = with maintainers; [ hughobrien ];
platforms = with platforms; linux;
};
})

View File

@@ -0,0 +1,63 @@
{
lib,
stdenv,
fetchgit,
flex,
bison,
fig2dev,
imagemagick,
netpbm,
gtk2,
pkg-config,
}:
stdenv.mkDerivation {
pname = "fped";
version = "unstable-2017-05-11";
src = fetchgit {
url = "git://projects.qi-hardware.com/fped.git";
rev = "fa98e58157b6f68396d302c32421e882ac87f45b";
sha256 = "0xv364a00zwxhd9kg1z9sch5y0cxnrhk546asspyb9bh58sdzfy7";
};
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
'';
# Workaround build failure on -fno-common toolchains:
# ld: postscript.o:postscript.h:29: multiple definition of
# `postscript_params'; fped.o:postscript.h:29: first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon";
# This uses '/bin/bash', '/usr/local' and 'lex' by default
makeFlags = [
"PREFIX=${placeholder "out"}"
"LEX=flex"
"RGBDEF=${netpbm.out}/share/netpbm/misc/rgb.txt"
];
nativeBuildInputs = [
flex
bison
pkg-config
imagemagick
fig2dev
netpbm
];
buildInputs = [
flex
gtk2
];
meta = with lib; {
description = "Editor that allows the interactive creation of footprints electronic components";
mainProgram = "fped";
homepage = "http://projects.qi-hardware.com/index.php/p/fped/";
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,30 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "fping";
version = "5.4";
src = fetchurl {
url = "https://www.fping.org/dist/fping-${version}.tar.gz";
hash = "sha256-vjIHcfB15H3X5XBLSF6b3H3REQeIQ0XA98GHSTV/Zo0=";
};
configureFlags = [
"--enable-ipv6"
"--enable-ipv4"
];
meta = {
description = "Send ICMP echo probes to network hosts";
homepage = "http://fping.org/";
changelog = "https://github.com/schweikert/fping/releases/tag/v${version}";
license = lib.licenses.bsd0;
mainProgram = "fping";
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.all;
};
}

View File

@@ -0,0 +1,41 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
gnupg,
gtk3,
libxml2,
intltool,
nettle,
}:
stdenv.mkDerivation rec {
pname = "fpm2";
version = "0.90.1";
src = fetchurl {
url = "https://als.regnet.cz/fpm2/download/fpm2-${version}.tar.xz";
sha256 = "sha256-G6PF5wlEc19jtqOxBTp/10dQiFYPDO/W6v9Oyzz1lZA=";
};
nativeBuildInputs = [
pkg-config
intltool
];
buildInputs = [
gnupg
gtk3
libxml2
nettle
];
meta = with lib; {
description = "GTK2 port from Figaro's Password Manager originally developed by John Conneely, with some new enhancements";
mainProgram = "fpm2";
homepage = "https://als.regnet.cz/fpm2/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ hce ];
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
python3,
installShellFiles,
}:
stdenv.mkDerivation rec {
pname = "fpp";
version = "0.9.5";
src = fetchFromGitHub {
owner = "facebook";
repo = "PathPicker";
rev = version;
sha256 = "sha256-4BkdGvG/RyF3JBnd/X5r5nboEHG4aqahcYHDunMv2zU=";
};
nativeBuildInputs = [ installShellFiles ];
postPatch = ''
substituteInPlace fpp --replace 'PYTHONCMD="python3"' 'PYTHONCMD="${python3.interpreter}"'
'';
installPhase = ''
mkdir -p $out/share/fpp $out/bin
cp -r fpp src $out/share/fpp
ln -s $out/share/fpp/fpp $out/bin/fpp
installManPage debian/usr/share/man/man1/fpp.1
'';
meta = {
description = "CLI program that accepts piped input and presents files for selection";
homepage = "https://facebook.github.io/PathPicker/";
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
mainProgram = "fpp";
};
}

View File

@@ -0,0 +1,38 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "fprettify";
version = "0.3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "pseewald";
repo = "fprettify";
rev = "v${version}";
sha256 = "17v52rylmsy3m3j5fcb972flazykz2rvczqfh8mxvikvd6454zyj";
};
preConfigure = ''
patchShebangs fprettify.py
'';
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
configargparse
];
meta = with lib; {
description = "Auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python";
mainProgram = "fprettify";
homepage = "https://pypi.org/project/fprettify/";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fabiangd ];
};
}

View File

@@ -0,0 +1,77 @@
{
lib,
fetchFromGitLab,
fetchpatch,
libxml2,
fprintd,
libfprint-tod,
python3Packages,
libpam-wrapper,
gusb,
gobject-introspection,
}:
(fprintd.override { libfprint = libfprint-tod; }).overrideAttrs (
finalAttrs: previousAttrs: {
pname = "fprintd-tod";
version = "1.90.9";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = "fprintd";
rev = "v${finalAttrs.version}";
sha256 = "sha256-rOTVThHOY/Q2IIu2RGiv26UE2V/JFfWWnfKZQfKl5Mg=";
};
nativeBuildInputs = previousAttrs.nativeBuildInputs or [ ] ++ [
libpam-wrapper
python3Packages.python
python3Packages.pycairo
python3Packages.dbus-python
python3Packages.python-dbusmock
python3Packages.pygobject3
gusb
python3Packages.pypamtest
gobject-introspection
libxml2 # for xmllint
];
patches = previousAttrs.patches or [ ] ++ [
(fetchpatch {
name = "use-more-idiomatic-correct-embedded-shell-scripting";
url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/f4256533d1ffdc203c3f8c6ee42e8dcde470a93f.patch";
sha256 = "sha256-4uPrYEgJyXU4zx2V3gwKKLaD6ty0wylSriHlvKvOhek=";
})
(fetchpatch {
name = "remove-pointless-copying-of-files-into-build-directory";
url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/2c34cef5ef2004d8479475db5523c572eb409a6b.patch";
sha256 = "sha256-2pZBbMF1xjoDKn/jCAIldbeR2JNEVduXB8bqUrj2Ih4=";
})
(fetchpatch {
name = "build-Do-not-use-positional-arguments-in-i18n.merge_file";
url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/50943b1bd4f18d103c35233f0446ce7a31d1817e.patch";
sha256 = "sha256-ANkAq6fr0VRjkS0ckvf/ddVB2mH4b2uJRTI4H8vPPes=";
})
(fetchpatch {
name = "tests-Fix-dbusmock-AddDevice-calls-to-include-option";
url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/ae04fa989720279e5558c3b8ff9ebe1959b1cf36.patch";
sha256 = "sha256-jW5vlzrbZQ1gUDLBf7G50GnZfZxhlnL2Eu+9Bghdwdw=";
})
];
postPatch = previousAttrs.postPatch or "" + ''
# part of "remove-pointless-copying-of-files-into-build-directory" but git-apply doesn't handle renaming
mv src/device.xml src/net.reactivated.Fprint.Device.xml
mv src/manager.xml src/net.reactivated.Fprint.Manager.xml
'';
meta = {
homepage = "https://fprint.freedesktop.org/";
description = "fprintd built with libfprint-tod to support Touch OEM Drivers";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ hmenke ];
};
}
)

View File

@@ -0,0 +1,122 @@
{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
gobject-introspection,
meson,
ninja,
perl,
gettext,
gtk-doc,
libxslt,
docbook-xsl-nons,
docbook_xml_dtd_412,
glib,
gusb,
dbus,
polkit,
nss,
pam,
systemd,
libfprint,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fprintd";
version = "1.94.5";
outputs = [
"out"
"devdoc"
];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = "fprintd";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-aGIz50S0zfE3rV6QJp8iQz3uUVn8WAL68KU70j8GyOU=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
perl # for pod2man
gettext
gtk-doc
python3
libxslt
dbus
docbook-xsl-nons
docbook_xml_dtd_412
];
buildInputs = [
glib
polkit
nss
pam
systemd
libfprint
];
nativeCheckInputs = with python3.pkgs; [
gobject-introspection # for setup hook
python-dbusmock
dbus-python
pygobject3
pycairo
pypamtest
gusb # Required by libfprints typelib
];
mesonFlags = [
"-Dgtk_doc=true"
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
"-Dsysconfdir=${placeholder "out"}/etc"
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
"-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
];
PKG_CONFIG_DBUS_1_INTERFACES_DIR = "${placeholder "out"}/share/dbus-1/interfaces";
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
PKG_CONFIG_DBUS_1_DATADIR = "${placeholder "out"}/share";
# FIXME: Ugly hack for tests to find libpam_wrapper.so
LIBRARY_PATH = lib.makeLibraryPath [ python3.pkgs.pypamtest ];
mesonCheckFlags = [
# PAM related checks are timing out
"--no-suite"
"fprintd:TestPamFprintd"
];
patches = [
# Skip flaky test "test_removal_during_enroll"
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/129
./skip-test-test_removal_during_enroll.patch
];
postPatch = ''
patchShebangs \
po/check-translations.sh \
tests/unittest_inspector.py
# Stop tests from failing due to unhandled GTasks uncovered by GLib 2.76 bump.
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151
substituteInPlace tests/fprintd.py \
--replace "env['G_DEBUG'] = 'fatal-criticals'" ""
substituteInPlace tests/meson.build \
--replace "'G_DEBUG=fatal-criticals'," ""
'';
meta = {
homepage = "https://fprint.freedesktop.org/";
description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
})

View File

@@ -0,0 +1,12 @@
diff --git a/tests/fprintd.py b/tests/fprintd.py
index 370d7bb..4e4d78c 100644
--- a/tests/fprintd.py
+++ b/tests/fprintd.py
@@ -1609,6 +1609,7 @@ class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
time.sleep(1)
def test_removal_during_enroll(self):
+ self.skipTest("flaky test")
if not self._has_hotplug:
self.skipTest("libfprint is too old for hotplug")