venera: 1.4.5 -> 1.4.6

authored by mivorasu and committed by mivorasu 208737d4 09d976e1

+88 -26
+18
pkgs/by-name/ve/venera/gitHashes.json
···
··· 1 + { 2 + "desktop_webview_window": "sha256-c2f1CjfZJ8M9SJz65WQVG+0uuKaFMjQFFAGSNH9osjg=", 3 + "flutter_7zip": "sha256-KHDq4XG3l+dq1NPW84wOK5kKbXJ8qCK8voGeTnX/Krw=", 4 + "flutter_inappwebview": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 5 + "flutter_inappwebview_android": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 6 + "flutter_inappwebview_ios": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 7 + "flutter_inappwebview_macos": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 8 + "flutter_inappwebview_platform_interface": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 9 + "flutter_inappwebview_web": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 10 + "flutter_inappwebview_windows": "sha256-9ocNFgXXqP28VmuJVXc81MUSPjIkzngOyEInMSxgwCU=", 11 + "flutter_qjs": "sha256-Mp9swQ4JEIyIEBQGlR7i+37Jp2sFGwL0uGrSTwE/n88=", 12 + "flutter_saf": "sha256-zmRZ82aJPYX/N/lOUcOoT8UAHEDoUk0FTFSqB4gKR+U=", 13 + "lodepng_flutter": "sha256-fOOhjoo3dzNNZI04Ie7GHLTfVlD5X+5IONpg8+RlmsE=", 14 + "photo_view": "sha256-zRc/WCbVybWkF52KDZZXgvKA8bbXASI7Yj2RFzLhXUk=", 15 + "rhttp": "sha256-6AH7A+CJg60Vk0ph3cJwj29GkmJEezI/VuZvRqqmOYs=", 16 + "scrollable_positioned_list": "sha256-6XmBlNxE7DEqY2LsEFtVrshn2Xt55XnmaiTq+tiPInA=", 17 + "webdav_client": "sha256-euNF7HdDtZ68BqSEq9BvO10BK09MxX2wWGoElFS0yeE=" 18 + }
+8 -25
pkgs/by-name/ve/venera/package.nix
··· 14 15 flutter332.buildFlutterApplication rec { 16 pname = "venera"; 17 - version = "1.4.5"; 18 19 src = fetchFromGitHub { 20 owner = "venera-app"; 21 repo = "venera"; 22 tag = "v${version}"; 23 - hash = "sha256-yg7VwR1IGswyqkyuvTZnVVLI4YKnfcea+VemWLOUXto="; 24 }; 25 26 pubspecLock = lib.importJSON ./pubspec.lock.json; 27 28 - gitHashes = 29 - let 30 - flutter_inappwebview-hash = "sha256-Vh5bZP/tkSAlstbT3souy/iLmpw3CENrA/rCUOcJb2o="; 31 - in 32 - { 33 - desktop_webview_window = "sha256-c2f1CjfZJ8M9SJz65WQVG+0uuKaFMjQFFAGSNH9osjg="; 34 - flutter_qjs = "sha256-Mp9swQ4JEIyIEBQGlR7i+37Jp2sFGwL0uGrSTwE/n88="; 35 - flutter_7zip = "sha256-KHDq4XG3l+dq1NPW84wOK5kKbXJ8qCK8voGeTnX/Krw="; 36 - lodepng_flutter = "sha256-fOOhjoo3dzNNZI04Ie7GHLTfVlD5X+5IONpg8+RlmsE="; 37 - photo_view = "sha256-zRc/WCbVybWkF52KDZZXgvKA8bbXASI7Yj2RFzLhXUk="; 38 - scrollable_positioned_list = "sha256-6XmBlNxE7DEqY2LsEFtVrshn2Xt55XnmaiTq+tiPInA="; 39 - webdav_client = "sha256-euNF7HdDtZ68BqSEq9BvO10BK09MxX2wWGoElFS0yeE="; 40 - flutter_saf = "sha256-zmRZ82aJPYX/N/lOUcOoT8UAHEDoUk0FTFSqB4gKR+U="; 41 - rhttp = "sha256-6AH7A+CJg60Vk0ph3cJwj29GkmJEezI/VuZvRqqmOYs="; 42 - flutter_inappwebview = flutter_inappwebview-hash; 43 - flutter_inappwebview_android = flutter_inappwebview-hash; 44 - flutter_inappwebview_ios = flutter_inappwebview-hash; 45 - flutter_inappwebview_macos = flutter_inappwebview-hash; 46 - flutter_inappwebview_web = flutter_inappwebview-hash; 47 - flutter_inappwebview_windows = flutter_inappwebview-hash; 48 - flutter_inappwebview_platform_interface = flutter_inappwebview-hash; 49 - }; 50 51 nativeBuildInputs = [ copyDesktopItems ]; 52 ··· 71 ]; 72 73 postInstall = '' 74 - install -Dm0644 ./debian/gui/venera.png $out/share/pixmaps/venera.png 75 ''; 76 77 extraWrapProgramArgs = '' ··· 91 updateScript = _experimental-update-script-combinators.sequence [ 92 (gitUpdater { rev-prefix = "v"; }) 93 (_experimental-update-script-combinators.copyAttrOutputToFile "venera.pubspecSource" ./pubspec.lock.json) 94 ]; 95 }; 96
··· 14 15 flutter332.buildFlutterApplication rec { 16 pname = "venera"; 17 + version = "1.4.6"; 18 19 src = fetchFromGitHub { 20 owner = "venera-app"; 21 repo = "venera"; 22 tag = "v${version}"; 23 + hash = "sha256-WGzgx+QbAurv9yOJjO40R8t4WtSt/iIkkBuBizT94lQ="; 24 }; 25 26 pubspecLock = lib.importJSON ./pubspec.lock.json; 27 28 + gitHashes = lib.importJSON ./gitHashes.json; 29 30 nativeBuildInputs = [ copyDesktopItems ]; 31 ··· 50 ]; 51 52 postInstall = '' 53 + install -Dm0644 debian/gui/venera.png $out/share/pixmaps/venera.png 54 ''; 55 56 extraWrapProgramArgs = '' ··· 70 updateScript = _experimental-update-script-combinators.sequence [ 71 (gitUpdater { rev-prefix = "v"; }) 72 (_experimental-update-script-combinators.copyAttrOutputToFile "venera.pubspecSource" ./pubspec.lock.json) 73 + { 74 + command = [ ./update-gitHashes.py ]; 75 + supportedFeatures = [ "silent" ]; 76 + } 77 ]; 78 }; 79
+11 -1
pkgs/by-name/ve/venera/pubspec.lock.json
··· 211 "source": "hosted", 212 "version": "2.1.0" 213 }, 214 "dynamic_color": { 215 "dependency": "direct main", 216 "description": { ··· 1379 }, 1380 "sdks": { 1381 "dart": ">=3.8.0 <4.0.0", 1382 - "flutter": ">=3.32.4" 1383 } 1384 }
··· 211 "source": "hosted", 212 "version": "2.1.0" 213 }, 214 + "display_mode": { 215 + "dependency": "direct main", 216 + "description": { 217 + "name": "display_mode", 218 + "sha256": "8a381f3602a09dc4e96140a0df30808631468d6d0dfff7722f67b1f83757a7cc", 219 + "url": "https://pub.dev" 220 + }, 221 + "source": "hosted", 222 + "version": "0.0.2" 223 + }, 224 "dynamic_color": { 225 "dependency": "direct main", 226 "description": { ··· 1389 }, 1390 "sdks": { 1391 "dart": ">=3.8.0 <4.0.0", 1392 + "flutter": ">=3.32.6" 1393 } 1394 }
+51
pkgs/by-name/ve/venera/update-gitHashes.py
···
··· 1 + #! /usr/bin/env nix-shell 2 + #! nix-shell -i python3 -p python3 nix-prefetch-git 3 + 4 + import json 5 + import subprocess 6 + import sys 7 + from pathlib import Path 8 + 9 + THIS_FOLDER = Path(__file__).parent.resolve() 10 + PUBSPEC_LOCK = THIS_FOLDER / "pubspec.lock.json" 11 + GIT_HASHES = THIS_FOLDER / "gitHashes.json" 12 + 13 + 14 + def fetch_git_hash(url: str, rev: str) -> str: 15 + result = subprocess.run( 16 + ["nix-prefetch-git", "--url", url, "--rev", rev], 17 + capture_output=True, 18 + text=True, 19 + check=True, 20 + ) 21 + return json.loads(result.stdout)["hash"] 22 + 23 + 24 + def main() -> None: 25 + if not PUBSPEC_LOCK.exists(): 26 + sys.exit(1) 27 + try: 28 + data = json.loads(PUBSPEC_LOCK.read_text()) 29 + except json.JSONDecodeError: 30 + sys.exit(1) 31 + output: dict[str, str] = {} 32 + for name, info in data.get("packages", {}).items(): 33 + if info.get("source") != "git": 34 + continue 35 + desc = info.get("description") 36 + if not isinstance(desc, dict): 37 + continue 38 + url = desc.get("url") 39 + rev = desc.get("resolved-ref") 40 + if not (isinstance(url, str) and isinstance(rev, str)): 41 + continue 42 + try: 43 + package_hash = fetch_git_hash(url, rev) 44 + except subprocess.CalledProcessError: 45 + continue 46 + output[name] = package_hash 47 + GIT_HASHES.write_text(json.dumps(output, indent=2) + "\n") 48 + 49 + 50 + if __name__ == "__main__": 51 + main()