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,28 @@
From 94ea94de526770e783d04d75b981dfa3ac90fd20 Mon Sep 17 00:00:00 2001
From: o7-machienhum <ryan.cjw@gmail.com>
Date: Tue, 30 Jan 2024 03:29:09 -0800
Subject: [PATCH] Fixes crash
---
mnamer/utils.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mnamer/utils.py b/mnamer/utils.py
index 84df7870..8eba68f8 100644
--- a/mnamer/utils.py
+++ b/mnamer/utils.py
@@ -256,7 +256,6 @@ def request_json(
"like Gecko) Chrome/79.0.3945.88 Safari/537.36"
)
- initial_cache_state = session._disabled # yes, i'm a bad person
try:
session._disabled = not cache
response = session.request(
@@ -272,8 +271,6 @@ def request_json(
except:
content = None
status = 500
- finally:
- session._disabled = initial_cache_state
return status, (content or {})

View File

@@ -0,0 +1,56 @@
{
python3Packages,
fetchFromGitHub,
lib,
}:
python3Packages.buildPythonApplication rec {
pname = "mnamer";
version = "2.5.5";
format = "pyproject";
src = fetchFromGitHub {
owner = "jkwill87";
repo = "mnamer";
tag = version;
sha256 = "sha256-qQu5V1GOsbrR00HOrot6TTAkc3KRasBPDEU7ZojUBio=";
};
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = with python3Packages; [
appdirs
babelfish
guessit
requests
requests-cache
teletype
];
pythonRelaxDeps = true;
patches = [
# https://github.com/jkwill87/mnamer/pull/291
./cached_session_error.patch
];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
# disable test that fail (networking, etc)
disabledTests = [
"network"
"e2e"
"test_utils.py"
];
meta = with lib; {
homepage = "https://github.com/jkwill87/mnamer";
description = "Intelligent and highly configurable media organization utility";
mainProgram = "mnamer";
license = licenses.mit;
maintainers = with maintainers; [ urlordjames ];
};
}

View File

@@ -0,0 +1,28 @@
{
lib,
buildGoModule,
fetchFromSourcehut,
}:
buildGoModule rec {
pname = "mnc";
version = "0.5";
vendorHash = "sha256-H0KmGTWyjZOZLIEWophCwRYPeKLxBC050RI7cMXNbPs=";
src = fetchFromSourcehut {
owner = "~anjan";
repo = "mnc";
rev = version;
sha256 = "sha256-eCj7wmHxPF2j2x4yHKN7TE122TCv1++azgdoQArabBM=";
};
meta = with lib; {
description = "Opens the user's crontab and echos the time when the next cronjob will be ran";
homepage = "https://git.sr.ht/~anjan/mnc";
license = licenses.unlicense;
platforms = platforms.linux;
maintainers = with maintainers; [ wentam ];
mainProgram = "mnc";
};
}

View File

@@ -0,0 +1,33 @@
{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mnemonicode";
version = "1.0.0";
src = fetchFromGitHub {
owner = "singpolyma";
repo = "mnemonicode";
rev = finalAttrs.version;
hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM=";
};
installPhase = ''
mkdir -p $out/bin
mv mnencode $out/bin
mv mndecode $out/bin
'';
meta = with lib; {
homepage = "https://github.com/singpolyma/mnemonicode";
description = ''
Routines which implement a method for encoding binary data into a sequence
of words which can be spoken over the phone, for example, and converted
back to data on the other side.
'';
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ kirillrdy ];
mainProgram = "mnencode";
};
})

View File

@@ -0,0 +1,83 @@
{
python3Packages,
fetchurl,
anki,
}:
python3Packages.buildPythonApplication rec {
pname = "mnemosyne";
version = "2.10.1";
format = "setuptools";
src = fetchurl {
url = "mirror://sourceforge/project/mnemosyne-proj/mnemosyne/mnemosyne-${version}/Mnemosyne-${version}.tar.gz";
sha256 = "sha256-zI79iuRXb5S0Y87KfdG+HKc0XVNQOAcBR7Zt/OdaBP4=";
};
nativeBuildInputs = with python3Packages; [ pyqtwebengine.wrapQtAppsHook ];
buildInputs = [ anki ];
propagatedBuildInputs = with python3Packages; [
cheroot
cherrypy
googletrans
gtts
matplotlib
pyopengl
pyqt6
pyqt6-webengine
argon2-cffi
webob
];
prePatch = ''
substituteInPlace setup.py \
--replace '("", ["/usr/local/bin/mplayer"])' ""
'';
# No tests/ directory in tarball
doCheck = false;
postInstall = ''
mkdir -p $out/share/applications
mv mnemosyne.desktop $out/share/applications
'';
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
meta = {
homepage = "https://mnemosyne-proj.org/";
description = "Spaced-repetition software";
mainProgram = "mnemosyne";
longDescription = ''
The Mnemosyne Project has two aspects:
* It's a free flash-card tool which optimizes your learning process.
* It's a research project into the nature of long-term memory.
We strive to provide a clear, uncluttered piece of software, easy to use
and to understand for newbies, but still infinitely customisable through
plugins and scripts for power users.
## Efficient learning
Mnemosyne uses a sophisticated algorithm to schedule the best time for
a card to come up for review. Difficult cards that you tend to forget
quickly will be scheduled more often, while Mnemosyne won't waste your
time on things you remember well.
## Memory research
If you want, anonymous statistics on your learning process can be
uploaded to a central server for analysis. This data will be valuable to
study the behaviour of our memory over a very long time period. The
results will be used to improve the scheduling algorithms behind the
software even further.
'';
};
}

