saber: 0.25.9 -> 0.26.0 (#426595)

authored by Aleksana and committed by GitHub c7cc2d5b 8d8d894c

+198 -57
+4
pkgs/by-name/sa/saber/gitHashes.json
··· 1 + { 2 + "flutter_secure_storage_linux": "sha256-cFNHW7dAaX8BV7arwbn68GgkkBeiAgPfhMOAFSJWlyY=", 3 + "receive_sharing_intent": "sha256-8D5ZENARPZ7FGrdIErxOoV3Ao35/XoQ2tleegI42ZUY=" 4 + }
+16 -10
pkgs/by-name/sa/saber/package.nix
··· 17 17 18 18 flutter332.buildFlutterApplication rec { 19 19 pname = "saber"; 20 - version = "0.25.9"; 20 + version = "0.26.0"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "saber-notes"; 24 24 repo = "saber"; 25 25 tag = "v${version}"; 26 - hash = "sha256-l1TPk6JiT/o0Pl67Vqv4NE2n/FrZKy/SqwhW58A3c6w="; 26 + hash = "sha256-5N4HojdDysLgCPq614ZzJXx/dx3s4F++W35fjYdevRk="; 27 27 }; 28 28 29 - gitHashes = { 30 - receive_sharing_intent = "sha256-8D5ZENARPZ7FGrdIErxOoV3Ao35/XoQ2tleegI42ZUY="; 31 - flutter_secure_storage_linux = "sha256-cFNHW7dAaX8BV7arwbn68GgkkBeiAgPfhMOAFSJWlyY="; 32 - irondash_engine_context = "sha256-/ohreOZDsVqfPoJ6wK7ylTQAgWw23v0b31bDQw5L2Hw="; 33 - super_native_extensions = "sha256-0WZ5+imtLJE8GhbAgLyCC502vvlDl5QG3xtG2nCAnQI="; 34 - yaru = "sha256-j0aPyHx79kzT/eLf0Y3cq4qQkQ4c76GdpjLaVNp8MuI="; 35 - }; 29 + gitHashes = lib.importJSON ./gitHashes.json; 36 30 37 31 pubspecLock = lib.importJSON ./pubspec.lock.json; 38 32 ··· 47 41 xorg.libXmu 48 42 ]; 49 43 44 + postPatch = '' 45 + patchShebangs patches/remove_proprietary_dependencies.sh 46 + patches/remove_proprietary_dependencies.sh 47 + ''; 48 + 49 + flutterBuildFlags = [ "--dart-define=DIRTY=false" ]; 50 + 50 51 postInstall = '' 51 52 install -Dm0644 flatpak/com.adilhanney.saber.desktop $out/share/applications/saber.desktop 52 53 install -Dm0644 assets/icon/icon.svg $out/share/icons/hicolor/scalable/apps/com.adilhanney.saber.svg 54 + install -Dm0644 flatpak/com.adilhanney.saber.metainfo.xml -t $out/share/metainfo 53 55 ''; 54 56 57 + # Remove libpdfrx.so's reference to the /build/ directory 55 58 preFixup = '' 56 - # Remove libpdfrx.so's reference to the /build/ directory 57 59 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" $out/app/saber/lib/lib*.so 58 60 ''; 59 61 ··· 70 72 updateScript = _experimental-update-script-combinators.sequence [ 71 73 (gitUpdater { rev-prefix = "v"; }) 72 74 (_experimental-update-script-combinators.copyAttrOutputToFile "saber.pubspecSource" ./pubspec.lock.json) 75 + { 76 + command = [ ./update-gitHashes.py ]; 77 + supportedFeatures = [ "silent" ]; 78 + } 73 79 ]; 74 80 }; 75 81
+127 -47
pkgs/by-name/sa/saber/pubspec.lock.json
··· 64 64 "dependency": "transitive", 65 65 "description": { 66 66 "name": "asn1lib", 67 - "sha256": "0511d6be23b007e95105ae023db599aea731df604608978dada7f9faf2637623", 67 + "sha256": "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024", 68 68 "url": "https://pub.dev" 69 69 }, 70 70 "source": "hosted", 71 - "version": "1.6.4" 71 + "version": "1.6.5" 72 72 }, 73 73 "assorted_layout_widgets": { 74 74 "dependency": "transitive", ··· 94 94 "dependency": "direct main", 95 95 "description": { 96 96 "name": "audioplayers", 97 - "sha256": "a5341380a4f1d3a10a4edde5bb75de5127fe31e0faa8c4d860e64d2f91ad84c7", 97 + "sha256": "e653f162ddfcec1da2040ba2d8553fff1662b5c2a5c636f4c21a3b11bee497de", 98 98 "url": "https://pub.dev" 99 99 }, 100 100 "source": "hosted", 101 - "version": "6.4.0" 101 + "version": "6.5.0" 102 102 }, 103 103 "audioplayers_android": { 104 104 "dependency": "transitive", 105 105 "description": { 106 106 "name": "audioplayers_android", 107 - "sha256": "f8c90823a45b475d2c129f85bbda9c029c8d4450b172f62e066564c6e170f69a", 107 + "sha256": "60a6728277228413a85755bd3ffd6fab98f6555608923813ce383b190a360605", 108 108 "url": "https://pub.dev" 109 109 }, 110 110 "source": "hosted", 111 - "version": "5.2.0" 111 + "version": "5.2.1" 112 112 }, 113 113 "audioplayers_darwin": { 114 114 "dependency": "transitive", 115 115 "description": { 116 116 "name": "audioplayers_darwin", 117 - "sha256": "405cdbd53ebdb4623f1c5af69f275dad4f930ce895512d5261c07cd95d23e778", 117 + "sha256": "0811d6924904ca13f9ef90d19081e4a87f7297ddc19fc3d31f60af1aaafee333", 118 118 "url": "https://pub.dev" 119 119 }, 120 120 "source": "hosted", 121 - "version": "6.2.0" 121 + "version": "6.3.0" 122 122 }, 123 123 "audioplayers_linux": { 124 124 "dependency": "transitive", 125 125 "description": { 126 126 "name": "audioplayers_linux", 127 - "sha256": "7e0d081a6a527c53aef9539691258a08ff69a7dc15ef6335fbea1b4b03ebbef0", 127 + "sha256": "f75bce1ce864170ef5e6a2c6a61cd3339e1a17ce11e99a25bae4474ea491d001", 128 128 "url": "https://pub.dev" 129 129 }, 130 130 "source": "hosted", 131 - "version": "4.2.0" 131 + "version": "4.2.1" 132 132 }, 133 133 "audioplayers_platform_interface": { 134 134 "dependency": "transitive", 135 135 "description": { 136 136 "name": "audioplayers_platform_interface", 137 - "sha256": "77e5fa20fb4a64709158391c75c1cca69a481d35dc879b519e350a05ff520373", 137 + "sha256": "0e2f6a919ab56d0fec272e801abc07b26ae7f31980f912f24af4748763e5a656", 138 138 "url": "https://pub.dev" 139 139 }, 140 140 "source": "hosted", 141 - "version": "7.1.0" 141 + "version": "7.1.1" 142 142 }, 143 143 "audioplayers_web": { 144 144 "dependency": "transitive", 145 145 "description": { 146 146 "name": "audioplayers_web", 147 - "sha256": "bd99d8821114747682a2be0adcdb70233d4697af989b549d3a20a0f49f6c9b13", 147 + "sha256": "1c0f17cec68455556775f1e50ca85c40c05c714a99c5eb1d2d57cc17ba5522d7", 148 148 "url": "https://pub.dev" 149 149 }, 150 150 "source": "hosted", 151 - "version": "5.1.0" 151 + "version": "5.1.1" 152 152 }, 153 153 "audioplayers_windows": { 154 154 "dependency": "transitive", 155 155 "description": { 156 156 "name": "audioplayers_windows", 157 - "sha256": "871d3831c25cd2408ddc552600fd4b32fba675943e319a41284704ee038ad563", 157 + "sha256": "4048797865105b26d47628e6abb49231ea5de84884160229251f37dfcbe52fd7", 158 158 "url": "https://pub.dev" 159 159 }, 160 160 "source": "hosted", 161 - "version": "4.2.0" 161 + "version": "4.2.1" 162 162 }, 163 163 "barcode": { 164 164 "dependency": "transitive", ··· 350 350 "source": "hosted", 351 351 "version": "1.0.8" 352 352 }, 353 + "dart_pubspec_licenses": { 354 + "dependency": "transitive", 355 + "description": { 356 + "name": "dart_pubspec_licenses", 357 + "sha256": "23ddb78ff9204d08e3109ced67cd3c6c6a066f581b0edf5ee092fc3e1127f4ea", 358 + "url": "https://pub.dev" 359 + }, 360 + "source": "hosted", 361 + "version": "3.0.4" 362 + }, 353 363 "dart_quill_delta": { 354 364 "dependency": "transitive", 355 365 "description": { ··· 374 384 "dependency": "transitive", 375 385 "description": { 376 386 "name": "decimal", 377 - "sha256": "28239b8b929c1bd8618702e6dbc96e2618cf99770bbe9cb040d6cf56a11e4ec3", 387 + "sha256": "fc706a5618b81e5b367b01dd62621def37abc096f2b46a9bd9068b64c1fa36d0", 378 388 "url": "https://pub.dev" 379 389 }, 380 390 "source": "hosted", 381 - "version": "3.2.1" 391 + "version": "3.2.4" 382 392 }, 383 393 "defer_pointer": { 384 394 "dependency": "direct main", ··· 404 414 "dependency": "direct main", 405 415 "description": { 406 416 "name": "device_info_plus", 407 - "sha256": "0c6396126421b590089447154c5f98a5de423b70cfb15b1578fd018843ee6f53", 417 + "sha256": "98f28b42168cc509abc92f88518882fd58061ea372d7999aecc424345c7bff6a", 408 418 "url": "https://pub.dev" 409 419 }, 410 420 "source": "hosted", 411 - "version": "11.4.0" 421 + "version": "11.5.0" 412 422 }, 413 423 "device_info_plus_platform_interface": { 414 424 "dependency": "transitive", 415 425 "description": { 416 426 "name": "device_info_plus_platform_interface", 417 - "sha256": "0b04e02b30791224b31969eb1b50d723498f402971bff3630bca2ba839bd1ed2", 427 + "sha256": "e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f", 418 428 "url": "https://pub.dev" 419 429 }, 420 430 "source": "hosted", 421 - "version": "7.0.2" 431 + "version": "7.0.3" 422 432 }, 423 433 "diff_match_patch": { 424 434 "dependency": "transitive", ··· 783 793 "dependency": "direct main", 784 794 "description": { 785 795 "name": "flutter_svg", 786 - "sha256": "d44bf546b13025ec7353091516f6881f1d4c633993cb109c3916c3a0159dadf1", 796 + "sha256": "cd57f7969b4679317c17af6fd16ee233c1e60a82ed209d8a475c54fd6fd6f845", 787 797 "url": "https://pub.dev" 788 798 }, 789 799 "source": "hosted", 790 - "version": "2.1.0" 800 + "version": "2.2.0" 791 801 }, 792 802 "flutter_test": { 793 803 "dependency": "direct dev", ··· 851 861 "dependency": "direct main", 852 862 "description": { 853 863 "name": "go_router", 854 - "sha256": "b453934c36e289cef06525734d1e676c1f91da9e22e2017d9dcab6ce0f999175", 864 + "sha256": "c489908a54ce2131f1d1b7cc631af9c1a06fac5ca7c449e959192089f9489431", 855 865 "url": "https://pub.dev" 856 866 }, 857 867 "source": "hosted", 858 - "version": "15.1.3" 868 + "version": "16.0.0" 859 869 }, 860 870 "golden_screenshot": { 861 871 "dependency": "direct dev", ··· 1396 1406 "dependency": "direct main", 1397 1407 "description": { 1398 1408 "name": "pdfrx", 1399 - "sha256": "4640c561aa31598c9c8ff9042675f7c1ecb2ca2b1190dff6e2ecaa677d1bc416", 1409 + "sha256": "c7f80eac77b38a66f2dc49e5cbfd38ed522da77d42ac6d5552872a17f7262a67", 1400 1410 "url": "https://pub.dev" 1401 1411 }, 1402 1412 "source": "hosted", 1403 - "version": "1.1.35" 1413 + "version": "1.3.3" 1404 1414 }, 1405 1415 "perfect_freehand": { 1406 1416 "dependency": "direct main", ··· 1416 1426 "dependency": "direct main", 1417 1427 "description": { 1418 1428 "name": "permission_handler", 1419 - "sha256": "2d070d8684b68efb580a5997eb62f675e8a885ef0be6e754fb9ef489c177470f", 1429 + "sha256": "bc917da36261b00137bbc8896bf1482169cd76f866282368948f032c8c1caae1", 1420 1430 "url": "https://pub.dev" 1421 1431 }, 1422 1432 "source": "hosted", 1423 - "version": "12.0.0+1" 1433 + "version": "12.0.1" 1424 1434 }, 1425 1435 "permission_handler_android": { 1426 1436 "dependency": "transitive", ··· 1506 1516 "dependency": "transitive", 1507 1517 "description": { 1508 1518 "name": "platform_linux", 1509 - "sha256": "856cfc9871e3ff3df6926991729d24bba9b70d0229ae377fa08b562344baaaa8", 1519 + "sha256": "907b7c6da6ee6eea61cd1266b7bd72e2d5bbf7e85160221e8ac5583a44e7a1c7", 1510 1520 "url": "https://pub.dev" 1511 1521 }, 1512 1522 "source": "hosted", 1513 - "version": "0.1.2" 1523 + "version": "0.1.2+1" 1514 1524 }, 1515 1525 "plugin_platform_interface": { 1516 1526 "dependency": "transitive", ··· 1536 1546 "dependency": "transitive", 1537 1547 "description": { 1538 1548 "name": "posix", 1539 - "sha256": "f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62", 1549 + "sha256": "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61", 1540 1550 "url": "https://pub.dev" 1541 1551 }, 1542 1552 "source": "hosted", 1543 - "version": "6.0.2" 1553 + "version": "6.0.3" 1544 1554 }, 1545 1555 "power_extensions": { 1546 1556 "dependency": "transitive", ··· 1626 1636 "dependency": "transitive", 1627 1637 "description": { 1628 1638 "name": "quill_native_bridge_linux", 1629 - "sha256": "5fcc60cab2ab9079e0746941f05c5ca5fec85cc050b738c8c8b9da7c09da17eb", 1639 + "sha256": "388aaa62017dbd746742ce0bfae99f4ffe1dda2462e8a866df630c67b63c54fe", 1630 1640 "url": "https://pub.dev" 1631 1641 }, 1632 1642 "source": "hosted", 1633 - "version": "0.0.1" 1643 + "version": "0.0.2" 1634 1644 }, 1635 1645 "quill_native_bridge_macos": { 1636 1646 "dependency": "transitive", ··· 1666 1676 "dependency": "transitive", 1667 1677 "description": { 1668 1678 "name": "quill_native_bridge_windows", 1669 - "sha256": "60e50d74238f22ceb43113d9a42b6627451dab9fc27f527b979a32051cf1da45", 1679 + "sha256": "3f96ced19e3206ddf4f6f7dde3eb16bdd05e10294964009ea3a806d995aa7caa", 1670 1680 "url": "https://pub.dev" 1671 1681 }, 1672 1682 "source": "hosted", 1673 - "version": "0.0.1" 1683 + "version": "0.0.2" 1674 1684 }, 1675 1685 "quiver": { 1676 1686 "dependency": "transitive", ··· 1903 1913 "dependency": "direct main", 1904 1914 "description": { 1905 1915 "name": "slang", 1906 - "sha256": "6668a08355b370d5cb5446fc869c4492ed23c6433934fe88228876460fedac22", 1916 + "sha256": "bc9488b19acbc4756aa60a9de19720045f9d49a4a7524d56475e0a6965bcd8bd", 1907 1917 "url": "https://pub.dev" 1908 1918 }, 1909 1919 "source": "hosted", 1910 - "version": "4.7.2" 1920 + "version": "4.7.3" 1911 1921 }, 1912 1922 "slang_flutter": { 1913 1923 "dependency": "direct main", ··· 1949 1959 "source": "hosted", 1950 1960 "version": "1.12.1" 1951 1961 }, 1962 + "stow": { 1963 + "dependency": "direct main", 1964 + "description": { 1965 + "name": "stow", 1966 + "sha256": "94707ed29bfe08a92d7ff6e7849cf1a0d43a106a8bd514e1f6a86ce0e7347efe", 1967 + "url": "https://pub.dev" 1968 + }, 1969 + "source": "hosted", 1970 + "version": "0.5.0" 1971 + }, 1972 + "stow_codecs": { 1973 + "dependency": "direct main", 1974 + "description": { 1975 + "name": "stow_codecs", 1976 + "sha256": "edfaee5b03d6b23df277889ec80e587e66d48fbbf7f7ef925a9d1046d08a3ec0", 1977 + "url": "https://pub.dev" 1978 + }, 1979 + "source": "hosted", 1980 + "version": "1.2.0+1" 1981 + }, 1982 + "stow_plain": { 1983 + "dependency": "direct main", 1984 + "description": { 1985 + "name": "stow_plain", 1986 + "sha256": "be2496088876a6a3c51e24de0230a3c7626c8bc47c4edb8761ce69dcddbedca3", 1987 + "url": "https://pub.dev" 1988 + }, 1989 + "source": "hosted", 1990 + "version": "0.5.0" 1991 + }, 1992 + "stow_secure": { 1993 + "dependency": "direct main", 1994 + "description": { 1995 + "name": "stow_secure", 1996 + "sha256": "8f5e724e0f94ab052b18ffa4c3e24d32f28efdd6b069c7494552759f1aa55504", 1997 + "url": "https://pub.dev" 1998 + }, 1999 + "source": "hosted", 2000 + "version": "0.5.0" 2001 + }, 1952 2002 "stream_channel": { 1953 2003 "dependency": "transitive", 1954 2004 "description": { ··· 2003 2053 "dependency": "transitive", 2004 2054 "description": { 2005 2055 "name": "synchronized", 2006 - "sha256": "0669c70faae6270521ee4f05bffd2919892d42d1276e6c495be80174b6bc0ef6", 2056 + "sha256": "c254ade258ec8282947a0acbbc90b9575b4f19673533ee46f2f6e9b3aeefd7c0", 2007 2057 "url": "https://pub.dev" 2008 2058 }, 2009 2059 "source": "hosted", 2010 - "version": "3.3.1" 2060 + "version": "3.4.0" 2011 2061 }, 2012 2062 "term_glyph": { 2013 2063 "dependency": "transitive", ··· 2073 2123 "dependency": "direct main", 2074 2124 "description": { 2075 2125 "name": "url_launcher", 2076 - "sha256": "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603", 2126 + "sha256": "f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8", 2077 2127 "url": "https://pub.dev" 2078 2128 }, 2079 2129 "source": "hosted", 2080 - "version": "6.3.1" 2130 + "version": "6.3.2" 2081 2131 }, 2082 2132 "url_launcher_android": { 2083 2133 "dependency": "transitive", ··· 2303 2353 "dependency": "direct main", 2304 2354 "description": { 2305 2355 "name": "workmanager", 2306 - "sha256": "f3c3ce6d79cce53eee4a29dd2e8328c25db5ba5d9062fcc5e8f3c71e0af9b7e4", 2356 + "sha256": "dffcbbfd99af17271ca52d8a3767ba8a1000b357f2774db8ed5d58879cb9783a", 2357 + "url": "https://pub.dev" 2358 + }, 2359 + "source": "hosted", 2360 + "version": "0.8.0" 2361 + }, 2362 + "workmanager_android": { 2363 + "dependency": "transitive", 2364 + "description": { 2365 + "name": "workmanager_android", 2366 + "sha256": "a6447816c41aa0ad8f6fa29b62d09a528891cf0737296397e1caae2523ced7dc", 2307 2367 "url": "https://pub.dev" 2308 2368 }, 2309 2369 "source": "hosted", 2310 - "version": "0.6.0" 2370 + "version": "0.8.0" 2371 + }, 2372 + "workmanager_apple": { 2373 + "dependency": "transitive", 2374 + "description": { 2375 + "name": "workmanager_apple", 2376 + "sha256": "9c99003682a8423bdc122ff4bae891e24574d1e676ea302d2ef0493266228461", 2377 + "url": "https://pub.dev" 2378 + }, 2379 + "source": "hosted", 2380 + "version": "0.8.0" 2381 + }, 2382 + "workmanager_platform_interface": { 2383 + "dependency": "transitive", 2384 + "description": { 2385 + "name": "workmanager_platform_interface", 2386 + "sha256": "b1f0a868f1117511a23b0eb4220f08134152433b51a83eed479b1d68bbe23789", 2387 + "url": "https://pub.dev" 2388 + }, 2389 + "source": "hosted", 2390 + "version": "0.8.0" 2311 2391 }, 2312 2392 "xdg_directories": { 2313 2393 "dependency": "transitive", ··· 2412 2492 }, 2413 2493 "sdks": { 2414 2494 "dart": ">=3.8.0 <4.0.0", 2415 - "flutter": ">=3.32.0" 2495 + "flutter": ">=3.32.7" 2416 2496 } 2417 2497 }
+51
pkgs/by-name/sa/saber/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()