From 31fcf2b3195472555b7273de429c66fa65c25e29 Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Tue, 27 Jun 2023 06:56:51 +0300 Subject: [PATCH] lemmy-server: write version to file --- pkgs/servers/web-apps/lemmy/server.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 ]