Merge master into staging-next

authored by github-actions[bot] and committed by GitHub 56d22e36 5efb7d8d

+189 -43
+1 -1
lib/default.nix
··· 116 116 pushDownProperties dischargeProperties filterOverrides 117 117 sortProperties fixupOptionType mkIf mkAssert mkMerge mkOverride 118 118 mkOptionDefault mkDefault mkForce mkVMOverride 119 - mkOrder mkBefore mkAfter mkAliasDefinitions 119 + mkFixStrictness mkOrder mkBefore mkAfter mkAliasDefinitions 120 120 mkAliasAndWrapDefinitions fixMergeModules mkRemovedOptionModule 121 121 mkRenamedOptionModule mkMergedOptionModule mkChangedOptionModule 122 122 mkAliasOptionModule doRename;
+2
lib/modules.nix
··· 713 713 mkForce = mkOverride 50; 714 714 mkVMOverride = mkOverride 10; # used by ‘nixos-rebuild build-vm’ 715 715 716 + mkFixStrictness = lib.warn "lib.mkFixStrictness has no effect and will be removed. It returns its argument unmodified, so you can just remove any calls." id; 717 + 716 718 mkOrder = priority: content: 717 719 { _type = "order"; 718 720 inherit priority content;
+2 -2
pkgs/applications/graphics/darktable/default.nix
··· 3 3 , ilmbase, gtk3, intltool, lcms2, lensfun, libX11, libexif, libgphoto2, libjpeg 4 4 , libpng, librsvg, libtiff, openexr, osm-gps-map, pkg-config, sqlite, libxslt 5 5 , openjpeg, lua, pugixml, colord, colord-gtk, libwebp, libsecret, gnome 6 - , ocl-icd, pcre, gtk-mac-integration, isocodes, llvmPackages 6 + , ocl-icd, pcre, gtk-mac-integration, isocodes, llvmPackages, gmic, libavif, icu 7 7 }: 8 8 9 9 stdenv.mkDerivation rec { ··· 21 21 cairo curl exiv2 glib gtk3 ilmbase lcms2 lensfun libexif 22 22 libgphoto2 libjpeg libpng librsvg libtiff openexr sqlite libxslt 23 23 libsoup graphicsmagick json-glib openjpeg lua pugixml 24 - libwebp libsecret gnome.adwaita-icon-theme osm-gps-map pcre isocodes 24 + libwebp libsecret gnome.adwaita-icon-theme osm-gps-map pcre isocodes gmic libavif icu 25 25 ] ++ lib.optionals stdenv.isLinux [ 26 26 colord colord-gtk libX11 ocl-icd 27 27 ] ++ lib.optional stdenv.isDarwin gtk-mac-integration
+2 -2
pkgs/applications/misc/mako/default.nix
··· 5 5 6 6 stdenv.mkDerivation rec { 7 7 pname = "mako"; 8 - version = "1.5"; 8 + version = "1.6"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "emersion"; 12 12 repo = pname; 13 13 rev = "v${version}"; 14 - sha256 = "0f92krcgybl4113g2gawf7lcbh1fss7bq4cx81h1zyn7yvxlwx2b"; 14 + sha256 = "sha256-RcPwZ5NeO9vxwPWfgj5x3wVdCYGKumnYT3ngHEAWfW0="; 15 15 }; 16 16 17 17 nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-protocols wrapGAppsHook ];
+7 -3
pkgs/applications/science/math/getdp/default.nix
··· 1 1 { lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "getdp-${version}"; 4 + pname = "getdp"; 5 5 version = "3.3.0"; 6 6 src = fetchurl { 7 7 url = "http://getdp.info/src/getdp-${version}-source.tgz"; 8 8 sha256 = "1pfviy2bw8z5y6c15czvlvyjjg9pvpgrj9fr54xfi2gmvs7zkgpf"; 9 9 }; 10 10 11 - nativeBuildInputs = [ cmake gfortran ]; 12 - buildInputs = [ blas lapack mpi petsc python3 ]; 11 + inherit (petsc) mpiSupport; 12 + nativeBuildInputs = [ cmake python3 ]; 13 + buildInputs = [ gfortran blas lapack petsc ] 14 + ++ lib.optional mpiSupport mpi 15 + ; 16 + cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1"; 13 17 14 18 meta = with lib; { 15 19 description = "A General Environment for the Treatment of Discrete Problems";
+1
pkgs/development/compilers/gcc-arm-embedded/10/default.nix
··· 7 7 stdenv.mkDerivation rec { 8 8 pname = "gcc-arm-embedded"; 9 9 version = "10-2020-q4-major"; 10 + numVersion = "10.2.1"; 10 11 subdir = "10-2020q4"; 11 12 12 13 suffix = {
+1
pkgs/development/compilers/gcc-arm-embedded/6/default.nix
··· 7 7 stdenv.mkDerivation rec { 8 8 pname = "gcc-arm-embedded"; 9 9 version = "6-2017-q2-update"; 10 + numVersion = "6.3.1"; 10 11 subdir = "6-2017q2"; 11 12 12 13 suffix = {
+1
pkgs/development/compilers/gcc-arm-embedded/7/default.nix
··· 7 7 stdenv.mkDerivation rec { 8 8 pname = "gcc-arm-embedded"; 9 9 version = "7-2018-q2-update"; 10 + numVersion = "7.3.1"; 10 11 subdir = "7-2018q2"; 11 12 12 13 suffix = {
+1
pkgs/development/compilers/gcc-arm-embedded/8/default.nix
··· 7 7 stdenv.mkDerivation rec { 8 8 pname = "gcc-arm-embedded"; 9 9 version = "8-2019-q3-update"; 10 + numVersion = "8.3.1"; 10 11 subdir = "8-2019q3/RC1.1"; 11 12 12 13 suffix = {
+1
pkgs/development/compilers/gcc-arm-embedded/9/default.nix
··· 7 7 stdenv.mkDerivation rec { 8 8 pname = "gcc-arm-embedded"; 9 9 version = "9-2020-q2-update"; 10 + numVersion = "9.3.1"; 10 11 subdir = "9-2020q2"; 11 12 12 13 suffix = {
+50 -25
pkgs/development/libraries/science/math/petsc/default.nix
··· 1 - { lib, stdenv , darwin , fetchurl , blas , gfortran , lapack , python }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , darwin 5 + , gfortran 6 + , python3 7 + , blas 8 + , lapack 9 + , mpi # generic mpi dependency 10 + , openssh # required for openmpi tests 11 + , petsc-withp4est ? true 12 + , p4est 13 + , zlib # propagated by p4est but required by petsc 14 + }: 15 + 16 + # This version of PETSc does not support a non-MPI p4est build 17 + assert petsc-withp4est -> p4est.mpiSupport; 2 18 3 19 stdenv.mkDerivation rec { 4 20 pname = "petsc"; ··· 9 25 sha256 = "04vy3qyakikslc58qyv8c9qrwlivix3w6znc993i37cvfg99dch9"; 10 26 }; 11 27 12 - nativeBuildInputs = [ blas gfortran gfortran.cc.lib lapack python ]; 28 + mpiSupport = !withp4est || p4est.mpiSupport; 29 + withp4est = petsc-withp4est; 13 30 14 - # Upstream does some hot she-py-bang stuff, this change streamlines that 15 - # process. The original script in upstream is both a shell script and a 16 - # python script, where the shellscript just finds a suitable python 17 - # interpreter to execute the python script. See 18 - # https://github.com/NixOS/nixpkgs/pull/89299#discussion_r450203444 19 - # for more details. 20 - prePatch = '' 21 - substituteInPlace configure \ 22 - --replace /bin/sh /usr/bin/python 23 - '' + lib.optionalString stdenv.isDarwin '' 31 + nativeBuildInputs = [ python3 gfortran ]; 32 + buildInputs = [ blas lapack ] 33 + ++ lib.optional mpiSupport mpi 34 + ++ lib.optional (mpiSupport && mpi.pname == "openmpi") openssh 35 + ++ lib.optional withp4est p4est 36 + ; 37 + 38 + prePatch = lib.optionalString stdenv.isDarwin '' 24 39 substituteInPlace config/install.py \ 25 40 --replace /usr/bin/install_name_tool ${darwin.cctools}/bin/install_name_tool 26 41 ''; 27 42 28 43 preConfigure = '' 29 44 export FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran" 30 - patchShebangs . 45 + patchShebangs ./lib/petsc/bin 31 46 configureFlagsArray=( 32 47 $configureFlagsArray 33 - "--CC=$CC" 34 - "--with-cxx=$CXX" 35 - "--with-fc=$FC" 36 - "--with-mpi=0" 37 - "--with-blas-lib=[${blas}/lib/libblas.so,${gfortran.cc.lib}/lib/libgfortran.a]" 38 - "--with-lapack-lib=[${lapack}/lib/liblapack.so,${gfortran.cc.lib}/lib/libgfortran.a]" 48 + ${if !mpiSupport then '' 49 + "--with-mpi=0" 50 + '' else '' 51 + "--CC=mpicc" 52 + "--with-cxx=mpicxx" 53 + "--with-fc=mpif90" 54 + "--with-mpi=1" 55 + ''} 56 + ${if withp4est then '' 57 + "--with-p4est=1" 58 + "--with-zlib-include=${zlib.dev}/include" 59 + "--with-zlib-lib=-L${zlib}/lib -lz" 60 + '' else ""} 61 + "--with-blas=1" 62 + "--with-lapack=1" 39 63 ) 40 64 ''; 41 65 66 + configureScript = "python ./configure"; 67 + 68 + enableParallelBuilding = true; 69 + doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 70 + 42 71 meta = with lib; { 43 - description = '' 44 - Library of linear algebra algorithms for solving partial differential 45 - equations 46 - ''; 72 + description = "Portable Extensible Toolkit for Scientific computation"; 47 73 homepage = "https://www.mcs.anl.gov/petsc/index.html"; 48 74 license = licenses.bsd2; 49 - maintainers = with maintainers; [ wucke13 ]; 50 - platforms = platforms.all; 75 + maintainers = with maintainers; [ wucke13 cburstedde ]; 51 76 }; 52 77 }
+46
pkgs/development/ocaml-modules/data-encoding/default.nix
··· 1 + { lib 2 + , fetchFromGitLab 3 + , buildDunePackage 4 + , ezjsonm 5 + , zarith 6 + , hex 7 + , json-data-encoding 8 + , json-data-encoding-bson 9 + , alcotest 10 + , crowbar 11 + }: 12 + 13 + buildDunePackage { 14 + pname = "data-encoding"; 15 + version = "0.2.0"; 16 + 17 + src = fetchFromGitLab { 18 + owner = "nomadic-labs"; 19 + repo = "data-encoding"; 20 + rev = "0.2"; 21 + sha256 = "0d9c2ix2imqk4r0jfhnwak9laarlbsq9kmswvbnjzdm2g0hwin1d"; 22 + }; 23 + useDune2 = true; 24 + 25 + propagatedBuildInputs = [ 26 + ezjsonm 27 + zarith 28 + hex 29 + json-data-encoding 30 + json-data-encoding-bson 31 + ]; 32 + 33 + checkInputs = [ 34 + alcotest 35 + crowbar 36 + ]; 37 + 38 + doCheck = true; 39 + 40 + meta = { 41 + homepage = "https://gitlab.com/nomadic-labs/data-encoding"; 42 + description = "Library of JSON and binary encoding combinators"; 43 + license = lib.licenses.mit; 44 + maintainers = [ lib.maintainers.ulrikstrid ]; 45 + }; 46 + }
+20
pkgs/development/ocaml-modules/json-data-encoding/bson.nix
··· 1 + { lib, buildDunePackage, json-data-encoding, ocplib-endian, crowbar }: 2 + 3 + buildDunePackage { 4 + pname = "json-data-encoding-bson"; 5 + 6 + inherit (json-data-encoding) version src useDune2 doCheck; 7 + 8 + propagatedBuildInputs = [ 9 + json-data-encoding 10 + ocplib-endian 11 + ]; 12 + 13 + checkInputs = [ 14 + crowbar 15 + ]; 16 + 17 + meta = json-data-encoding.meta // { 18 + description = "Type-safe encoding to and decoding from JSON (bson support)"; 19 + }; 20 + }
+31
pkgs/development/ocaml-modules/json-data-encoding/default.nix
··· 1 + { lib, fetchFromGitLab, buildDunePackage, uri, crowbar }: 2 + 3 + buildDunePackage rec { 4 + pname = "json-data-encoding"; 5 + version = "0.8"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "nomadic-labs"; 9 + repo = "json-data-encoding"; 10 + rev = "v${version}"; 11 + sha256 = "1c6m2qvi9bm6qjxc38p6cia1f66r0rb9xf6b8svlj3jjymvqw889"; 12 + }; 13 + useDune2 = true; 14 + 15 + propagatedBuildInputs = [ 16 + uri 17 + ]; 18 + 19 + checkInputs = [ 20 + crowbar 21 + ]; 22 + 23 + doCheck = true; 24 + 25 + meta = { 26 + homepage = "https://gitlab.com/nomadic-labs/json-data-encoding"; 27 + description = "Type-safe encoding to and decoding from JSON"; 28 + license = lib.licenses.lgpl3; 29 + maintainers = [ lib.maintainers.ulrikstrid ]; 30 + }; 31 + }
+17 -10
pkgs/development/python-modules/pre-commit-hooks/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 3 - , fetchPypi 4 4 , git 5 - , isPy27 6 - , lib 5 + , pythonOlder 7 6 , pytestCheckHook 8 7 , ruamel_yaml 9 8 , toml ··· 11 10 12 11 buildPythonPackage rec { 13 12 pname = "pre-commit-hooks"; 14 - version = "3.4.0"; 15 - disabled = isPy27; 13 + version = "4.0.1"; 14 + disabled = pythonOlder "3.6"; 16 15 17 - # fetchPypi does not provide tests 18 16 src = fetchFromGitHub { 19 17 owner = "pre-commit"; 20 18 repo = pname; 21 19 rev = "v${version}"; 22 - sha256 = "1aqkmprdc2lhds9c59pkkf2js65j63197flanaggk7cm8k0kz7zs"; 20 + sha256 = "sha256-Rg2I79r0Pp3AUgT6mD+kEdm+5CEGgdmFn6G3xcU6fnk="; 23 21 }; 24 22 25 - propagatedBuildInputs = [ toml ruamel_yaml ]; 26 - checkInputs = [ git pytestCheckHook ]; 23 + propagatedBuildInputs = [ 24 + ruamel_yaml 25 + toml 26 + ]; 27 + 28 + checkInputs = [ 29 + git 30 + pytestCheckHook 31 + ]; 27 32 28 33 # the tests require a functional git installation which requires a valid HOME 29 34 # directory. ··· 33 38 git config --global user.name "Nix Builder" 34 39 git config --global user.email "nix-builder@nixos.org" 35 40 ''; 41 + 42 + pythonImportsCheck = [ "pre_commit_hooks" ]; 36 43 37 44 meta = with lib; { 38 45 description = "Some out-of-the-box hooks for pre-commit";
+6
pkgs/top-level/ocaml-packages.nix
··· 242 242 243 243 dap = callPackage ../development/ocaml-modules/dap { }; 244 244 245 + data-encoding = callPackage ../development/ocaml-modules/data-encoding { }; 246 + 245 247 decompress = callPackage ../development/ocaml-modules/decompress { }; 246 248 247 249 diet = callPackage ../development/ocaml-modules/diet { }; ··· 547 549 js_of_ocaml-tyxml = callPackage ../development/tools/ocaml/js_of_ocaml/tyxml.nix {}; 548 550 549 551 jsonm = callPackage ../development/ocaml-modules/jsonm { }; 552 + 553 + json-data-encoding = callPackage ../development/ocaml-modules/json-data-encoding { }; 554 + 555 + json-data-encoding-bson = callPackage ../development/ocaml-modules/json-data-encoding/bson.nix { }; 550 556 551 557 junit = callPackage ../development/ocaml-modules/junit { }; 552 558 junit_ounit = callPackage ../development/ocaml-modules/junit/ounit.nix { };