···9797 cp -r config/sql $out/share/invidious/config
9898 '';
9999100100- # Invidious tries to open config/config.yml and connect to the database, even
101101- # when running --help. This specifies a minimal configuration in an
102102- # environment variable. Even though the database is bogus, --help still
103103- # works.
100100+ # Invidious tries to open and validate config/config.yml, even when
101101+ # running --help. This specifies a minimal configuration in an
102102+ # environment variable. Even though the database and hmac_key are
103103+ # bogus, --help still works.
104104 installCheckPhase = ''
105105- INVIDIOUS_CONFIG="database_url: sqlite3:///dev/null" $out/bin/invidious --help
105105+ INVIDIOUS_CONFIG="$(cat <<EOF
106106+ database_url: sqlite3:///dev/null
107107+ hmac_key: "this-is-required"
108108+ EOF
109109+ )" $out/bin/invidious --help
106110 '';
107111108112 passthru = {