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,13 @@
{
"flet_ads": "sha256-uvfhwfuhw0by5CN9Z9VAUKrH9s2S4ltOf/93PDdGGKM=",
"flet_audio": "sha256-3xr0pYUylBNvswNvRath10A/EuCr4mTrTFjvlUAVgJQ=",
"flet_audio_recorder": "sha256-gOgd+6XZ0KJUG7bvxqyr5IjsNL/dy9RsJ0wbtMVr3bM=",
"flet_flashlight": "sha256-a/WnJdrSjM0FrYm/HghbocyGTMpT2xfa90z/Zv+Bp1Y=",
"flet_geolocator": "sha256-ZXt9rYWHr27FBzlQT1uxg5/l2E7JX1tDI3WgChx9DAs=",
"flet_lottie": "sha256-tpoMiI+rpD5HSqIsDvo0QNkwN4nifG3rJkUlVSHWNzM=",
"flet_map": "sha256-k42GK37MGdMI/QM04GuF0LQ6AAaL7mrZ6z9IGObYhYM=",
"flet_permission_handler": "sha256-Lj0bHcERjdfgUAbvPW7z58fAWT/BfKEJkBhNUrNVG9o=",
"flet_rive": "sha256-X8MRlnktjd5v0dfi9wvPvgl8lTgexfocgf5/ja7UpWk=",
"flet_video": "sha256-IfUkld4TZgtkIL1l1vmWFoCAzgVOEtALosmvkBZVq1M=",
"flet_webview": "sha256-wvypCJx5OuNYWcJMiW3L05PQI9ZY1tONebujI+EJu4E="
}

View File

@@ -0,0 +1,95 @@
{
lib,
fetchFromGitHub,
pkg-config,
flutter329,
gst_all_1,
libunwind,
makeWrapper,
mimalloc,
orc,
python3,
nix,
gitUpdater,
nix-prefetch-git,
mpv-unwrapped,
libplacebo,
_experimental-update-script-combinators,
fletTarget ? "linux",
}:
flutter329.buildFlutterApplication rec {
pname = "flet-client-flutter";
version = "0.28.3";
src = fetchFromGitHub {
owner = "flet-dev";
repo = "flet";
tag = "v${version}";
hash = "sha256-fD42AcfU3a/7sNvLE81pd1jdwUn5dEro3uKzaRBCWIU=";
};
sourceRoot = "${src.name}/client";
gitHashes = lib.importJSON ./git_hashes.json;
cmakeFlags = [
"-DMIMALLOC_LIB=${mimalloc}/lib/mimalloc.o"
];
targetFlutterPlatform = fletTarget;
pubspecLock = lib.importJSON ./pubspec.lock.json;
nativeBuildInputs = [
makeWrapper
mimalloc
pkg-config
];
buildInputs = [
mpv-unwrapped
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
gst_all_1.gst-vaapi
gst_all_1.gstreamer
libunwind
orc
mimalloc
]
++ mpv-unwrapped.buildInputs
++ libplacebo.buildInputs;
passthru = {
updateScript = _experimental-update-script-combinators.sequence [
(gitUpdater { rev-prefix = "v"; })
{
command = [
"env"
"PATH=${
lib.makeBinPath [
(python3.withPackages (p: [ p.pyyaml ]))
nix-prefetch-git
nix
]
}"
"python3"
./update-lockfiles.py
];
supportedFeatures = [ "silent" ];
}
];
};
meta = {
description = "Framework that enables you to easily build realtime web, mobile, and desktop apps in Python. The frontend part";
homepage = "https://flet.dev/";
changelog = "https://github.com/flet-dev/flet/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
heyimnova
lucasew
];
mainProgram = "flet";
};
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,42 @@
from argparse import ArgumentParser
from pathlib import Path
import json
import subprocess
import yaml
THIS_FOLDER = Path(__file__).parent
FLAKE_DIR = THIS_FOLDER
while True:
assert str(FLAKE_DIR) != '/'
if (FLAKE_DIR / "flake.nix").exists():
break
FLAKE_DIR = FLAKE_DIR.parent
source = Path(subprocess.run(['nix-build', FLAKE_DIR, '-A', 'flet-client-flutter.src', '--no-out-link'], stdout=subprocess.PIPE).stdout.decode('utf-8').strip())
assert source.is_absolute()
source_pubspec_lock = source / "client" / "pubspec.lock"
output_pubspec = THIS_FOLDER / "pubspec.lock.json"
output_git_hashes = THIS_FOLDER / "git_hashes.json"
data = yaml.safe_load(source_pubspec_lock.open('r'))
output_pubspec.write_text(json.dumps(data, indent=2) + "\n")
output_data = {}
def hash_git(package):
print(package)
resolved_ref = package['resolved-ref']
url = package['url']
full_output = subprocess.run(['nix-prefetch-git', '--url', url, '--rev', resolved_ref], stdout=subprocess.PIPE).stdout.decode('utf-8')
json_output = json.loads(full_output)
return json_output['hash']
for name, package in data['packages'].items():
if package['source'] != 'git':
continue
hash = hash_git(package['description'])
output_data[name] = hash
output_git_hashes.write_text(json.dumps(output_data, indent=2) + "\n")