Commit Graph

57 Commits

Author SHA1 Message Date
Kovacsics Robert 90c3bef172 Use Crane instead of Naersk
See
https://github.com/ipetkov/crane/blob/3cb338ce81076ce5e461cf77f7824476addb0e1c/examples/quick-start/flake.nix

Fixes pimalaya/himalaya#483
2024-11-22 10:17:42 +00:00
Kovacsics Robert 590d0a0e8c Fix warning about getExe deprecation 2024-11-22 10:15:22 +00:00
Clément DOUIN 5c4b03474e add cargo features to the long version 2024-11-22 09:51:43 +01:00
Kovacsics Robert c36e72b5f6 Allow passing in GIT_DESCRIBE/GIT_REV to avoid git repo
This should allow building inside a flake
2024-11-21 16:31:11 +00:00
Clément DOUIN 36f3690cba fix long version on nix and ci 2024-11-20 15:00:17 +01:00
Clément DOUIN 396a91a322 improve long version arg #496 2024-11-11 21:42:16 +01:00
Clément DOUIN 92814d6043 fix pre-release archives
commit f644ba7052ccb4247aba4d6a192fb54cd8a2a96e
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Wed Oct 30 16:30:39 2024 +0100

    do not remove share folder

commit 00e7148352e1e6aeb8ea6024763d76de3efb64da
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Wed Oct 30 16:21:35 2024 +0100

    upload folder and exe instead of archive
2024-10-30 16:50:15 +01:00
Clément DOUIN fecbae001c clean darwin fix
commit 994515f3dbd3fa41c50fb5a080d584a7be365601
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 19:38:43 2024 +0100

    clean

commit ac3d181628
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 19:25:35 2024 +0100

    replace buildInputs by NIX_LDFLAGS

commit 4d69fd56e2
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 19:06:03 2024 +0100

    remove NIX_LDFLAGS

commit 69a6d17570
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 18:50:52 2024 +0100

    use framework 11.0

commit 97ee430bc8
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 18:19:42 2024 +0100

    revert flake lock

commit 61905bb849
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 18:01:21 2024 +0100

    clean aarch64 nix conf

commit 55594cc6a7
Author: Clément DOUIN <clement.douin@posteo.net>
Date:   Tue Oct 29 17:41:48 2024 +0100

    replace rustls-native-certs by rustls-platform-verifier
2024-10-29 19:39:43 +01:00
Clément DOUIN ff1996107b add missing darwin frameworks 2024-10-29 16:57:43 +01:00
Clément DOUIN d54e2b31b7 use nixpkgs unstable 2024-10-29 12:12:42 +01:00
Clément DOUIN c44cac50eb use back apple sdk 11.0 on x86_64-darwin 2024-10-29 12:09:41 +01:00
Clément DOUIN 7b55da8c40 revert flake nixpkgs rev 2024-10-29 11:49:06 +01:00
Clément DOUIN 52aa6336a0 bump flake deps, use apple sdk 11.0 on x86_64-darwin 2024-10-29 11:21:27 +01:00
Clément DOUIN 7c17f801eb try to fix macos-13 build 2024-10-29 10:53:03 +01:00
Clément DOUIN a6344d682d Revert "remove cargo cache"
This partially reverts commit 2d53144c7c.
2024-09-17 09:02:02 +02:00
Clément DOUIN 2d53144c7c remove cargo cache
Looks like cargo cache is inside the Nix store.
2024-09-17 08:55:54 +02:00
Clément DOUIN 74ec31014c fix ci macos version 2024-09-04 11:38:46 +02:00
Clément DOUIN afd7d79e41 try to fix ci 2024-09-04 11:20:21 +02:00
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