-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Min Nguyen edited this page Jun 18, 2022
·
18 revisions
Manually
- Edit
~/.pack/user/pack.toml - Add
[custom.all.wasabaye]
type = "github"
url = "https://github.com/idris-bayes/wasabaye"
commit = "<specific-commit>"
ipkg = "wasabaye.ipkg"
- Run
pack update-dbMake sure idris2 is being run from~/.pack/bin, not from~/.idris2
The new feature is available with today's nightly. Just update the DB with pack update-db, set the collection in your pack.toml to nightly-220614, and switch the $HOME/.pack/bin symlink with pack switch nightly-220614. You can use the following syntax (in your pack.toml) to use the latest commit of a specific branch in a repo (in this example, the branche's name is sys):
[custom.all.rio]
type = "github"
url = "https://github.com/stefan-hoeck/idris2-rio"
commit = "latest:sys"
ipkg = "rio.ipkg"
- You can install pack-admin (via
pack install-app pack-admin). - Next, add the git repos plus branch to use to file
$HOME/.pack/db/HEAD.toml. E.g.
[db.distributions]
type = "github"
url = "https://github.com/idris-bayes/distributions"
commit = "master"
ipkg = "distributions.ipkg"
packagePath = false
- You can now fetch the latest commits of all packages on the given branches with
pack-admin extract-from-head "$HOME/.pack/db/HEAD.toml". (If you have added your packages to the list of autoinstall libraries in yourpack.tomlfile, pack will automatically update these packages if necessary. -- I (Min) didn't find this necessary, so maybe this point is orthogonal)