diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/invidious/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/invidious/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/servers/invidious/default.nix b/nixpkgs/pkgs/servers/invidious/default.nix index 7efeb5d9c39d..0b1cea5fd689 100644 --- a/nixpkgs/pkgs/servers/invidious/default.nix +++ b/nixpkgs/pkgs/servers/invidious/default.nix @@ -97,12 +97,16 @@ crystal.buildCrystalPackage rec { cp -r config/sql $out/share/invidious/config ''; - # Invidious tries to open config/config.yml and connect to the database, even - # when running --help. This specifies a minimal configuration in an - # environment variable. Even though the database is bogus, --help still - # works. + # Invidious tries to open and validate config/config.yml, even when + # running --help. This specifies a minimal configuration in an + # environment variable. Even though the database and hmac_key are + # bogus, --help still works. installCheckPhase = '' - INVIDIOUS_CONFIG="database_url: sqlite3:///dev/null" $out/bin/invidious --help + INVIDIOUS_CONFIG="$(cat <<EOF + database_url: sqlite3:///dev/null + hmac_key: "this-is-required" + EOF + )" $out/bin/invidious --help ''; passthru = { |