From aecf87df1c074249329b2753891ad45c4d19d9d0 Mon Sep 17 00:00:00 2001 From: Wojciech Kordalski Date: Thu, 7 Dec 2023 23:11:32 +0100 Subject: [PATCH] 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 --- pkgs/applications/editors/lapce/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/editors/lapce/default.nix b/pkgs/applications/editors/lapce/default.nix index 6b955bdb180b..e65d557fac83 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