lapce: fix derivation so that Lapce detects its version correctly

The build process of Lapce detects Lapce version
being built by reading `RELEASE_TAG_NAME`
environment variable.

It is then used, e.g., to download proper version
of `lapce-proxy` during remote development.

This commit sets this environment variable in
Lapce derivation.

Co-authored-by: Nick Cao <nickcao@nichi.co>
This commit is contained in:
Wojciech Kordalski 2023-12-07 23:11:32 +01:00
parent b9e9e53d1b
commit aecf87df1c
No known key found for this signature in database
GPG Key ID: 7D83E309C320BD86

View File

@ -97,6 +97,9 @@ rustPlatform.buildRustPackage rec {
# Get openssl-sys to use pkg-config
OPENSSL_NO_VENDOR = 1;
# This variable is read by build script, so that Lapce editor knows its version
env.RELEASE_TAG_NAME = "v${version}";
buildInputs = [
glib
gtk3