diff options
author | Wojciech Kordalski <wkordalski@pm.me> | 2023-12-07 23:11:32 +0100 |
---|---|---|
committer | Wojciech Kordalski <wkordalski@pm.me> | 2023-12-08 23:59:08 +0100 |
commit | aecf87df1c074249329b2753891ad45c4d19d9d0 (patch) | |
tree | db95f9249ae84a9c1d49784171cad61764456de1 | |
parent | b9e9e53d1be2e1093821e8cbfa8f27ba7b981345 (diff) |
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>
-rw-r--r-- | pkgs/applications/editors/lapce/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/editors/lapce/default.nix b/pkgs/applications/editors/lapce/default.nix index 6b955bdb180b1..e65d557fac83f 100644 --- a/pkgs/applications/editors/lapce/default.nix +++ b/pkgs/applications/editors/lapce/default.nix @@ -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 |