Commit graph

39 commits

Author SHA1 Message Date
Clément DOUIN 095d519dd0
clean remaining parts 2024-04-19 22:11:16 +02:00
Clément DOUIN 087a0821bc
fix typo getExec 2024-04-19 20:44:03 +02:00
Clément DOUIN cf6000f1e4
clean apps and packages part 1 2024-04-19 17:04:02 +02:00
Clément DOUIN c022e66289
fix gh action ls 2024-04-19 09:44:16 +02:00
Clément DOUIN 5003abe1e1
fix post install 2024-04-19 08:34:15 +02:00
Clément DOUIN 4590348bf2
merge archives packages with regular ones 2024-04-19 07:22:25 +02:00
Clément DOUIN a066774f22
clean namings 2024-04-18 23:34:15 +02:00
Clément DOUIN c57988770a
fix windows ext 2024-04-18 22:42:11 +02:00
Clément DOUIN 7fbd97ceba
add nix test github workflow 2024-04-18 22:06:24 +02:00
Clément DOUIN 7899484942
separate simple packages from archives packages for releases 2024-04-18 16:54:48 +02:00
Clément DOUIN 10de8e9fb4
release v1.0.0-beta.4 2024-04-16 22:26:10 +02:00
Jalil David Salamé Messina ed5407a5c7
remove flake-utils from the flake inputs
As requested in <https://todo.sr.ht/~soywod/pimalaya/131> I removed
flake-utils. This reduces the number of flake inputs and doesn't add
much code.

The way this works, is that instead of `eachDefaultSystem` we have a
function `forEachSupportedSystem`, this function generates an attrset
with a key for each system in the `supportedSystems` array, whose value
is the result of calling the provided function with the system as an
argument:

```nix repl
repl> forEachSupportedSystem f
{
  "x86_64-linux" = f "x86_64-linux";
  ...
}
```

This is slightly clumsier than `flake-utils.lib.eachDefaultSystem`,
which rewrites the returned attrset, but it is much less code and
simpler to understand.

