Skip to content

Commit

Permalink
🐛 Fix versionInfo check in frontend nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn committed Dec 17, 2023
1 parent ef51872 commit 5e2848b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/pkgs/frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
''
Expand Down

0 comments on commit 5e2848b

Please sign in to comment.