aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-25 11:35:33 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-25 11:35:33 +0100
commit93c0aa4b3a89201530520c46986659731a43cad6 (patch)
tree293c46d8c200dbd9b4fb23f42da8774b242a86a2
parent414634f5975a6157e459619c44f10f64c17a09c6 (diff)
downloadaerogramme-93c0aa4b3a89201530520c46986659731a43cad6.tar.gz
aerogramme-93c0aa4b3a89201530520c46986659731a43cad6.zip
Various post-release fixes
-rw-r--r--Cargo.lock3
-rw-r--r--Cargo.nix15
-rw-r--r--Cargo.toml2
-rw-r--r--flake.nix7
4 files changed, 13 insertions, 14 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 7fccea7..bacb048 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1437,7 +1437,8 @@ dependencies = [
[[package]]
name = "eml-codec"
version = "0.1.2"
-source = "git+https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git?branch=main#a7bd3c475a58e42b86c163ec075ce01ddae7e60a"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4499124d87abce26a57ef96ece800fa8babc38fbedd81c607c340ae83d46d2e"
dependencies = [
"base64 0.21.7",
"chrono",
diff --git a/Cargo.nix b/Cargo.nix
index cec9fba..2e9d085 100644
--- a/Cargo.nix
+++ b/Cargo.nix
@@ -23,7 +23,7 @@ args@{
ignoreLockHash,
}:
let
- nixifiedLockHash = "ea339b5c54a377a1e652d47aad8b162dcd36f49df6199862261787379e362fdf";
+ nixifiedLockHash = "20c06a1b3b8a8118e1170c8c1dc5b494a644d85b8a068cc2c7ffccad03f58d28";
workspaceSrc = if args.workspaceSrc == null then ./. else args.workspaceSrc;
currentLockHash = builtins.hashFile "sha256" (workspaceSrc + /Cargo.lock);
lockHashIgnored = if ignoreLockHash
@@ -91,7 +91,7 @@ in
clap = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".clap."3.2.25" { inherit profileName; }).out;
console_subscriber = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".console-subscriber."0.2.0" { inherit profileName; }).out;
duplexify = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".duplexify."1.2.2" { inherit profileName; }).out;
- eml_codec = (rustPackages."git+https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git".eml-codec."0.1.2" { inherit profileName; }).out;
+ eml_codec = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".eml-codec."0.1.2" { inherit profileName; }).out;
futures = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".futures."0.3.30" { inherit profileName; }).out;
hex = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".hex."0.4.3" { inherit profileName; }).out;
hyper_rustls = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".hyper-rustls."0.24.2" { inherit profileName; }).out;
@@ -1938,16 +1938,11 @@ in
};
});
- "git+https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git".eml-codec."0.1.2" = overridableMkRustCrate (profileName: rec {
+ "registry+https://github.com/rust-lang/crates.io-index".eml-codec."0.1.2" = overridableMkRustCrate (profileName: rec {
name = "eml-codec";
version = "0.1.2";
- registry = "git+https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git";
- src = fetchCrateGit {
- url = https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git;
- name = "eml-codec";
- version = "0.1.2";
- rev = "a7bd3c475a58e42b86c163ec075ce01ddae7e60a";
- ref = "main";};
+ registry = "registry+https://github.com/rust-lang/crates.io-index";
+ src = fetchCratesIo { inherit name version; sha256 = "d4499124d87abce26a57ef96ece800fa8babc38fbedd81c607c340ae83d46d2e"; };
dependencies = {
base64 = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".base64."0.21.7" { inherit profileName; }).out;
chrono = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".chrono."0.4.31" { inherit profileName; }).out;
diff --git a/Cargo.toml b/Cargo.toml
index a02d1a3..061bdec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -60,7 +60,7 @@ aws-config = { version = "1.1.1", features = ["behavior-version-latest"] }
aws-sdk-s3 = "1.9.0"
# email protocols
-eml-codec = { git = "https://git.deuxfleurs.fr/Deuxfleurs/eml-codec.git", branch = "main" }
+eml-codec = "0.1.2"
smtp-message = { git = "http://github.com/Alexis211/kannader", branch = "feature/lmtp" }
smtp-server = { git = "http://github.com/Alexis211/kannader", branch = "feature/lmtp" }
imap-codec = { version = "2.0.0", features = ["bounded-static", "ext_condstore_qresync"] }
diff --git a/flake.nix b/flake.nix
index 7811c97..a94298c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -132,7 +132,8 @@
dontUnpack = true;
dontBuild = true;
installPhase = ''
- cp ${(rustRelease.workspace.aerogramme {}).bin}/bin/aerogramme $out
+ mkdir -p $out/bin
+ cp ${(rustRelease.workspace.aerogramme {}).bin}/bin/aerogramme $out/bin/
'';
};
@@ -151,8 +152,10 @@
container = pkgs.dockerTools.buildImage {
name = "dxflrs/aerogramme";
architecture = (builtins.getAttr targetHost archMap).GOARCH;
+ copyToRoot = bin;
config = {
- Cmd = [ "${bin}" "server" ];
+ Env = [ "PATH=/bin" ];
+ Cmd = [ "aerogramme" "--dev" "provider" "daemon" ];
};
};