mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Update ware recipes using framework v2
This commit is contained in:
@@ -1,23 +1,39 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-11>
|
||||
* Last Modified : <2025-07-13>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2025-07-13
|
||||
*
|
||||
* @note 目前只有一个源, guixcn 的源不知道是否可用
|
||||
*/
|
||||
static Source_t wr_guix_sources[] =
|
||||
def_target(wr_guix);
|
||||
|
||||
void
|
||||
wr_guix_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(wr_guix);
|
||||
use_this(wr_guix);
|
||||
|
||||
chef_set_created_on (this, "2023-09-11");
|
||||
chef_set_last_updated (this, "2025-08-09");
|
||||
chef_set_sources_last_updated (this, "2025-07-13");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 1,
|
||||
"Nil Null", "nil@null.org");
|
||||
|
||||
// chef_has_getfn();
|
||||
chef_has_setfn();
|
||||
// chef_has_resetsrc();
|
||||
this.cap_locally = CanNot;
|
||||
this.cap_locally_explain = NULL;
|
||||
this.can_english = false;
|
||||
this.can_user_define = false;
|
||||
this.note = "目前只有一个源, guixcn 的源不知道是否可用";
|
||||
|
||||
def_upstream("https://git.savannah.gnu.org/git/guix.git");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://git.savannah.gnu.org/git/guix.git", DelegateToUpstream},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror}
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -26,7 +42,8 @@ def_sources_n(wr_guix);
|
||||
void
|
||||
wr_guix_setsrc (char *option)
|
||||
{
|
||||
chsrc_yield_source_and_confirm (wr_guix);
|
||||
use_this(wr_guix);
|
||||
Source_t source = chsrc_yield_source_and_confirm (this, option);
|
||||
|
||||
char *file = xy_strjoin (3, "(list (channel\n"
|
||||
" (inherit (car %default-channels))\n"
|
||||
@@ -38,20 +55,3 @@ wr_guix_setsrc (char *option)
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
wr_guix_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.can_english = false;
|
||||
f.can_user_define = false;
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_sf(wr_guix);
|
||||
|
Reference in New Issue
Block a user