diff --git a/pkgs/servers/web-apps/lemmy/server.nix b/pkgs/servers/web-apps/lemmy/server.nix index c5c9924779e14..d37e18224a778 100644 --- a/pkgs/servers/web-apps/lemmy/server.nix +++ b/pkgs/servers/web-apps/lemmy/server.nix @@ -31,6 +31,10 @@ rustPlatform.buildRustPackage rec { ./tokio-macros.patch ]; + preConfigure = '' + echo 'pub const VERSION: &str = "${version}";' > crates/utils/src/version.rs + ''; + cargoSha256 = pinData.serverCargoSha256; buildInputs = [ postgresql ]