···155155 to work, the username used to connect to PostgreSQL must match the database name, that is
156156 services.invidious.settings.db.user must match services.invidious.settings.db.dbname.
157157 This is the default since NixOS 24.05. For older systems, it is normally safe to manually set
158158- services.invidious.database.user to "invidious" as the new user will be created with permissions
159159- for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed.
158158+ the user to "invidious" as the new user will be created with permissions
159159+ for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed, it can be
160160+ run as `sudo -u postgres env psql --user=postgres --dbname=invidious -c 'reassign OWNED BY kemal to invidious;'`.
160161 '';
161162 }
162163 ];
···7788 # Please keep the version x.y.0.z and do not update to x.y.76.z because the
99 # source of the latter disappears much faster.
1010- version = "8.108.0.205";
1010+ version = "8.110.76.107";
11111212 rpath = lib.makeLibraryPath [
1313 alsa-lib
···6868 "https://mirror.cs.uchicago.edu/skype/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
6969 "https://web.archive.org/web/https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb"
7070 ];
7171- sha256 = "sha256-9V+/tTFco69NkCeswbGobr3ZxcS3q+Zd7fiei4N8uTY=";
7171+ sha256 = "sha256-ocXhISwEtwzPd1dOPjgIj5UQ/8sqq2gUtmZ8KZBAxKM=";
7272 }
7373 else
7474 throw "Skype for linux is not supported on ${stdenv.hostPlatform.system}";
···11diff --git a/CMakeLists.txt b/CMakeLists.txt
22-index d87a7052d..837867551 100644
22+index ffb86d4ac..1775b986f 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
55-@@ -153,19 +153,8 @@ endif()
55+@@ -177,19 +177,8 @@ endif()
6677 mapnik_find_package(Freetype REQUIRED)
88···1616- # It might be possible that in future version harfbuzz could only be found via pkg-config.
1717- # harfbuzz related discussion: https://github.com/harfbuzz/harfbuzz/issues/2653
1818- message(STATUS "harfbuzz not found via cmake. Searching via pkg-config...")
1919-- pkg_check_modules(harfbuzz REQUIRED IMPORTED_TARGET harfbuzz>=${HARFBUZZ_MIN_VERSION})
1919+- mapnik_pkg_check_modules(harfbuzz REQUIRED IMPORTED_TARGET harfbuzz>=${HARFBUZZ_MIN_VERSION})
2020- list(APPEND MAPNIK_OPTIONAL_LIBS PkgConfig::harfbuzz)
2121-endif()
2222+pkg_check_modules(harfbuzz REQUIRED IMPORTED_TARGET harfbuzz)
···11+# This package provides `tectonic.passthru.tests`.
22+# It requires internet access to fetch tectonic's resource bundle on demand.
33+44+{ lib
55+, fetchFromGitHub
66+, runCommand
77+, tectonic
88+, curl
99+, cacert
1010+, emptyFile
1111+}:
1212+1313+let
1414+ /*
1515+ Currently, the test files are only fully available from the `dev` branch of
1616+ `biber`. When https://github.com/plk/biber/pull/467 is eventually released,
1717+ we can obtain the test files from `texlive.pkgs.biber.texsource`. For now,
1818+ i.e. biber<=2.19, we fetch the test files directly from GitHub.
1919+ */
2020+ biber-dev-source = fetchFromGitHub {
2121+ owner = "plk";
2222+ repo = "biber";
2323+ # curl https://api.github.com/repos/plk/biber/pulls/467 | jq .merge_commit_sha
2424+ rev = "d43e352586f5c9f98f0331978ca9d0b908986e09";
2525+ hash = "sha256-Z5BdMteBouiDQasF6GZXkS//YzrZkcX1eLvKIQIBkBs=";
2626+ };
2727+ testfiles = "${biber-dev-source}/testfiles";
2828+2929+ noNetNotice = builtins.toFile "tectonic-offline-notice" ''
3030+ # To fetch tectonic's web bundle, the tests require internet access,
3131+ # which is not available in the current environment.
3232+ '';
3333+ # `cacert` is required for tls connections
3434+ nativeBuildInputs = [ curl cacert tectonic ];
3535+ checkInternet = ''
3636+ if curl --head "bing.com"; then
3737+ set -e # continue to the tests defined below, fail on error
3838+ else
3939+ cat "${noNetNotice}"
4040+ cp "${emptyFile}" "$out"
4141+ exit # bail out gracefully when there is no internet, do not panic
4242+ fi
4343+ '';
4444+4545+ networkRequiringTestPkg = name: script: runCommand
4646+ /*
4747+ Introduce dependence on `tectonic` in the test package name. Note that
4848+ adding `tectonic` to `nativeBuildInputs` is not enough to trigger
4949+ rebuilds for a fixed-output derivation. One must update its name or
5050+ output hash to induce a rebuild. This behavior is exactly the same as a
5151+ standard nixpkgs "fetcher" such as `fetchurl`.
5252+ */
5353+ "test-${lib.removePrefix "${builtins.storeDir}/" tectonic.outPath}-${name}"
5454+ {
5555+ /*
5656+ Make a fixed-output derivation, return an `emptyFile` with fixed hash.
5757+ These derivations are allowed to access the internet from within a
5858+ sandbox, which allows us to test the automatic download of resource
5959+ files in tectonic, as a side effect. The `tectonic.outPath` is included
6060+ in `name` to induce rebuild of this fixed-output derivation whenever
6161+ the `tectonic` derivation is updated.
6262+ */
6363+ inherit (emptyFile)
6464+ outputHashAlgo
6565+ outputHashMode
6666+ outputHash
6767+ ;
6868+ allowSubstitutes = false;
6969+ inherit nativeBuildInputs;
7070+ }
7171+ ''
7272+ ${checkInternet}
7373+ ${script}
7474+ cp "${emptyFile}" "$out"
7575+ '';
7676+7777+in
7878+lib.mapAttrs networkRequiringTestPkg {
7979+ biber-compatibility = ''
8080+ # import the test files
8181+ cp "${testfiles}"/* .
8282+8383+ # tectonic caches in the $HOME directory, so set it to $PWD
8484+ export HOME=$PWD
8585+ tectonic -X compile ./test.tex
8686+ '';
8787+}
+2
pkgs/tools/typesetting/tectonic/wrapper.nix
···33, tectonic-unwrapped
44, biber-for-tectonic
55, makeWrapper
66+, callPackage
67}:
7889symlinkJoin {
···1415 passthru = {
1516 unwrapped = tectonic-unwrapped;
1617 biber = biber-for-tectonic;
1818+ tests = callPackage ./tests.nix { };
1719 };
18201921 # Replace the unwrapped tectonic with the one wrapping it with biber
···8787 CommonMark = commonmark; # added 2023-02-1
8888 ConfigArgParse = configargparse; # added 2021-03-18
8989 coronavirus = throw "coronavirus was removed, because the source is not providing the data anymore."; # added 2023-05-04
9090+ covCore = cov-core; # added 2024-01-03
9091 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14
9192 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23
9293 cx_Freeze = cx-freeze; # added 2023-08-02