···11+# autoPatchcilHook {#setup-hook-autopatchcilhook}
22+33+This is a special setup hook which helps in packaging .NET assemblies/programs in that it automatically tries to find missing shared library dependencies of .NET assemblies based on the given `buildInputs` and `nativeBuildInputs`.
44+55+As the hook needs information for the host where the package will be run on, there's a required environment variable called `autoPatchcilRuntimeId` which should be filled in with the RID (Runtime Identifier) of the machine where the output will be run on. If you're using `buildDotnetModule`, it will fall back to `dotnetRuntimeIds` (which is set to `lib.singleton (if runtimeId != null then runtimeId else systemToDotnetRid stdenvNoCC.hostPlatform.system)`) for you if not provided.
66+77+In certain situations you may want to run the main command (`autoPatchcil`) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the `dontAutoPatchcil` environment variable to a non-empty value.
88+99+By default, `autoPatchcil` will fail as soon as any .NET assembly requires a dependency which cannot be resolved via the given build inputs. In some situations you might prefer to just leave missing dependencies unpatched and continue to patch the rest. This can be achieved by setting the `autoPatchcilIgnoreMissingDeps` environment variable to a non-empty value. `autoPatchcilIgnoreMissingDeps` can be set to a list like `autoPatchcilIgnoreMissingDeps = [ "libcuda.so.1" "libcudart.so.1" ];` or to `[ "*" ]` to ignore all missing dependencies.
1010+1111+The `autoPatchcil` command requires the `--rid` command line flag, informing the RID (Runtime Identifier) it should assume the assemblies will be executed on, and also recognizes a `--no-recurse` command line flag, which prevents it from recursing into subdirectories.
1212+1313+::: {.note}
1414+Since, unlike most native binaries, .NET assemblies are compiled once to run on any platform, many assemblies may have PInvoke stubs for libraries that might not be available on the platform that the package will effectively run on. A few examples are assemblies that call native Windows APIs through PInvoke targeting `kernel32`, `gdi32`, `user32`, `shell32` or `ntdll`.
1515+1616+`autoPatchcil` does its best to ignore dependencies from other platforms by checking the requested file extensions, however not all PInvoke stubs provide an extension so in those cases it will be necessary to list those in `autoPatchcilIgnoreMissingDeps` manually.
1717+:::
···6868- [testers.shellcheck](https://nixos.org/manual/nixpkgs/unstable/#tester-shellcheck) now warns when `name` is not provided.
6969 The `name` argument will become mandatory in a future release.
70707171+- [GIMP 3.0](https://www.gimp.org/news/2025/03/16/gimp-3-0-released/) available as `gimp3`.
7272+7173- `grafana-agent` and `services.grafana-agent` have been removed in favor of
7274 Grafana Alloy (`grafana-alloy` and `services.alloy`), as they depend on an EOL compiler version
7375 and will become EOL during the 25.05 lifecycle.
···416416417417- `programs.clash-verge.tunMode` was deprecated and removed because now service mode is necessary to start program. Without `programs.clash-verge.enable`, clash-verge-rev will refuse to start.
418418419419+- `services.homepage-dashboard` now requires the `allowedHosts` option to be set in accordance with the [documentation](https://gethomepage.dev/installation/#homepage_allowed_hosts).
420420+419421- `services.netbird.tunnels` was renamed to [`services.netbird.clients`](#opt-services.netbird.clients),
420422 hardened (using dedicated less-privileged users) and significantly extended.
421423
···44 lib,
55 ...
66}:
77-87let
98 cfg = config.services.homepage-dashboard;
109 # Define the settings format used for this program
···2726 type = lib.types.int;
2827 default = 8082;
2928 description = "Port for Homepage to bind to.";
2929+ };
3030+3131+ allowedHosts = lib.mkOption {
3232+ type = lib.types.str;
3333+ default = "localhost:8082,127.0.0.1:8082";
3434+ example = "example.com";
3535+ description = ''
3636+ Hosts that homepage-dashboard will be running under.
3737+ You will want to change this in order to acess homepage from anything other than localhost.
3838+ see the upsream documentation:
3939+4040+ <https://gethomepage.dev/installation/#homepage_allowed_hosts>
4141+ '';
3042 };
31433244 environmentFile = lib.mkOption {
···215227 NIXPKGS_HOMEPAGE_CACHE_DIR = "/var/cache/homepage-dashboard";
216228 PORT = toString cfg.listenPort;
217229 LOG_TARGETS = "stdout";
230230+ HOMEPAGE_ALLOWED_HOSTS = cfg.allowedHosts;
218231 };
219232220233 serviceConfig = {
···3030 url = "https://github.com/pyodide/pyodide/releases/download/${pyodideVersion}/pyodide-${pyodideVersion}.tar.bz2";
3131 };
32323333- npmDepsHash = "sha256-C7YuXxCrnJ+8L7JNh6TA8xi0G3y1FwFb9DQwhS+igME=";
3333+ npmDepsHash = "sha256-MIjQ5Lbtv6kFHUyuc12JTItUPxIHoo65iUlSjBxw9Z8=";
34343535 # Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
3636 # Until this is solved, running python packages from the browser will not work.
···946946 libquotient = libsForQt5.libquotient; # Added 2023-11-11
947947 librarian-puppet-go = throw "'librarian-puppet-go' has been removed, as it's upstream is unmaintained"; # Added 2024-06-10
948948 librdf = throw "'librdf' has been renamed to/replaced by 'lrdf'"; # Converted to throw 2024-10-17
949949+ librdf_raptor = throw "librdf_raptor has been remove due to failing to build and being unmaintained"; # Added 2025-04-14
949950 LibreArp = librearp; # Added 2024-06-12
950951 LibreArp-lv2 = librearp-lv2; # Added 2024-06-12
951952 libreddit = throw "'libreddit' has been removed because it is unmaintained upstream. Consider using 'redlib', a maintained fork"; # Added 2024-07-17