···11# Python {#setup-hook-python}
2233-Adds the `lib/${python.libPrefix}/site-packages` subdirectory of each build input to the `PYTHONPATH` environment variable.
33+Adds the `python.sitePackages` subdirectory (i.e. `lib/pythonX.Y/site-packages`) of each build input to the `PYTHONPATH` environment variable.
+30-26
doc/languages-frameworks/haskell.section.md
···12291229 in
1230123012311231 {
12321232- haskell = lib.recursiveUpdate prev.haskell {
12331233- compiler.${ghcName} = prev.haskell.compiler.${ghcName}.override {
12341234- # Unfortunately, the GHC setting is named differently for historical reasons
12351235- enableProfiledLibs = enableProfiling;
12321232+ haskell = prev.haskell // {
12331233+ compiler = prev.haskell.compiler // {
12341234+ ${ghcName} = prev.haskell.compiler.${ghcName}.override {
12351235+ # Unfortunately, the GHC setting is named differently for historical reasons
12361236+ enableProfiledLibs = enableProfiling;
12371237+ };
12361238 };
12371239 };
12381240 })
···12441246 in
1245124712461248 {
12471247- haskell = lib.recursiveUpdate prev.haskell {
12481248- packages.${ghcName} = prev.haskell.packages.${ghcName}.override {
12491249- overrides = hfinal: hprev: {
12501250- mkDerivation = args: hprev.mkDerivation (args // {
12511251- # Since we are forcing our ideas upon mkDerivation, this change will
12521252- # affect every package in the package set.
12531253- enableLibraryProfiling = enableProfiling;
12491249+ haskell = prev.haskell // {
12501250+ packages = prev.haskell.packages // {
12511251+ ${ghcName} = prev.haskell.packages.${ghcName}.override {
12521252+ overrides = hfinal: hprev: {
12531253+ mkDerivation = args: hprev.mkDerivation (args // {
12541254+ # Since we are forcing our ideas upon mkDerivation, this change will
12551255+ # affect every package in the package set.
12561256+ enableLibraryProfiling = enableProfiling;
1254125712551255- # To actually use profiling on an executable, executable profiling
12561256- # needs to be enabled for the executable you want to profile. You
12571257- # can either do this globally or…
12581258- enableExecutableProfiling = enableProfiling;
12591259- });
12581258+ # To actually use profiling on an executable, executable profiling
12591259+ # needs to be enabled for the executable you want to profile. You
12601260+ # can either do this globally or…
12611261+ enableExecutableProfiling = enableProfiling;
12621262+ });
1260126312611261- # …only for the package that contains an executable you want to profile.
12621262- # That saves on unnecessary rebuilds for packages that you only depend
12631263- # on for their library, but also contain executables (e.g. pandoc).
12641264- my-executable = haskellLib.enableExecutableProfiling hprev.my-executable;
12641264+ # …only for the package that contains an executable you want to profile.
12651265+ # That saves on unnecessary rebuilds for packages that you only depend
12661266+ # on for their library, but also contain executables (e.g. pandoc).
12671267+ my-executable = haskellLib.enableExecutableProfiling hprev.my-executable;
1265126812661266- # If you are disabling profiling to save on build time, but want to
12671267- # retain the ability to substitute from the binary cache. Drop the
12681268- # override for mkDerivation above and instead have an override like
12691269- # this for the specific packages you are building locally and want
12701270- # to make cheaper to build.
12711271- my-library = haskellLib.disableLibraryProfiling hprev.my-library;
12691269+ # If you are disabling profiling to save on build time, but want to
12701270+ # retain the ability to substitute from the binary cache. Drop the
12711271+ # override for mkDerivation above and instead have an override like
12721272+ # this for the specific packages you are building locally and want
12731273+ # to make cheaper to build.
12741274+ my-library = haskellLib.disableLibraryProfiling hprev.my-library;
12751275+ };
12721276 };
12731277 };
12741278 };
···50505151- [GNS3](https://www.gns3.com/), a network software emulator. Available as [services.gns3-server](#opt-services.gns3-server.enable).
52525353+- [pretalx](https://github.com/pretalx/pretalx), a conference planning tool. Available as [services.pretalx](#opt-services.pretalx.enable).
5454+5355- [rspamd-trainer](https://gitlab.com/onlime/rspamd-trainer), script triggered by a helper which reads mails from a specific mail inbox and feeds them into rspamd for spam/ham training.
54565557- [ollama](https://ollama.ai), server for running large language models locally.
···33with lib;
4455let
66+ logPrefix = "services.prometheus.exporters.snmp";
67 cfg = config.services.prometheus.exporters.snmp;
7889 # This ensures that we can deal with string paths, path types and
···55 /* Do not use "dev" as a version. If you do, Tilt will consider itself
66 running in development environment and try to serve assets from the
77 source tree, which is not there once build completes. */
88- version = "0.33.6";
88+ version = "0.33.10";
991010 src = fetchFromGitHub {
1111 owner = "tilt-dev";
1212 repo = "tilt";
1313 rev = "v${version}";
1414- hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI=";
1414+ hash = "sha256-LPb2tC3xIGhjiLYkTU+NBIUoqiicO2ORM6Nt1eTnwQs=";
1515 };
1616 };
1717
···6262 cp contrib/hgk $out/bin
6363 cat >> $out/etc/mercurial/hgrc << EOF
6464 [extensions]
6565- hgk=$out/lib/${python.libPrefix}/site-packages/hgext/hgk.py
6565+ hgk=$out/${python.sitePackages}/hgext/hgk.py
6666 EOF
6767 # setting HG so that hgk can be run itself as well (not only hg view)
6868 WRAP_TK=" --set TK_LIBRARY ${tk}/lib/${tk.libPrefix}
···106106 url = "https://github.com/moby/moby/pull/43136.patch";
107107 hash = "sha256-1WZfpVnnqFwLMYqaHLploOodls0gHF8OCp7MrM26iX8=";
108108 })
109109+ ] ++ lib.optionals (lib.versions.major version == "24") [
110110+ # docker_24 has LimitNOFILE set to "infinity", which causes a wide variety of issues in containers.
111111+ # Issues range from higher-than-usual ressource usage, to containers not starting at all.
112112+ # This patch (part of the release candidates for docker_25) simply removes this unit option
113113+ # making systemd use its default "1024:524288", which is sane. See commit message and/or the PR for
114114+ # more details: https://github.com/moby/moby/pull/45534
115115+ (fetchpatch {
116116+ name = "LimitNOFILE-systemd-default.patch";
117117+ url = "https://github.com/moby/moby/pull/45534/commits/c8930105bc9fc3c1a8a90886c23535cc6c41e130.patch";
118118+ hash = "sha256-nyGLxFrJaD0TrDqsAwOD6Iph0aHcFH9sABj1Fy74sec=";
119119+ })
109120 ];
110121111122 postPatch = ''
···11341134 preCheck = "export CI=true";
11351135 }) super.aeson-typescript;
1136113611371137- # Enable extra optimisations which increase build time, but also
11381138- # later compiler performance, so we should do this for user's benefit.
11391139- # Flag added in Agda 2.6.2
11401140- Agda = appendConfigureFlag "-foptimise-heavily" super.Agda;
11371137+ Agda = lib.pipe super.Agda [
11381138+ # Enable extra optimisations which increase build time, but also
11391139+ # later compiler performance, so we should do this for user's benefit.
11401140+ # Flag added in Agda 2.6.2
11411141+ (enableCabalFlag "optimise-heavily")
11421142+ # Enable debug printing, which worsens performance slightly but is
11431143+ # very useful.
11441144+ # Flag added in Agda 2.6.4.1, was always enabled before
11451145+ (enableCabalFlag "debug")
11461146+ ];
1141114711421148 # ats-format uses cli-setup in Setup.hs which is quite happy to write
11431149 # to arbitrary files in $HOME. This doesn't either not achieve anything
···1111 hash = "sha256-0U6s6sXdynk2IWRBDXBJCf7Gc+gE8AhR1PXZl0DS4yU=";
1212 };
13131414- # We don't need anything in support; avoid installing LICENSE.agda
1514 postPatch = ''
1515+ # We don't need anything in support; avoid installing LICENSE.agda
1616 rm -rf support
1717+1818+ # Remove verbosity options as they make Agda take longer and use more memory.
1919+ shopt -s globstar extglob
2020+ sed -Ei '/OPTIONS/s/ -v ?[^ #]+//g' src/**/*.@(agda|lagda.md)
1721 '';
18221923 libraryName = "1lab";
···150150151151 # Make sure we're running the tests for the actually installed
152152 # package, so that cython's .so files are available.
153153- preCheck = "cd $out/lib/${python.libPrefix}/site-packages";
153153+ preCheck = "cd $out/${python.sitePackages}";
154154155155 disabledTestPaths = [
156156 # Fails with
···4343 # Make sure we're running the tests for the actually installed
4444 # package, so that cython's compiled files are available.
4545 preCheck = ''
4646- cd $out/lib/${python.libPrefix}/site-packages
4646+ cd $out/${python.sitePackages}
4747 '';
48484949 nativeCheckInputs = [ pytestCheckHook ];
···860860 probe-rs-cli = throw "probe-rs-cli is now part of the probe-rs package"; # Added 2023-07-03
861861 processing3 = throw "'processing3' has been renamed to/replaced by 'processing'"; # Converted to throw 2023-09-10
862862 prometheus-dmarc-exporter = dmarc-metrics-exporter; # added 2022-05-31
863863+ prometheus-openvpn-exporter = throw "'prometheus-openvpn-exporter' has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2023-12-23
863864 prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
864865 protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
865866 protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01