remove moa
This commit is contained in:
parent
870457eb27
commit
27e6080455
4 changed files with 0 additions and 1382 deletions
|
@ -66,7 +66,6 @@ in
|
||||||
miifox-net = pkgs.python3Packages.callPackage ./web/miifox-net.nix {};
|
miifox-net = pkgs.python3Packages.callPackage ./web/miifox-net.nix {};
|
||||||
old-homepage = pkgs.callPackage ./web/old-homepage.nix {};
|
old-homepage = pkgs.callPackage ./web/old-homepage.nix {};
|
||||||
python-instagram = pkgs.python3Packages.callPackage ./python/instagram.nix {};
|
python-instagram = pkgs.python3Packages.callPackage ./python/instagram.nix {};
|
||||||
moa = pkgs.python3Packages.callPackage ./moa {};
|
|
||||||
inherit (attic'.defaultNix.packages.${pkgs.system}) attic attic-client attic-server;
|
inherit (attic'.defaultNix.packages.${pkgs.system}) attic attic-client attic-server;
|
||||||
element-web = pkgs.callPackage ./matrix/element-web {};
|
element-web = pkgs.callPackage ./matrix/element-web {};
|
||||||
mautrix-cleanup = mautrix-cleanup'.defaultNix.packages.${pkgs.system}.default;
|
mautrix-cleanup = mautrix-cleanup'.defaultNix.packages.${pkgs.system}.default;
|
||||||
|
|
|
@ -1,90 +0,0 @@
|
||||||
{
|
|
||||||
fetchFromGitLab,
|
|
||||||
python3,
|
|
||||||
certifi,
|
|
||||||
flask,
|
|
||||||
flask_sqlalchemy,
|
|
||||||
flask_mail,
|
|
||||||
flask_migrate,
|
|
||||||
flask_wtf,
|
|
||||||
mastodon-py,
|
|
||||||
pandas,
|
|
||||||
psutil,
|
|
||||||
pygal,
|
|
||||||
python-twitter,
|
|
||||||
pymysql,
|
|
||||||
sentry-sdk,
|
|
||||||
authlib,
|
|
||||||
cairosvg,
|
|
||||||
werkzeug,
|
|
||||||
wheel,
|
|
||||||
callPackage,
|
|
||||||
stdenvNoCC,
|
|
||||||
lib,
|
|
||||||
setuptools,
|
|
||||||
psycopg2,
|
|
||||||
applyPatches,
|
|
||||||
}: let
|
|
||||||
source = builtins.fromJSON (builtins.readFile ./source.json);
|
|
||||||
src = applyPatches {
|
|
||||||
src = fetchFromGitLab {
|
|
||||||
owner = "fedstoa";
|
|
||||||
repo = "moa";
|
|
||||||
inherit (source) rev sha256;
|
|
||||||
};
|
|
||||||
patches = [./moa.patch];
|
|
||||||
};
|
|
||||||
moa-env = python3.withPackages (_: [
|
|
||||||
certifi
|
|
||||||
flask
|
|
||||||
flask_sqlalchemy
|
|
||||||
flask_mail
|
|
||||||
flask_migrate
|
|
||||||
flask_wtf
|
|
||||||
mastodon-py
|
|
||||||
pandas
|
|
||||||
psutil
|
|
||||||
pygal
|
|
||||||
python-twitter
|
|
||||||
pymysql
|
|
||||||
sentry-sdk
|
|
||||||
authlib
|
|
||||||
cairosvg
|
|
||||||
werkzeug
|
|
||||||
wheel
|
|
||||||
setuptools
|
|
||||||
(callPackage ../python/instagram.nix {})
|
|
||||||
psycopg2
|
|
||||||
]);
|
|
||||||
in
|
|
||||||
stdenvNoCC.mkDerivation {
|
|
||||||
pname = "moa";
|
|
||||||
version = source.date;
|
|
||||||
inherit src;
|
|
||||||
buildPhase = ''
|
|
||||||
echo "#!/bin/sh" > start.sh
|
|
||||||
echo "cd $out" >> start.sh
|
|
||||||
cp start.sh start-worker.sh
|
|
||||||
echo "${moa-env}/bin/python -m moa.models" >> start.sh
|
|
||||||
mv start.sh start-app.sh
|
|
||||||
echo "exec ${moa-env}/bin/python -m moa.worker" >> start-worker.sh
|
|
||||||
echo "exec ${moa-env}/bin/python app.py" >> start-app.sh
|
|
||||||
chmod +x start-*.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
cp -rv $src $out
|
|
||||||
chmod -R +w $out
|
|
||||||
cp start-*.sh $out
|
|
||||||
'';
|
|
||||||
meta = {
|
|
||||||
description = "Mastodon-Twitter crossposter";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
broken = true;
|
|
||||||
};
|
|
||||||
passthru.updateScript = [
|
|
||||||
../scripts/update-git.sh
|
|
||||||
"https://gitlab.com/fedstoa/moa"
|
|
||||||
"moa/source.json"
|
|
||||||
];
|
|
||||||
}
|
|
1280
moa/moa.patch
1280
moa/moa.patch
File diff suppressed because it is too large
Load diff
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"url": "https://gitlab.com/fedstoa/moa",
|
|
||||||
"rev": "ea907cfeea9cfc989b38c8f08e73773e841b3add",
|
|
||||||
"date": "2022-11-14T00:39:05+00:00",
|
|
||||||
"path": "/nix/store/c894wxkx10df4jivmhcvymdmb7nbvz5w-moa",
|
|
||||||
"sha256": "1cqzqmmrbh6isjkk9vkrvg18z2zk3w7md9pa6f3agarag63si1ii",
|
|
||||||
"fetchLFS": false,
|
|
||||||
"fetchSubmodules": false,
|
|
||||||
"deepClone": false,
|
|
||||||
"leaveDotGit": false
|
|
||||||
}
|
|
Reference in a new issue