···1# Python {#setup-hook-python}
23-Adds the `lib/${python.libPrefix}/site-packages` subdirectory of each build input to the `PYTHONPATH` environment variable.
···1# Python {#setup-hook-python}
23+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
···1229 in
12301231 {
1232- haskell = lib.recursiveUpdate prev.haskell {
1233- compiler.${ghcName} = prev.haskell.compiler.${ghcName}.override {
1234- # Unfortunately, the GHC setting is named differently for historical reasons
1235- enableProfiledLibs = enableProfiling;
001236 };
1237 };
1238 })
···1244 in
12451246 {
1247- haskell = lib.recursiveUpdate prev.haskell {
1248- packages.${ghcName} = prev.haskell.packages.${ghcName}.override {
1249- overrides = hfinal: hprev: {
1250- mkDerivation = args: hprev.mkDerivation (args // {
1251- # Since we are forcing our ideas upon mkDerivation, this change will
1252- # affect every package in the package set.
1253- enableLibraryProfiling = enableProfiling;
012541255- # To actually use profiling on an executable, executable profiling
1256- # needs to be enabled for the executable you want to profile. You
1257- # can either do this globally or…
1258- enableExecutableProfiling = enableProfiling;
1259- });
12601261- # …only for the package that contains an executable you want to profile.
1262- # That saves on unnecessary rebuilds for packages that you only depend
1263- # on for their library, but also contain executables (e.g. pandoc).
1264- my-executable = haskellLib.enableExecutableProfiling hprev.my-executable;
12651266- # If you are disabling profiling to save on build time, but want to
1267- # retain the ability to substitute from the binary cache. Drop the
1268- # override for mkDerivation above and instead have an override like
1269- # this for the specific packages you are building locally and want
1270- # to make cheaper to build.
1271- my-library = haskellLib.disableLibraryProfiling hprev.my-library;
01272 };
1273 };
1274 };
···1229 in
12301231 {
1232+ haskell = prev.haskell // {
1233+ compiler = prev.haskell.compiler // {
1234+ ${ghcName} = prev.haskell.compiler.${ghcName}.override {
1235+ # Unfortunately, the GHC setting is named differently for historical reasons
1236+ enableProfiledLibs = enableProfiling;
1237+ };
1238 };
1239 };
1240 })
···1246 in
12471248 {
1249+ haskell = prev.haskell // {
1250+ packages = prev.haskell.packages // {
1251+ ${ghcName} = prev.haskell.packages.${ghcName}.override {
1252+ overrides = hfinal: hprev: {
1253+ mkDerivation = args: hprev.mkDerivation (args // {
1254+ # Since we are forcing our ideas upon mkDerivation, this change will
1255+ # affect every package in the package set.
1256+ enableLibraryProfiling = enableProfiling;
12571258+ # To actually use profiling on an executable, executable profiling
1259+ # needs to be enabled for the executable you want to profile. You
1260+ # can either do this globally or…
1261+ enableExecutableProfiling = enableProfiling;
1262+ });
12631264+ # …only for the package that contains an executable you want to profile.
1265+ # That saves on unnecessary rebuilds for packages that you only depend
1266+ # on for their library, but also contain executables (e.g. pandoc).
1267+ my-executable = haskellLib.enableExecutableProfiling hprev.my-executable;
12681269+ # If you are disabling profiling to save on build time, but want to
1270+ # retain the ability to substitute from the binary cache. Drop the
1271+ # override for mkDerivation above and instead have an override like
1272+ # this for the specific packages you are building locally and want
1273+ # to make cheaper to build.
1274+ my-library = haskellLib.disableLibraryProfiling hprev.my-library;
1275+ };
1276 };
1277 };
1278 };
+6
maintainers/maintainer-list.nix
···10107 githubId = 264372;
10108 name = "Jan van den Berg";
10109 };
00000010110 koral = {
10111 email = "koral@mailoo.org";
10112 github = "k0ral";
···5051- [GNS3](https://www.gns3.com/), a network software emulator. Available as [services.gns3-server](#opt-services.gns3-server.enable).
520053- [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.
5455- [ollama](https://ollama.ai), server for running large language models locally.
···5051- [GNS3](https://www.gns3.com/), a network software emulator. Available as [services.gns3-server](#opt-services.gns3-server.enable).
5253+- [pretalx](https://github.com/pretalx/pretalx), a conference planning tool. Available as [services.pretalx](#opt-services.pretalx.enable).
54+55- [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.
5657- [ollama](https://ollama.ai), server for running large language models locally.
···3with lib;
45let
06 cfg = config.services.prometheus.exporters.snmp;
78 # This ensures that we can deal with string paths, path types and
···3with lib;
45let
6+ logPrefix = "services.prometheus.exporters.snmp";
7 cfg = config.services.prometheus.exporters.snmp;
89 # This ensures that we can deal with string paths, path types and
···18# These values will be replaced with actual values during the package build
19EFI_SYS_MOUNT_POINT = "@efiSysMountPoint@"
20TIMEOUT = "@timeout@"
21-EDITOR = bool("@editor@")
22CONSOLE_MODE = "@consoleMode@"
23BOOTSPEC_TOOLS = "@bootspecTools@"
24DISTRO_NAME = "@distroName@"
···18# These values will be replaced with actual values during the package build
19EFI_SYS_MOUNT_POINT = "@efiSysMountPoint@"
20TIMEOUT = "@timeout@"
21+EDITOR = "@editor@" == "1"
22CONSOLE_MODE = "@consoleMode@"
23BOOTSPEC_TOOLS = "@bootspecTools@"
24DISTRO_NAME = "@distroName@"
···292 # Runs autoconf through ./mach configure in configurePhase
293 configureScript="$(realpath ./mach) configure"
294000295 # Set predictable directories for build and state
296 export MOZ_OBJDIR=$(pwd)/mozobj
297 export MOZBUILD_STATE_PATH=$(pwd)/mozbuild
···292 # Runs autoconf through ./mach configure in configurePhase
293 configureScript="$(realpath ./mach) configure"
294295+ # Set reproducible build date; https://bugzilla.mozilla.org/show_bug.cgi?id=885777#c21
296+ export MOZ_BUILD_DATE=$(head -n1 sourcestamp.txt)
297+298 # Set predictable directories for build and state
299 export MOZ_OBJDIR=$(pwd)/mozobj
300 export MOZBUILD_STATE_PATH=$(pwd)/mozbuild
···5 /* Do not use "dev" as a version. If you do, Tilt will consider itself
6 running in development environment and try to serve assets from the
7 source tree, which is not there once build completes. */
8- version = "0.33.6";
910 src = fetchFromGitHub {
11 owner = "tilt-dev";
12 repo = "tilt";
13 rev = "v${version}";
14- hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI=";
15 };
16 };
17
···5 /* Do not use "dev" as a version. If you do, Tilt will consider itself
6 running in development environment and try to serve assets from the
7 source tree, which is not there once build completes. */
8+ version = "0.33.10";
910 src = fetchFromGitHub {
11 owner = "tilt-dev";
12 repo = "tilt";
13 rev = "v${version}";
14+ hash = "sha256-LPb2tC3xIGhjiLYkTU+NBIUoqiicO2ORM6Nt1eTnwQs=";
15 };
16 };
17
···244 rm gr-fec/python/fec/qa_polar_encoder.py
245 rm gr-fec/python/fec/qa_polar_encoder_systematic.py
246 rm gr-filter/python/filter/qa_freq_xlating_fft_filter.py
247+ # Failed with libstdc++ from GCC 13
248+ rm gr-filter/python/filter/qa_filterbank.py
249 '';
250 patches = [
251 # Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227
+6
pkgs/applications/radio/gnuradio/3.9.nix
···1{ lib, stdenv
02, fetchFromGitHub
3, cmake
4# Remove gcc and python references
···277 patches = [
278 # Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227
279 ./modtool-newmod-permissions.3_9.patch
00000280 ];
281 passthru = shared.passthru // {
282 # Deps that are potentially overridden and are used inside GR plugins - the same version must
···1{ lib, stdenv
2+, fetchpatch
3, fetchFromGitHub
4, cmake
5# Remove gcc and python references
···278 patches = [
279 # Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227
280 ./modtool-newmod-permissions.3_9.patch
281+ # Fix compilation with GCC 13
282+ (fetchpatch {
283+ url = "https://github.com/gnuradio/gnuradio/commit/fe1b3592776c26e349e9985d47d3178568dfe6ec.patch";
284+ hash = "sha256-bu6fJuUo/i4kM+cZqSw8moB0ymoSVooLfwUIW+WDpWI=";
285+ })
286 ];
287 passthru = shared.passthru // {
288 # Deps that are potentially overridden and are used inside GR plugins - the same version must
···62 cp contrib/hgk $out/bin
63 cat >> $out/etc/mercurial/hgrc << EOF
64 [extensions]
65- hgk=$out/lib/${python.libPrefix}/site-packages/hgext/hgk.py
66 EOF
67 # setting HG so that hgk can be run itself as well (not only hg view)
68 WRAP_TK=" --set TK_LIBRARY ${tk}/lib/${tk.libPrefix}
···62 cp contrib/hgk $out/bin
63 cat >> $out/etc/mercurial/hgrc << EOF
64 [extensions]
65+ hgk=$out/${python.sitePackages}/hgext/hgk.py
66 EOF
67 # setting HG so that hgk can be run itself as well (not only hg view)
68 WRAP_TK=" --set TK_LIBRARY ${tk}/lib/${tk.libPrefix}
···106 url = "https://github.com/moby/moby/pull/43136.patch";
107 hash = "sha256-1WZfpVnnqFwLMYqaHLploOodls0gHF8OCp7MrM26iX8=";
108 })
109+ ] ++ lib.optionals (lib.versions.major version == "24") [
110+ # docker_24 has LimitNOFILE set to "infinity", which causes a wide variety of issues in containers.
111+ # Issues range from higher-than-usual ressource usage, to containers not starting at all.
112+ # This patch (part of the release candidates for docker_25) simply removes this unit option
113+ # making systemd use its default "1024:524288", which is sane. See commit message and/or the PR for
114+ # more details: https://github.com/moby/moby/pull/45534
115+ (fetchpatch {
116+ name = "LimitNOFILE-systemd-default.patch";
117+ url = "https://github.com/moby/moby/pull/45534/commits/c8930105bc9fc3c1a8a90886c23535cc6c41e130.patch";
118+ hash = "sha256-nyGLxFrJaD0TrDqsAwOD6Iph0aHcFH9sABj1Fy74sec=";
119+ })
120 ];
121122 postPatch = ''
···34 for moduleName in $moduleNames; do
35 echo "checking pkg-config module $moduleName in $buildInputs"
36 set +e
37- version="$(pkg-config --modversion $moduleName)"
38 r=$?
39 set -e
40 if [[ $r = 0 ]]; then
···42 printf '%s\t%s\n' "$moduleName" "$version" >> "$out"
43 else
44 echo "These modules were available in the input propagation closure:"
45- pkg-config --list-all
46 echo "❌ pkg-config module $moduleName was not found"
47 false
48 fi
···34 for moduleName in $moduleNames; do
35 echo "checking pkg-config module $moduleName in $buildInputs"
36 set +e
37+ version="$($PKG_CONFIG --modversion $moduleName)"
38 r=$?
39 set -e
40 if [[ $r = 0 ]]; then
···42 printf '%s\t%s\n' "$moduleName" "$version" >> "$out"
43 else
44 echo "These modules were available in the input propagation closure:"
45+ $PKG_CONFIG --list-all
46 echo "❌ pkg-config module $moduleName was not found"
47 false
48 fi
···1134 preCheck = "export CI=true";
1135 }) super.aeson-typescript;
11361137- # Enable extra optimisations which increase build time, but also
1138- # later compiler performance, so we should do this for user's benefit.
1139- # Flag added in Agda 2.6.2
1140- Agda = appendConfigureFlag "-foptimise-heavily" super.Agda;
00000011411142 # ats-format uses cli-setup in Setup.hs which is quite happy to write
1143 # to arbitrary files in $HOME. This doesn't either not achieve anything
···1134 preCheck = "export CI=true";
1135 }) super.aeson-typescript;
11361137+ Agda = lib.pipe super.Agda [
1138+ # Enable extra optimisations which increase build time, but also
1139+ # later compiler performance, so we should do this for user's benefit.
1140+ # Flag added in Agda 2.6.2
1141+ (enableCabalFlag "optimise-heavily")
1142+ # Enable debug printing, which worsens performance slightly but is
1143+ # very useful.
1144+ # Flag added in Agda 2.6.4.1, was always enabled before
1145+ (enableCabalFlag "debug")
1146+ ];
11471148 # ats-format uses cli-setup in Setup.hs which is quite happy to write
1149 # to arbitrary files in $HOME. This doesn't either not achieve anything
···11 hash = "sha256-0U6s6sXdynk2IWRBDXBJCf7Gc+gE8AhR1PXZl0DS4yU=";
12 };
1314- # We don't need anything in support; avoid installing LICENSE.agda
15 postPatch = ''
016 rm -rf support
000017 '';
1819 libraryName = "1lab";
···11 hash = "sha256-0U6s6sXdynk2IWRBDXBJCf7Gc+gE8AhR1PXZl0DS4yU=";
12 };
13014 postPatch = ''
15+ # We don't need anything in support; avoid installing LICENSE.agda
16 rm -rf support
17+18+ # Remove verbosity options as they make Agda take longer and use more memory.
19+ shopt -s globstar extglob
20+ sed -Ei '/OPTIONS/s/ -v ?[^ #]+//g' src/**/*.@(agda|lagda.md)
21 '';
2223 libraryName = "1lab";
···150151 # Make sure we're running the tests for the actually installed
152 # package, so that cython's .so files are available.
153- preCheck = "cd $out/lib/${python.libPrefix}/site-packages";
154155 disabledTestPaths = [
156 # Fails with
···150151 # Make sure we're running the tests for the actually installed
152 # package, so that cython's .so files are available.
153+ preCheck = "cd $out/${python.sitePackages}";
154155 disabledTestPaths = [
156 # Fails with
···43 # Make sure we're running the tests for the actually installed
44 # package, so that cython's compiled files are available.
45 preCheck = ''
46- cd $out/lib/${python.libPrefix}/site-packages
47 '';
4849 nativeCheckInputs = [ pytestCheckHook ];
···43 # Make sure we're running the tests for the actually installed
44 # package, so that cython's compiled files are available.
45 preCheck = ''
46+ cd $out/${python.sitePackages}
47 '';
4849 nativeCheckInputs = [ pytestCheckHook ];
···860 probe-rs-cli = throw "probe-rs-cli is now part of the probe-rs package"; # Added 2023-07-03
861 processing3 = throw "'processing3' has been renamed to/replaced by 'processing'"; # Converted to throw 2023-09-10
862 prometheus-dmarc-exporter = dmarc-metrics-exporter; # added 2022-05-31
0863 prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
864 protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
865 protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01
···860 probe-rs-cli = throw "probe-rs-cli is now part of the probe-rs package"; # Added 2023-07-03
861 processing3 = throw "'processing3' has been renamed to/replaced by 'processing'"; # Converted to throw 2023-09-10
862 prometheus-dmarc-exporter = dmarc-metrics-exporter; # added 2022-05-31
863+ prometheus-openvpn-exporter = throw "'prometheus-openvpn-exporter' has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2023-12-23
864 prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
865 protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
866 protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01