From 0c59e10d121bf7223965857cc44fa56a33833ec6 Mon Sep 17 00:00:00 2001 From: Philipp Mandler Date: Sun, 17 Dec 2023 23:49:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20versionInfo=20check=20in?= =?UTF-8?q?=20frontend=20nix=20derivation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/pkgs/frontend.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/pkgs/frontend.nix b/nix/pkgs/frontend.nix index cfe0f8f1..4d9ac5ac 100644 --- a/nix/pkgs/frontend.nix +++ b/nix/pkgs/frontend.nix @@ -23,9 +23,9 @@ stdenv.mkDerivation { installPhase = let versionExports = ([ ] - ++ (lib.optional versionInfo.commitHash "export COMMIT_HASH=\"${versionInfo.commitHash}\"") - ++ (lib.optional versionInfo.commitDate "export COMMIT_DATE=\"${versionInfo.commitDate}\"") - ++ (lib.optional versionInfo.commitUrl "export COMMIT_URL=\"${versionInfo.commitUrl}\"") + ++ (lib.optional (versionInfo ? "commitHash") "export COMMIT_HASH=\"${versionInfo.commitHash}\"") + ++ (lib.optional (versionInfo ? "commitDate") "export COMMIT_DATE=\"${versionInfo.commitDate}\"") + ++ (lib.optional (versionInfo ? "commitUrl") "export COMMIT_URL=\"${versionInfo.commitUrl}\"") ); in ''