From 2660e014748ed5e8aa98b468ce0f623d58afe1de Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sat, 5 Nov 2022 03:26:12 -0400 Subject: [PATCH] laminar: pass version to the build system Without this patch, laminar identifies itself as xx-unversioned both in command line interface (laminarc --help) and in web interface. --- .../tools/continuous-integration/laminar/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/continuous-integration/laminar/default.nix b/pkgs/development/tools/continuous-integration/laminar/default.nix index fc0a77cdb66a..f84729783110 100644 --- a/pkgs/development/tools/continuous-integration/laminar/default.nix +++ b/pkgs/development/tools/continuous-integration/laminar/default.nix @@ -38,6 +38,8 @@ in stdenv.mkDerivation rec { # We need both binary from "capnproto" and library files. nativeBuildInputs = [ cmake pandoc capnproto ]; buildInputs = [ capnproto sqlite boost zlib rapidjson ]; + cmakeFlags = [ "-DLAMINAR_VERSION=${version}" ]; + preBuild = '' mkdir -p js css cp ${js.vue} js/vue.min.js