···101101102102### Building a `stdenv` package in `nix-shell` {#sec-building-stdenv-package-in-nix-shell}103103104104-To build a `stdenv` package in a [`nix-shell`](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html), use104104+To build a `stdenv` package in a [`nix-shell`](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html), enter a shell, find the [phases](#sec-stdenv-phases) you wish to build, then invoke `genericBuild` manually:105105+106106+Go to an empty directory, invoke `nix-shell` with the desired package, and from inside the shell, set the output variables to a writable directory:105107106108```bash109109+cd "$(mktemp -d)"107110nix-shell '<nixpkgs>' -A some_package108108-eval "${unpackPhase:-unpackPhase}"109109-cd $sourceRoot110110-eval "${patchPhase:-patchPhase}"111111-eval "${configurePhase:-configurePhase}"112112-eval "${buildPhase:-buildPhase}"111111+export out=$(pwd)/out112112+```113113+114114+Next, invoke the desired parts of the build.115115+First, run the phases that generate a working copy of the sources, which will change directory to the sources for you:116116+117117+```bash118118+phases="${prePhases[*]:-} unpackPhase patchPhase" genericBuild119119+```120120+121121+Then, run more phases up until the failure is reached.122122+For example, if the failure is in the build phase, the following phases would be required:123123+124124+```bash125125+phases="${preConfigurePhases[*]:-} configurePhase ${preBuildPhases[*]:-} buildPhase" genericBuild126126+```127127+128128+Re-run a single phase as many times as necessary to examine the failure like so:129129+130130+```bash131131+phases="buildPhase" genericBuild113132```114133115134To modify a [phase](#sec-stdenv-phases), first print it with135135+136136+```bash137137+echo "$buildPhase"138138+```139139+140140+Or, if that is empty, for instance, if it is using a function:116141117142```bash118143type buildPhase119144```120145121146then change it in a text editor, and paste it back to the terminal.147147+148148+::: {.note}149149+This method may have some inconsistencies in environment variables and behaviour compared to a normal build within the [Nix build sandbox](https://nixos.org/manual/nix/unstable/language/derivations#builder-execution).150150+The following is a non-exhaustive list of such differences:151151+152152+- `TMP`, `TMPDIR`, and similar variables likely point to non-empty directories that the build might conflict with files in.153153+- Output store paths are not writable, so the variables for outputs need to be overridden to writable paths.154154+- Other environment variables may be inconsistent with a `nix-build` either due to `nix-shell`'s initialization script or due to the use of `nix-shell` without the `--pure` option.155155+156156+If the build fails differently inside the shell than in the sandbox, consider using [`breakpointHook`](#breakpointhook) and invoking `nix-build` instead.157157+The [`--keep-failed`](https://nixos.org/manual/nix/unstable/command-ref/conf-file#opt--keep-failed) option for `nix-build` may also be useful to examine the build directory of a failed build.158158+:::122159123160## Tools provided by `stdenv` {#sec-tools-of-stdenv}124161
+2
nixos/doc/manual/release-notes/rl-2311.section.md
···335335336336- `win-virtio` package was renamed to `virtio-win` to be consistent with the upstream package name.337337338338+- `ps3netsrv` has been replaced with the webman-mod fork, the executable has been renamed from `ps3netsrv++` to `ps3netsrv` and cli parameters have changed.339339+338340## Other Notable Changes {#sec-release-23.11-notable-changes}339341340342- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.
···102102 return $cpuinfo =~ /^vendor_id\s*:.* $id$/m;103103}104104105105-106106-# Determine CPU governor to use107107-if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") {108108- my $governors = read_file("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors");109109- # ondemand governor is not available on sandy bridge or later Intel CPUs110110- my @desired_governors = ("ondemand", "powersave");111111- my $e;112112-113113- foreach $e (@desired_governors) {114114- if (index($governors, $e) != -1) {115115- last if (push @attrs, "powerManagement.cpuFreqGovernor = lib.mkDefault \"$e\";");116116- }117117- }118118-}119119-120120-121105# Virtualization support?122106push @kernelModules, "kvm-intel" if hasCPUFeature "vmx";123107push @kernelModules, "kvm-amd" if hasCPUFeature "svm";
···1515, gtk41616, libadwaita1717, pango1818+, gettext1819, darwin1920}:2021···5554 gtk45655 libadwaita5756 pango5858- ] ++ lib.optionals stdenv.isDarwin [5959- darwin.apple_sdk.frameworks.Security6060- ];5757+ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [5858+ CoreFoundation5959+ Foundation6060+ Security6161+ ]);6262+6363+ # Darwin needs to link against gettext from nixpkgs instead of the one vendored by gettext-sys6464+ # because the vendored copy does not build with newer versions of clang.6565+ env = lib.optionalAttrs stdenv.isDarwin {6666+ GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin";6767+ GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";6868+ GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";6969+ };61706271 meta = {6372 description = "GTK4 frontend for the travel information of the german railway";
+3-3
pkgs/applications/misc/oxker/default.nix
···2233rustPlatform.buildRustPackage rec {44 pname = "oxker";55- version = "0.3.2";55+ version = "0.3.3";6677 src = fetchCrate {88 inherit pname version;99- sha256 = "sha256-HFZSIzP3G6f78gTOpzZFG5ZAo5Lo6VuxQe6xMvCVfss=";99+ sha256 = "sha256-2zdsVItGZYQydpC9E/uCbzOE9Xoh7zTqa9DpxA5qNCc=";1010 };11111212- cargoHash = "sha256-ZsqxlwgXqw9eUEjw1DLBMz05V/y/ZbcrCL6I8TcnnDs=";1212+ cargoHash = "sha256-FXYFQpiK2BGUz9GjsUPS9LWPeezbBQ3A33juoVCl71g=";13131414 meta = with lib; {1515 description = "A simple tui to view & control docker containers";
···11+diff --git a/django/conf/__init__.py b/django/conf/__init__.py22+index 22f1eab..3a752d1 10064433+--- a/django/conf/__init__.py44++++ b/django/conf/__init__.py55+@@ -208,7 +208,7 @@ class Settings:66+ if hasattr(time, "tzset") and self.TIME_ZONE:77+ # When we can, attempt to validate the timezone. If we can't find88+ # this file, no check happens and it's harmless.99+- zoneinfo_root = Path("/usr/share/zoneinfo")1010++ zoneinfo_root = Path("@zoneinfo@")1111+ zone_info_file = zoneinfo_root.joinpath(*self.TIME_ZONE.split("/"))1212+ if zoneinfo_root.exists() and not zone_info_file.exists():1313+ raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)