View File

@@ -0,0 +1,58 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
makeWrapper,
perlPackages,
libminc,
}:
stdenv.mkDerivation {
pname = "mni_autoreg";
version = "0.99.70-unstable-2024-10-04";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = "mni_autoreg";
rev = "85265398d90dc1bfef886e2cf876a1a2caae86b4";
hash = "sha256-tKCDrIHlkArF5Xv6NlSkvmNMIMDsxEf5O3ATzm6DabQ=";
};
nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [ libminc ];
propagatedBuildInputs = with perlPackages; [
perl
GetoptTabular
MNI-Perllib
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=incompatible-pointer-types"
];
cmakeFlags = [
"-DLIBMINC_DIR=${libminc}/lib/cmake"
(lib.cmakeFeature "PERL_EXECUTABLE" (lib.getExe perlPackages.perl))
];
# testing broken: './minc_wrapper: Permission denied' from Testing/ellipse0.mnc
postFixup = ''
for prog in autocrop mritoself mritotal xfmtool; do
echo $out/bin/$prog
wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB;
done
'';
meta = {
homepage = "https://github.com/BIC-MNI/mni_autoreg";
description = "Tools for automated registration using the MINC image format";
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.unix;
license = lib.licenses.free;
};
}

View File

@@ -0,0 +1,49 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
let
srcs = {
train-images = fetchurl {
url = "http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz";
sha256 = "029na81z5a1c9l1a8472dgshami6f2iixs3m2ji6ym6cffzwl3s4";
};
train-labels = fetchurl {
url = "http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz";
sha256 = "0p152200wwx0w65sqb65grb3v8ncjp230aykmvbbx2sm19556lim";
};
test-images = fetchurl {
url = "http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz";
sha256 = "1rn4vfigaxn2ms24bf4jwzzflgp3hvz0gksvb8j7j70w19xjqhld";
};
test-labels = fetchurl {
url = "http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz";
sha256 = "1imf0i194ndjxzxdx87zlgn728xx3p1qhq1ssbmnvv005vwn1bpp";
};
};
in
stdenvNoCC.mkDerivation {
pname = "mnist";
version = "2018-11-16";
installPhase = ''
mkdir -p $out
ln -s "${srcs.train-images}" "$out/${srcs.train-images.name}"
ln -s "${srcs.train-labels}" "$out/${srcs.train-labels.name}"
ln -s "${srcs.test-images}" "$out/${srcs.test-images.name}"
ln -s "${srcs.test-labels}" "$out/${srcs.test-labels.name}"
'';
dontUnpack = true;
meta = with lib; {
description = "Large database of handwritten digits";
longDescription = ''
The MNIST database (Modified National Institute of Standards and
Technology database) is a large database of handwritten digits that is
commonly used for training various image processing systems.
'';
homepage = "http://yann.lecun.com/exdb/mnist/index.html";
license = licenses.cc-by-sa-30;
platforms = platforms.all;
maintainers = with maintainers; [ cmcdragonkai ];
};
}

View File

@@ -0,0 +1,27 @@
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
pname = "mno16";
version = "1.0";
src = fetchzip {
url = "https://github.com/sevmeyer/${pname}/releases/download/${version}/${pname}-${version}.zip";
stripRoot = false;
hash = "sha256-xJQ9V7GlGUTEeYhqYFl/SemS6iqV0eW85YOn/tLgA+M=";
};
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp fonts/*.ttf $out/share/fonts/truetype/
'';
meta = with lib; {
description = "Minimalist monospaced font";
homepage = "https://sev.dev/fonts/mno16";
license = licenses.cc0;
};
}