Skip to content

Commit

Permalink
lemmy-server: write version to file
Browse files Browse the repository at this point in the history
  • Loading branch information
matejc committed Jun 27, 2023
1 parent 5819aa9 commit 31fcf2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/servers/web-apps/lemmy/server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 31fcf2b

Please sign in to comment.