9 rustPlatform.buildRustPackage rec {
14 url = "https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/";
15 rev = "refs/tags/${version}";
16 hash = "sha256-ER+P/XGqNzTLwDLK5EBZq/Dl29ZZKl2FdxDb+oLEJ8Y=";
20 ./0001-update-time-rs.patch
23 # must use our own Cargo.lock due to git dependencies
25 lockFile = ./Cargo.lock;
27 "imap-codec-2.0.0" = "sha256-o64Q74Q84xLRfU4K4JtcjyS0J8mfoApvUs9siscd0RA=";
28 "imap-flow-0.1.0" = "sha256-IopxybuVt5OW6vFiw/4MxojzaNZrKu2xyfaX6F8IYlA=";
29 "k2v-client-0.0.4" = "sha256-V71FCIsgK3VStFOzVntm8P0vXRobF5rQ74qar+cKyik=";
30 "smtp-message-0.1.0" = "sha256-FoSakm3D1xg1vefLf/zkyvzsij1G0QstK3CRo+LbByE=";
34 # disable network tests as Nix sandbox breaks them
38 # get openssl-sys to use pkg-config
39 OPENSSL_NO_VENDOR = true;
40 RUSTC_BOOTSTRAP = true;
43 nativeBuildInputs = [ pkg-config ];
44 buildInputs = [ openssl ];
47 description = "Encrypted e-mail storage over Garage";
48 homepage = "https://aerogramme.deuxfleurs.fr/";
49 license = lib.licenses.eupl12;
50 maintainers = with lib.maintainers; [ supinie ];
51 mainProgram = "aerogramme";
52 platforms = lib.platforms.linux;