File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed
nixos/modules/services/web-apps
pkgs/build-support/fetchnextcloudapp Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 391391 inherit (pkgs.nextcloud31Packages.apps) mail calendar contacts;
392392 phonetrack = pkgs.fetchNextcloudApp {
393393 name = "phonetrack";
394- sha256 = "0qf366vbahyl27p9mshfma1as4nvql6w75zy2zk5xwwbp343vsbc";
395- url = "https://gitlab.com/eneiluj/phonetrack-oc/-/wikis/uploads/931aaaf8dca24bf31a7e169a83c17235/phonetrack-0.6.9.tar.gz";
396- version = "0.6.9";
394+ license = "agpl3Plus";
395+ sha512 = "f67902d1b48def9a244383a39d7bec95bb4215054963a9751f99dae9bd2f2740c02d2ef97b3b76d69a36fa95f8a9374dd049440b195f4dad2f0c4bca645de228";
396+ url = "https://github.com/julien-nc/phonetrack/releases/download/v0.8.2/phonetrack-0.8.2.tar.gz";
397+ version = "0.8.2";
397398 };
398399 }
399400 '' ;
Original file line number Diff line number Diff line change 99 url ,
1010 hash ? "" ,
1111 sha256 ? "" ,
12+ sha512 ? "" ,
1213 appName ? null ,
1314 appVersion ? null ,
1415 license ,
@@ -23,7 +24,12 @@ applyPatches (
2324 {
2425 inherit patches ;
2526 src = ( if unpack then fetchzip else fetchurl ) {
26- inherit url hash sha256 ;
27+ inherit
28+ url
29+ hash
30+ sha256
31+ sha512
32+ ;
2733 meta = {
2834 license = lib . licenses . ${ license } ;
2935 longDescription = description ;
@@ -42,6 +48,7 @@ applyPatches (
4248 exit 1
4349 fi
4450 '' ;
51+ # Optionally set name if appName and appVersion are provided
4552 }
4653 // lib . optionalAttrs ( appName != null && appVersion != null ) {
4754 name = "nextcloud-app-${ appName } -${ appVersion } " ;
Original file line number Diff line number Diff line change 1+ {
2+ testers ,
3+ fetchNextcloudApp ,
4+ ...
5+ } :
6+
7+ {
8+ simple-sha512 = testers . invalidateFetcherByDrvHash ( fetchNextcloudApp {
9+ appName = "phonetrack" ;
10+ appVersion = "0.8.2" ;
11+ license = "agpl3Plus" ;
12+ sha512 = "f67902d1b48def9a244383a39d7bec95bb4215054963a9751f99dae9bd2f2740c02d2ef97b3b76d69a36fa95f8a9374dd049440b195f4dad2f0c4bca645de228" ;
13+ url = "https://github.com/julien-nc/phonetrack/releases/download/v0.8.2/phonetrack-0.8.2.tar.gz" ;
14+ } ) ;
15+ simple-sha256 = testers . invalidateFetcherByDrvHash ( fetchNextcloudApp {
16+ appName = "phonetrack" ;
17+ appVersion = "0.8.2" ;
18+ license = "agpl3Plus" ;
19+ sha256 = "7c4252186e0ff8e0b97fc3d30131eeadd51bd2f9cc6aa321eb0c1c541f9572c0" ;
20+ url = "https://github.com/julien-nc/phonetrack/releases/download/v0.8.2/phonetrack-0.8.2.tar.gz" ;
21+ } ) ;
22+ }
You can’t perform that action at this time.
0 commit comments