···146146 : Outputs the given attribute set as an Elixir map, instead of the
147147 default Elixir keyword list
148148149149+`pkgs.formats.php { finalVariable }` []{#pkgs-formats-php}
150150+151151+: A function taking an attribute set with values
152152+153153+ `finalVariable`
154154+155155+ : The variable that will store generated expression (usually `config`). If set to `null`, generated expression will contain `return`.
156156+157157+ It returns a set with PHP-Config-specific attributes `type`, `lib`, and
158158+ `generate` as specified [below](#pkgs-formats-result).
159159+160160+ The `lib` attribute contains functions to be used in settings, for
161161+ generating special PHP values:
162162+163163+ `mkRaw phpCode`
164164+165165+ : Outputs the given string as raw PHP code
166166+167167+ `mkMixedArray list set`
168168+169169+ : Creates PHP array that contains both indexed and associative values. For example, `lib.mkMixedArray [ "hello" "world" ] { "nix" = "is-great"; }` returns `['hello', 'world', 'nix' => 'is-great']`
149170150171[]{#pkgs-formats-result}
151172These functions all return an attribute set with these values:
+4
nixos/doc/manual/release-notes/rl-2405.section.md
···254254255255- `unrar` was updated to v7. See [changelog](https://www.rarlab.com/unrar7notes.htm) for more information.
256256257257+- `percona-server` now follows [the same two-fold release cycle](https://www.percona.com/blog/lts-and-innovation-releases-for-percona-server-for-mysql/) as Oracle MySQL and provides a *Long-Term-Support (LTS)* in parallel with a continuous-delivery *Innovation* release. `percona-server` defaults to `percona-server_lts`, will be backed by the same release branch throughout the lifetime of this stable NixOS release, and is still available under the versioned attribute `percona-server_8_0`.
258258+ The `percona-server_innovation` releases however have support periods shorter than the lifetime of this NixOS release and will continuously be updated to newer Percona releases. Note that Oracle considers the *Innovation* releases to be production-grade, but each release might include backwards-incompatible changes, even in its on-disk format.
259259+ The same release scheme is applied to the supporting `percona-xtrabackup` tool as well.
260260+257261- `git-town` was updated from version 11 to 13. See the [changelog](https://github.com/git-town/git-town/blob/main/CHANGELOG.md#1300-2024-03-22) for breaking changes.
258262259263- `k9s` was updated to v0.31. There have been various breaking changes in the config file format,
+2-2
nixos/modules/programs/atop.nix
···120120 wantedBy = [ (if type == "services" then "multi-user.target" else if type == "timers" then "timers.target" else null) ];
121121 };
122122 };
123123- mkService = lib.mkSystemd "services";
124124- mkTimer = lib.mkSystemd "timers";
123123+ mkService = mkSystemd "services";
124124+ mkTimer = mkSystemd "timers";
125125 in
126126 {
127127 packages = [ atop (lib.mkIf cfg.netatop.enable cfg.netatop.package) ];
···912912 "ppc64-linux" = "tpm-spapr";
913913 "armv7-linux" = "tpm-tis-device";
914914 "aarch64-linux" = "tpm-tis-device";
915915- }.${pkgs.hostPlatform.system} or (throw "Unsupported system for TPM2 emulation in QEMU"));
915915+ }.${pkgs.stdenv.hostPlatform.system} or (throw "Unsupported system for TPM2 emulation in QEMU"));
916916 defaultText = ''
917917 Based on the guest platform Linux system:
918918
+5-6
nixos/tests/installer.nix
···249249 with subtest("Check whether nixos-rebuild works"):
250250 target.succeed("nixos-rebuild switch >&2")
251251252252- # FIXME: Nix 2.4 broke nixos-option, someone has to fix it.
253253- # with subtest("Test nixos-option"):
254254- # kernel_modules = target.succeed("nixos-option boot.initrd.kernelModules")
255255- # assert "virtio_console" in kernel_modules
256256- # assert "List of modules" in kernel_modules
257257- # assert "qemu-guest.nix" in kernel_modules
252252+ with subtest("Test nixos-option"):
253253+ kernel_modules = target.succeed("nixos-option boot.initrd.kernelModules")
254254+ assert "virtio_console" in kernel_modules
255255+ assert "List of modules" in kernel_modules
256256+ assert "qemu-guest.nix" in kernel_modules
258257259258 target.shutdown()
260259
···3232 # https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/ollama/default.nix
33333434 pname = "tabby";
3535- version = "0.11.0";
3535+ version = "0.11.1";
363637373838 availableAccelerations = flatten [
···7878 # to use a specific device type as it is relying on llama-cpp only being
7979 # built to use one type of device.
8080 #
8181- # See: https://github.com/TabbyML/tabby/blob/v0.11.0/crates/llama-cpp-bindings/include/engine.h#L20
8181+ # See: https://github.com/TabbyML/tabby/blob/v0.11.1/crates/llama-cpp-bindings/include/engine.h#L20
8282 #
8383 llamaccpPackage = llama-cpp.override {
8484 rocmSupport = enableRocm;
···108108 owner = "TabbyML";
109109 repo = "tabby";
110110 rev = "v${version}";
111111- hash = "sha256-7PHCvI2/QSFVs6SAXrx8rohU5Wu8QRaqsI1CimnUGQY=";
111111+ hash = "sha256-OgAE526aW3mVqf6fVmBmL5/B4gH9B54QLEITQk9Kgsg=";
112112 fetchSubmodules = true;
113113 };
114114
+37
pkgs/by-name/tr/tracexec/package.nix
···11+{
22+ lib,
33+ rustPlatform,
44+ fetchFromGitHub,
55+}:
66+77+rustPlatform.buildRustPackage rec {
88+ pname = "tracexec";
99+ version = "0.2.2";
1010+1111+ src = fetchFromGitHub {
1212+ owner = "kxxt";
1313+ repo = "tracexec";
1414+ rev = "v${version}";
1515+ hash = "sha256-X2hLaBndeYLBMnDe2MT4pgZiPj0COHG2uTvAbW+JVd4=";
1616+ };
1717+1818+ cargoHash = "sha256-3xANOv+A4soDcKMINy+RnI8l6uS3koZpw3CMIUCmK5A=";
1919+2020+ # Remove test binaries and only retain tracexec
2121+ postInstall = ''
2222+ find "$out/bin" -type f \! -name tracexec -print0 | xargs -0 rm -v
2323+ '';
2424+2525+ # ptrace is not allowed in sandbox
2626+ doCheck = false;
2727+2828+ meta = {
2929+ description = "A small utility for tracing execve{,at} and pre-exec behavior";
3030+ homepage = "https://github.com/kxxt/tracexec";
3131+ changelog = "https://github.com/kxxt/tracexec/blob/${src.rev}/CHANGELOG.md";
3232+ license = lib.licenses.gpl2;
3333+ maintainers = with lib.maintainers; [ fpletz ];
3434+ mainProgram = "tracexec";
3535+ platforms = lib.platforms.linux;
3636+ };
3737+}
···2727 longDescription = ''
2828 WowUp is the community centered World of Warcraft addon updater. We attempt to bring the addon community together in an easy to use updater application. We have an ever growing list of supported features.
2929 '';
3030+ mainProgram = "wowup-cf";
3031 homepage = "https://wowup.io/";
3132 downloadPage = "https://github.com/WowUp/WowUp.CF/releases";
3233 license = licenses.unfree;
···21212222 enableParallelInstalling = true;
23232424+ postInstall = ''
2525+ # The manpath executable looks up manpages from PATH. And this package won't
2626+ # appear in PATH unless it has a /bin folder. Without the change
2727+ # 'nix-shell -p man-pages' does not pull in the search paths.
2828+ # See 'man 5 manpath' for the lookup order.
2929+ mkdir -p $out/bin
3030+ '';
3131+2432 meta = with lib; {
2533 description = "Linux development manual pages";
2634 homepage = "https://www.kernel.org/doc/man-pages/";