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