I tested the build with `nix build` on `x86_64-linux` and it still works
c:
2024-03-09 13:54:37 +01:00
Clément DOUIN e945c4b8e2
replace sqlite by sled for id mapping storing 2024-02-24 09:37:55 +01:00
Clément DOUIN 1246be8a5b
fix wizard serialization issues 2024-01-12 10:16:43 +01:00
Clément DOUIN b0d7e773dc
renamed sync feature to account-sync, put wizard stuff under feature 2024-01-09 09:28:45 +01:00
Clément DOUIN 12e71a5ba8
improve release process 2024-01-01 16:22:30 +01:00
Clément DOUIN 131acd6230
update flake deps, fix gh release interpreter 2023-12-31 11:05:08 +01:00
Clément DOUIN 7ad1772c83
update pimalaya libs, prepare v0.9.0 2023-08-28 09:05:14 +02:00
Clément DOUIN 0eed8f355d
add gpg support 2023-08-05 12:10:25 +02:00
Clément DOUIN 21f67bc7f5
set up imap oauth2 config 2023-05-04 12:17:43 +02:00
Clément DOUIN e271ca4293
fix different toolchain channel between shells and packages 2023-05-01 16:13:31 +02:00
Clément DOUIN 9453f83c94
fix unit tests 2023-05-01 00:44:59 +02:00
Clément DOUIN 84003f951a
improve cross compilation, prepare v0.7.2 2023-05-01 00:19:59 +02:00
Clément DOUIN 1dcdfa8afa
update nix flake 2022-09-28 22:28:08 +02:00
Clément DOUIN a3686c1c44
clean config refactor 2022-09-22 16:38:38 +02:00
Clément DOUIN 7c01f88006
make Backend::get_mboxes return struct instead of trait (#340)
This step was necessary to move logic from CLI to lib. Indeed, the
trait returned by get_mboxes needed to implement Table, which is
related to the CLI module only.
2022-05-29 12:36:10 +02:00
Clément DOUIN a0461d84ba
use default rust toolchain components 2022-05-28 20:03:27 +02:00
TornaxO7 b6643be03f
add rust toolchain.toml (#386)
* modified gitignore

* fixing gitignore

* reomving the himalaya.iml file

* applied cargo fmt

* adding rust-toolchain

* restoring the .gitignore file

* make nix use rust-toolchain.toml

* add back rustfmt and rust-analyzer to buildInputs

I opened an issue to see if its the correct behaviour from the
overlay: https://github.com/oxalica/rust-overlay/issues/88.

* adding clippy to rust-toolchain.toml

Co-authored-by: Clément DOUIN <clement.douin@posteo.net>
2022-05-28 14:36:32 +02:00
Clément DOUIN b2cffd22f1
use cargo workspace feature (#340)
For now, everything has been moved as it is in the "cli"
workspace. The next step is to separate the "lib" from the "cli".
2022-03-16 09:57:24 +01:00
Clément DOUIN f06beb61ae
make one cargo feature per backend (#318) 2022-03-04 14:19:54 +01:00
Clément DOUIN 8cdeba62a1
release v0.5.2 (#282)
* doc: fix blur in list msg screenshots (#181)

* fix a typo in mbox arg (#245)

`targetted` to `targeted` 👌🏻

* make inbox, sent and drafts folder customizable (#246)

* mbox: make inbox, sent and drafts folder customizable

* msg: update send handler parameters order

* vim: fix extracting message ids from list (#247)

The current method doesn't work because the list uses a fancy line
character (`│`) as the separator, not a regular pipe character (`|`).
Matching for the first number in the line instead solves the problem and
will continue to work regardless of what separator is used.

* add new line after printing strings (#251)

* init cargo workspace (#252)

* init cargo workspaces

* nix: fix assets path

* doc: update rtp vim plugin

* vim: add error message if loading vim plugin from vim/

* init sub crates (#253)

* init sub crates

* doc: update readme

* doc: improve main readme

* doc: add links, add missing crate task

* doc: update emojis

* update cargo lock

* implement contact completion with completefunc (#250)

This allows users to define a command for contact completion with
`g:himalaya_complete_contact_cmd` and trigger it with `<C-x><C-u>` when
writing an email.

* fix clippy lints (#255)

* revert cargo workspace feature

* fix nix run (#274)

* replace cargo2nix by naersk

* add rust-analyzer and rustfmt to nix build inputs

* remove wiki from git submodules, update changelog

* fix missing range when fetch fails, add more logs (#276)

* add missing fix in changelog

* remove blank lines and spaces from plain parts (#280)

* fix watch command (#271)

* remove also tabs from text parts (#280)

* pin native-tls minor version (#278)

* improve msg sanitization (#280)

* fix mbox vim plugin telescope preview (#249)

* bump version v0.5.2

* update changelog

Co-authored-by: Austin Traver <austintraver@gmail.com>
Co-authored-by: Jason Cox <dev@jasoncarloscox.com>
Co-authored-by: Gökmen Görgen <gkmngrgn@gmail.com>
Co-authored-by: Ethiraric <ethiraric@gmail.com>
2022-02-02 02:21:35 +01:00
Clément DOUIN f9775ae8af
doc: update project desc, bump version v0.5.1 2021-10-24 23:41:12 +02:00
toastal 63090a2f01
remove extra version (#183)
* Nix dependencies updated

* fix vim plugin build
2021-08-03 15:15:38 +02:00
toastal f77f33b2d8
fix vim plugin + update flake references (#182)
* Nix dependencies updated

* fix vim plugin build
2021-08-03 15:11:52 +02:00
toastal 0d7b490f98
include vim plugin inside nix package (#157) 2021-06-03 16:51:48 +02:00
toastal edb2e181e7
add .desktop file (#161) 2021-06-03 15:33:25 +02:00
Clément DOUIN cddb7bde37
refactor table system (#132)
* init table trait

* add shrink_col_index and max_width method to Table trait

* make unicodes work when shrinking

* improve readability of the table

* replace old table system with new one

* update changelog
2021-04-27 14:54:53 +02:00
Clément DOUIN cc1311c168
release v0.2.7 2021-04-24 23:49:42 +02:00
Sridhar Ratnakumar 76f9084f91
add nix support (#76)
* Add default.nix for nix support

* Convert to flake

* gitignore before building the source

* Add default.nix and shell.nix for legacy workflows

* Use https://github.com/oxalica/rust-overlay

This one works for development workflow, with a functional rust-analyzer for using with language server support in IDEs.

Also add .vscode/ for pre-configured settings.

* Add documentation

* Restore old TOC and apply TOC patch manually

* Clarify that these two commands are either-or

* Add installing from local checkout (nix-env)

* Add note about version update

* Improve Nix workflow, for zero maintenance

Use https://github.com/nmattia/naersk

This avoids having to set a sha and version in Nix scripts.

* Simplify using crate2nix

Ref: https://www.reddit.com/r/rust/comments/mmbfnj/nixifying_a_rust_project/

* Use rootCrate

* Propagate openssl deps to non-shell build

* Try the oxalica overlay

* Get rid of gitignore crate

cf. https://www.reddit.com/r/rust/comments/mmbfnj/nixifying_a_rust_project/gtsgxal/?context=3

* Configure himalaya crate under defaultCrateOverrides

* Specify openssl in buildInputs

* Make a note about a potential error when using Nix 2.4pre

* Remove PKG_CONFIG_PATH (unnecessary)

* Add cargo-watch

Co-authored-by: Alexander Bantyev <balsoft@balsoft.ru>

Co-authored-by: Alexander Bantyev <balsoft@balsoft.ru>
2021-04-18 00:06:11 +02:00