diff --git a/flake-module.nix b/flake-module.nix index 7559834..962d08b 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -67,8 +67,10 @@ 3. Check whether the sieve-rs patch below that exchanges the dependency needs updates. 4. Then update the version comparison in this assert statement. 5. Update the `cargoHash` by setting it to `lib.fakeHash` and then inserting the result. - 6. Check if we can get rid of alias-to-sieve when stalwart-mail has a builtin alias feature. + 6. Check if we can get rid of alias-to-sieve when stalwart-mail has a builtin mail-forwarding feature. ''; + # This override encapsulates the buildRustPackage function in a function that takes the arguments given by the nixpkgs-version of stalwart-mail + # and adds our patch to the arguments before handing the new arguments to buildRustPackage. prev.stalwart-mail.override ( let rp = pkgs.rustPlatform; @@ -85,6 +87,7 @@ # We want to redirect to sender if we simulate alias files and not doing so barely prevents loops in my opinion. ./patches/sieve-rs.patch ]; + # Replace the string with `lib.fakeHash` after version changes in order to get the new hash value. cargoHash = "sha256-gb2oFlVA/vE6DoWWW8SCFA3l7rtV2RuosPUY+6IcKNM="; } );