···97 cp -r config/sql $out/share/invidious/config
98 '';
99100- # Invidious tries to open config/config.yml and connect to the database, even
101- # when running --help. This specifies a minimal configuration in an
102- # environment variable. Even though the database is bogus, --help still
103- # works.
104 installCheckPhase = ''
105- INVIDIOUS_CONFIG="database_url: sqlite3:///dev/null" $out/bin/invidious --help
0000106 '';
107108 passthru = {
···97 cp -r config/sql $out/share/invidious/config
98 '';
99100+ # Invidious tries to open and validate config/config.yml, even when
101+ # running --help. This specifies a minimal configuration in an
102+ # environment variable. Even though the database and hmac_key are
103+ # bogus, --help still works.
104 installCheckPhase = ''
105+ INVIDIOUS_CONFIG="$(cat <<EOF
106+ database_url: sqlite3:///dev/null
107+ hmac_key: "this-is-required"
108+ EOF
109+ )" $out/bin/invidious --help
110 '';
111112 passthru = {