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