Commit cab05186 authored by Matej Cotman's avatar Matej Cotman Committed by adisbladis
Browse files

lemmy-server: write version to file

parent 2ba6d6fb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 ]