···11+# mpiCheckPhaseHook {#setup-hook-mpi-check}
22+33+44+This hook can be used to setup a check phase that
55+requires running a MPI application. It detects the
66+used present MPI implementaion type and exports
77+the neceesary environment variables to use
88+`mpirun` and `mpiexec` in a Nix sandbox.
99+1010+1111+Example:
1212+1313+```nix
1414+ { mpiCheckPhaseHook, mpi, ... }:
1515+1616+ ...
1717+1818+ nativeCheckInputs = [
1919+ openssh
2020+ mpiCheckPhaseHook
2121+ ];
2222+```
2323+2424+
···11+preCheckHooks+=('setupMpiCheck')
22+preInstallCheckHooks+=('setupMpiCheck')
33+44+55+setupMpiCheck() {
66+ # Find out which MPI implementation we are using
77+ # and set safe defaults that are guaranteed to run
88+ # on any build machine
99+1010+ mpiType="NONE"
1111+1212+ # OpenMPI signature
1313+ if command ompi_info &> /dev/null; then
1414+ mpiType="openmpi"
1515+ fi
1616+1717+ # MPICH based implementations
1818+ if command mpichversion &> /dev/null; then
1919+ if [ "$mpiType" != "NONE" ]; then
2020+ echo "WARNING: found OpenMPI and MPICH/MVAPICH executables"
2121+ fi
2222+2323+ version=$(mpichversion)
2424+ if [[ "$version" == *"MPICH"* ]]; then
2525+ mpiType="MPICH"
2626+ fi
2727+ if [[ "$version" == *"MVAPICH"* ]]; then
2828+ mpiType="MVAPICH"
2929+ fi
3030+ fi
3131+3232+ echo "Found MPI implementation: $mpiType"
3333+3434+ case $mpiType in
3535+ openmpi)
3636+ # make sure the test starts even if we have less than the requested amount of cores
3737+ export OMPI_MCA_rmaps_base_oversubscribe=1
3838+ # Disable CPU pinning
3939+ export OMPI_MCA_hwloc_base_binding_policy=none
4040+ ;;
4141+ MPICH)
4242+ # Fix to make mpich run in a sandbox
4343+ export HYDRA_IFACE=lo
4444+ ;;
4545+ MVAPICH)
4646+ # Disable CPU pinning
4747+ export MV2_ENABLE_AFFINITY=0
4848+ ;;
4949+ esac
5050+5151+ # Limit number of OpenMP threads. Default is "all cores".
5252+ export OMP_NUM_THREADS=1
5353+}
5454+
+6-2
pkgs/build-support/trivial-builders/default.nix
···905905 ) + "-patched"
906906 , patches ? []
907907 , postPatch ? ""
908908- }: stdenvNoCC.mkDerivation {
908908+ , ...
909909+ }@args: stdenvNoCC.mkDerivation {
909910 inherit name src patches postPatch;
910911 preferLocalBuild = true;
911912 allowSubstitutes = false;
912913 phases = "unpackPhase patchPhase installPhase";
913914 installPhase = "cp -R ./ $out";
914914- };
915915+ }
916916+ # Carry `meta` information from the underlying `src` if present.
917917+ // (optionalAttrs (src?meta) { inherit (src) meta; })
918918+ // (removeAttrs args [ "src" "name" "patches" "postPatch" ]);
915919916920 /* An immutable file in the store with a length of 0 bytes. */
917921 emptyFile = runCommand "empty-file" {
···1212 # Many Wine and native games need 32-bit libraries.
1313 multiArch = true;
14141515+ # required by Electron
1616+ unshareIpc = false;
1717+1518 targetPkgs = pkgs: with pkgs; [
1619 heroic-unwrapped
1720 gamemode
···33 "sha256": "1kdpma5f3rb9g29j364lqv6bkar5qgwlvcxmhpmzllwlkmjpc9w8",
44 "url": "https://github.com/nextcloud/bookmarks/releases/download/v12.1.0/bookmarks-12.1.0.tar.gz",
55 "version": "12.1.0",
66- "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP v7.4+\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
66+ "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
77 "homepage": "https://github.com/nextcloud/bookmarks",
88 "licenses": [
99 "agpl"
···140140 ]
141141 },
142142 "news": {
143143- "sha256": "1z08k8xnyv71zj0djlv339faq9lx23mlqgjanf2jhv6jhh8cy5c6",
144144- "url": "https://github.com/nextcloud/news/releases/download/22.0.0/news.tar.gz",
145145- "version": "22.0.0",
143143+ "sha256": "1j9dhqz5anwsmw3f8hbhvqc2h1fp15zmxzdbpnz1p3vwqf8f5cjs",
144144+ "url": "https://github.com/nextcloud/news/releases/download/23.0.0/news.tar.gz",
145145+ "version": "23.0.0",
146146 "description": "📰 A RSS/Atom Feed reader App for Nextcloud\n\n- 📲 Synchronize your feeds with multiple mobile or desktop [clients](https://nextcloud.github.io/news/clients/)\n- 🔄 Automatic updates of your news feeds\n- 🆓 Free and open source under AGPLv3, no ads or premium functions\n\n**System Cron is currently required for this app to work**\n\nRequirements can be found [here](https://nextcloud.github.io/news/install/#dependencies)\n\nThe Changelog is available [here](https://github.com/nextcloud/news/blob/master/CHANGELOG.md)\n\nCreate a [bug report](https://github.com/nextcloud/news/issues/new/choose)\n\nCreate a [feature request](https://github.com/nextcloud/news/discussions/new)\n\nReport a [feed issue](https://github.com/nextcloud/news/discussions/new)",
147147 "homepage": "https://github.com/nextcloud/news",
148148 "licenses": [
···170170 ]
171171 },
172172 "onlyoffice": {
173173- "sha256": "10axh9a4w8y3iw95xdjn4q8wjg5459dki42xb6cax5ikimyfv07j",
174174- "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.8.0/onlyoffice.tar.gz",
175175- "version": "7.8.0",
173173+ "sha256": "12hzmngps86ha4lcfwaf62svfz41aywykq0z419r644g5i4v7raq",
174174+ "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.9.0/onlyoffice.tar.gz",
175175+ "version": "7.9.0",
176176 "description": "ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within Nextcloud using ONLYOFFICE Docs. This will create a new Edit in ONLYOFFICE action within the document library for Office documents. This allows multiple users to co-author documents in real time from the familiar web interface and save the changes back to your file storage.",
177177 "homepage": "https://www.onlyoffice.com",
178178 "licenses": [
+10-10
pkgs/servers/nextcloud/packages/26.json
···11{
22 "bookmarks": {
33- "sha256": "0xx331bgly91y8ncxk36ha3ncrr2xlivblfi7rix6ffkrdx73yb9",
44- "url": "https://github.com/nextcloud/bookmarks/releases/download/v13.0.1/bookmarks-13.0.1.tar.gz",
55- "version": "13.0.1",
66- "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP v7.4+\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
33+ "sha256": "16j10gj5nghgji36jhng60291wl4h9c3vndjx9j8jij9qn6hz23f",
44+ "url": "https://github.com/nextcloud/bookmarks/releases/download/v13.1.0/bookmarks-13.1.0.tar.gz",
55+ "version": "13.1.0",
66+ "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
77 "homepage": "https://github.com/nextcloud/bookmarks",
88 "licenses": [
99 "agpl"
···140140 ]
141141 },
142142 "news": {
143143- "sha256": "1z08k8xnyv71zj0djlv339faq9lx23mlqgjanf2jhv6jhh8cy5c6",
144144- "url": "https://github.com/nextcloud/news/releases/download/22.0.0/news.tar.gz",
145145- "version": "22.0.0",
143143+ "sha256": "1j9dhqz5anwsmw3f8hbhvqc2h1fp15zmxzdbpnz1p3vwqf8f5cjs",
144144+ "url": "https://github.com/nextcloud/news/releases/download/23.0.0/news.tar.gz",
145145+ "version": "23.0.0",
146146 "description": "📰 A RSS/Atom Feed reader App for Nextcloud\n\n- 📲 Synchronize your feeds with multiple mobile or desktop [clients](https://nextcloud.github.io/news/clients/)\n- 🔄 Automatic updates of your news feeds\n- 🆓 Free and open source under AGPLv3, no ads or premium functions\n\n**System Cron is currently required for this app to work**\n\nRequirements can be found [here](https://nextcloud.github.io/news/install/#dependencies)\n\nThe Changelog is available [here](https://github.com/nextcloud/news/blob/master/CHANGELOG.md)\n\nCreate a [bug report](https://github.com/nextcloud/news/issues/new/choose)\n\nCreate a [feature request](https://github.com/nextcloud/news/discussions/new)\n\nReport a [feed issue](https://github.com/nextcloud/news/discussions/new)",
147147 "homepage": "https://github.com/nextcloud/news",
148148 "licenses": [
···170170 ]
171171 },
172172 "onlyoffice": {
173173- "sha256": "10axh9a4w8y3iw95xdjn4q8wjg5459dki42xb6cax5ikimyfv07j",
174174- "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.8.0/onlyoffice.tar.gz",
175175- "version": "7.8.0",
173173+ "sha256": "12hzmngps86ha4lcfwaf62svfz41aywykq0z419r644g5i4v7raq",
174174+ "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.9.0/onlyoffice.tar.gz",
175175+ "version": "7.9.0",
176176 "description": "ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within Nextcloud using ONLYOFFICE Docs. This will create a new Edit in ONLYOFFICE action within the document library for Office documents. This allows multiple users to co-author documents in real time from the familiar web interface and save the changes back to your file storage.",
177177 "homepage": "https://www.onlyoffice.com",
178178 "licenses": [
+7-7
pkgs/servers/nextcloud/packages/27.json
···11{
22 "bookmarks": {
33- "sha256": "0xx331bgly91y8ncxk36ha3ncrr2xlivblfi7rix6ffkrdx73yb9",
44- "url": "https://github.com/nextcloud/bookmarks/releases/download/v13.0.1/bookmarks-13.0.1.tar.gz",
55- "version": "13.0.1",
66- "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP v7.4+\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
33+ "sha256": "16j10gj5nghgji36jhng60291wl4h9c3vndjx9j8jij9qn6hz23f",
44+ "url": "https://github.com/nextcloud/bookmarks/releases/download/v13.1.0/bookmarks-13.1.0.tar.gz",
55+ "version": "13.1.0",
66+ "description": "- 📂 Sort bookmarks into folders\n- 🏷 Add tags and personal notes\n- 🔍 Full-text search\n- 📲 Synchronize with all your browsers and devices\n- 👪 Share bookmarks with other users and publicly\n- ☠ Find broken links\n- ⚛ Generate RSS feeds of your collections\n- 📔 Read archived versions of your links in case they are depublished\n- 💬 Create new bookmarks directly from within Nextcloud Talk\n- 💼 Built-in Dashboard widgets for frequent and recent links\n\nRequirements:\n - PHP extensions:\n - intl: *\n - mbstring: *\n - when using MySQL, use at least v8.0",
77 "homepage": "https://github.com/nextcloud/bookmarks",
88 "licenses": [
99 "agpl"
···140140 ]
141141 },
142142 "news": {
143143- "sha256": "1z08k8xnyv71zj0djlv339faq9lx23mlqgjanf2jhv6jhh8cy5c6",
144144- "url": "https://github.com/nextcloud/news/releases/download/22.0.0/news.tar.gz",
145145- "version": "22.0.0",
143143+ "sha256": "1j9dhqz5anwsmw3f8hbhvqc2h1fp15zmxzdbpnz1p3vwqf8f5cjs",
144144+ "url": "https://github.com/nextcloud/news/releases/download/23.0.0/news.tar.gz",
145145+ "version": "23.0.0",
146146 "description": "📰 A RSS/Atom Feed reader App for Nextcloud\n\n- 📲 Synchronize your feeds with multiple mobile or desktop [clients](https://nextcloud.github.io/news/clients/)\n- 🔄 Automatic updates of your news feeds\n- 🆓 Free and open source under AGPLv3, no ads or premium functions\n\n**System Cron is currently required for this app to work**\n\nRequirements can be found [here](https://nextcloud.github.io/news/install/#dependencies)\n\nThe Changelog is available [here](https://github.com/nextcloud/news/blob/master/CHANGELOG.md)\n\nCreate a [bug report](https://github.com/nextcloud/news/issues/new/choose)\n\nCreate a [feature request](https://github.com/nextcloud/news/discussions/new)\n\nReport a [feed issue](https://github.com/nextcloud/news/discussions/new)",
147147 "homepage": "https://github.com/nextcloud/news",
148148 "licenses": [
···37373838 more-itertools = callPackage ../development/python2-modules/more-itertools { };
39394040+ # ninja python stub was created to help simplify python builds using PyPA's
4141+ # build tool in Python 3, but it does not yet support Python 2
4242+ ninja = pkgs.buildPackages.ninja;
4343+4044 packaging = callPackage ../development/python2-modules/packaging { };
41454246 pip = callPackage ../development/python2-modules/pip { };