lol

Merge staging-next into staging

authored by

github-actions[bot] and committed by
GitHub
f0187a2c b6af78fd

+179 -48
+2 -2
nixos/modules/programs/command-not-found/command-not-found.pl
··· 36 36 exec("nix-shell", "-p", $package, "--run", shell_quote("exec", @ARGV)); 37 37 } else { 38 38 print STDERR <<EOF; 39 - The program '$program' is not in your PATH. You can make it available in a 39 + The program '$program' is not in your PATH. You can make it available in an 40 40 ephemeral shell by typing: 41 41 nix-shell -p $package 42 42 EOF ··· 44 44 } else { 45 45 print STDERR <<EOF; 46 46 The program '$program' is not in your PATH. It is provided by several packages. 47 - You can make it available in a ephemeral shell by typing one of the following: 47 + You can make it available in an ephemeral shell by typing one of the following: 48 48 EOF 49 49 print STDERR " nix-shell -p $_->{package}\n" foreach @$res; 50 50 }
+30 -2
pkgs/applications/editors/joe/default.nix
··· 1 1 { stdenv, fetchurl } : 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "4.6"; 5 4 pname = "joe"; 5 + version = "4.6"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/joe-editor/${pname}-${version}.tar.gz"; ··· 11 11 12 12 meta = with stdenv.lib; { 13 13 description = "A full featured terminal-based screen editor"; 14 + longDescription = '' 15 + JOE (Joe's Own Editor) is a full featured terminal-based screen editor 16 + which is distributed under the GNU General Public License (GPL). JOE has 17 + been around since 1988 and comes standard with many Linux distributions. 18 + 19 + JOE is being maintained by its original author Joseph Allen, plus all of 20 + the people who send bug reports, feature suggestions and patches to the 21 + project web site. JOE is hosted by SourceForge.net and its source code is 22 + controlled under Mercurial. 23 + 24 + JOE is a blending of MicroPro's venerable microcomputer word processor 25 + WordStar and Richard Stallman's famous LISP based text editor GNU-EMACS 26 + (but it does not use code from either program): most of the basic editing 27 + keys are the same as in WordStar as is the overall feel of the editor. JOE 28 + also has some of the key bindings and many of the powerful features of 29 + EMACS. 30 + 31 + JOE is written in C and its only dependency is libc. This makes JOE very 32 + easy to build (just "configure" and "make install"), making it feasible to 33 + include on small systems and recovery disks. The compiled binary is about 34 + 300K in x86. Note that JOE can use either the termcap or terminfo terminal 35 + capabilities databases (or a built-in termcap entry for ANSI 36 + terminals). The choice is controlled by a "configure" option. If terminfo 37 + is used, a library is required to access the database (on some systems 38 + this library is ncurses, but JOE does not use curses to control the 39 + terminal - it has its own code for this). 40 + ''; 14 41 homepage = "https://joe-editor.sourceforge.io"; 15 - license = licenses.gpl2; 42 + license = licenses.gpl2Plus; 43 + maintainers = with maintainers; [ AndersonTorres ]; 16 44 platforms = platforms.unix; 17 45 }; 18 46 }
+6 -2
pkgs/applications/networking/cluster/nomad/0.11.nix
··· 1 - { callPackage, buildGoPackage }: 1 + { callPackage 2 + , buildGoPackage 3 + , nvidia_x11 4 + , nvidiaGpuSupport 5 + }: 2 6 3 7 callPackage ./generic.nix { 4 - inherit buildGoPackage; 8 + inherit buildGoPackage nvidia_x11 nvidiaGpuSupport; 5 9 version = "0.11.8"; 6 10 sha256 = "1dhh07bifr02jh2lls8fv1d9ra67ymgh8qxqvpvm0cd0qdd469z1"; 7 11 }
+6 -2
pkgs/applications/networking/cluster/nomad/0.12.nix
··· 1 - { callPackage, buildGoPackage }: 1 + { callPackage 2 + , buildGoPackage 3 + , nvidia_x11 4 + , nvidiaGpuSupport 5 + }: 2 6 3 7 callPackage ./generic.nix { 4 - inherit buildGoPackage; 8 + inherit buildGoPackage nvidia_x11 nvidiaGpuSupport; 5 9 version = "0.12.9"; 6 10 sha256 = "1a0ig6pb0z3qp7zk4jgz3h241bifmjlyqsfikyy3sxdnzj7yha27"; 7 11 }
+6 -2
pkgs/applications/networking/cluster/nomad/1.0.nix
··· 1 - { callPackage, buildGoPackage }: 1 + { callPackage 2 + , buildGoPackage 3 + , nvidia_x11 4 + , nvidiaGpuSupport 5 + }: 2 6 3 7 callPackage ./generic.nix { 4 - inherit buildGoPackage; 8 + inherit buildGoPackage nvidia_x11 nvidiaGpuSupport; 5 9 version = "1.0.1"; 6 10 sha256 = "07k81csyxhgc7bgn297zlqyvc55qb5fmiavi7dk81rdpg5m2zjvv"; 7 11 }
+32 -14
pkgs/applications/networking/cluster/nomad/generic.nix
··· 1 - { stdenv, buildGoPackage, fetchFromGitHub, version, sha256 }: 1 + { lib 2 + , buildGoPackage 3 + , fetchFromGitHub 4 + , version 5 + , sha256 6 + , nvidiaGpuSupport 7 + , patchelf 8 + , nvidia_x11 9 + }: 2 10 3 11 buildGoPackage rec { 4 12 pname = "nomad"; ··· 14 22 inherit rev sha256; 15 23 }; 16 24 25 + nativeBuildInputs = lib.optionals nvidiaGpuSupport [ 26 + patchelf 27 + ]; 28 + 17 29 # ui: 18 30 # Nomad release commits include the compiled version of the UI, but the file 19 31 # is only included if we build with the ui tag. 20 - # nonvidia: 21 - # We disable Nvidia GPU scheduling on Linux, as it doesn't work there: 22 - # Ref: https://github.com/hashicorp/nomad/issues/5535 23 - preBuild = let 24 - tags = ["ui"] 25 - ++ stdenv.lib.optional stdenv.isLinux "nonvidia"; 26 - tagsString = stdenv.lib.concatStringsSep " " tags; 27 - in '' 28 - export buildFlagsArray=( 29 - -tags="${tagsString}" 30 - ) 31 - ''; 32 + preBuild = 33 + let 34 + tags = [ "ui" ] ++ lib.optional (!nvidiaGpuSupport) "nonvidia"; 35 + tagsString = lib.concatStringsSep " " tags; 36 + in 37 + '' 38 + export buildFlagsArray=( 39 + -tags="${tagsString}" 40 + ) 41 + ''; 42 + 43 + # The dependency on NVML isn't explicit. We have to make it so otherwise the 44 + # binary will not know where to look for the relevant symbols. 45 + postFixup = lib.optionalString nvidiaGpuSupport '' 46 + for bin in $out/bin/*; do 47 + patchelf --add-needed "${nvidia_x11}/lib/libnvidia-ml.so" "$bin" 48 + done 49 + ''; 32 50 33 - meta = with stdenv.lib; { 51 + meta = with lib; { 34 52 homepage = "https://www.nomadproject.io/"; 35 53 description = "A Distributed, Highly Available, Datacenter-Aware Scheduler"; 36 54 platforms = platforms.unix;
+5
pkgs/development/haskell-modules/configuration-common.nix
··· 1547 1547 # https://github.com/Gabriel439/Haskell-Nix-Derivation-Library/pull/10 1548 1548 nix-derivation = doJailbreak super.nix-derivation; 1549 1549 1550 + # Break out of overspecified constraint on QuickCheck. 1551 + # Fixed by https://github.com/haskell-servant/servant/commit/08579ca0039410e04d6c36c975ddc20165819db6 1552 + servant-client = doJailbreak super.servant-client; 1553 + servant-client-core = doJailbreak super.servant-client-core; 1554 + 1550 1555 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
+2
pkgs/development/ocaml-modules/csv/default.nix
··· 4 4 pname = "csv"; 5 5 version = "2.4"; 6 6 7 + useDune2 = true; 8 + 7 9 src = fetchurl { 8 10 url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz"; 9 11 sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
+1 -1
pkgs/development/ocaml-modules/csv/lwt.nix
··· 6 6 7 7 buildDunePackage { 8 8 pname = "csv-lwt"; 9 - inherit (csv) src version meta; 9 + inherit (csv) src version useDune2 meta; 10 10 11 11 propagatedBuildInputs = [ csv ocaml_lwt ]; 12 12
+4 -4
pkgs/development/ocaml-modules/ppx_blob/default.nix
··· 1 - { lib, fetchurl, buildDunePackage, ocaml, alcotest, ocaml-migrate-parsetree }: 1 + { lib, fetchurl, buildDunePackage, ocaml, alcotest, ppxlib }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "ppx_blob"; 5 - version = "0.7.1"; 5 + version = "0.7.2"; 6 6 7 7 useDune2 = true; 8 8 9 9 src = fetchurl { 10 10 url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz"; 11 - sha256 = "0m616ri6kmawflphiwm6j4djds27v0fjvi8xjz1fq5ydc1sq8d0l"; 11 + sha256 = "00haz1cmplk3j9ysh6j656zrldy60585fmlndmfhpd5332mxrfdw"; 12 12 }; 13 13 14 14 checkInputs = [ alcotest ]; 15 - buildInputs = [ ocaml-migrate-parsetree ]; 15 + propagatedBuildInputs = [ ppxlib ]; 16 16 doCheck = lib.versionAtLeast ocaml.version "4.05"; 17 17 18 18 meta = with lib; {
+37 -11
pkgs/development/python-modules/pydicom/default.nix
··· 1 1 { stdenv 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , isPy27 5 - , pytest 6 5 , pytestrunner 7 6 , pytestCheckHook 8 7 , numpy 9 8 , pillow 10 9 }: 11 10 12 - buildPythonPackage rec { 13 - version = "2.1.1"; 11 + let 14 12 pname = "pydicom"; 15 - disabled = isPy27; 13 + version = "2.1.2"; 16 14 17 - src = fetchPypi { 18 - inherit pname version; 19 - sha256 = "72a11086f6a277c1529a552583fde73e03256a912173f15e9bc256e5b28f28f1"; 15 + src = fetchFromGitHub { 16 + owner = "${pname}"; 17 + repo = "${pname}"; 18 + rev = "v${version}"; 19 + sha256 = "sha256-iExy+mUs1uqs/u9N6btlqyP6/TvoPVsuOuzs56zZAS8="; 20 20 }; 21 21 22 + # Pydicom needs pydicom-data to run some tests. If these files are downloaded 23 + # before the package creation, it'll try to download during the checkPhase. 24 + test_data = fetchFromGitHub { 25 + owner = "${pname}"; 26 + repo = "${pname}-data"; 27 + rev = "bbb723879690bb77e077a6d57657930998e92bd5"; 28 + sha256 = "sha256-dCI1temvpNWiWJYVfQZKy/YJ4ad5B0e9hEKHJnEeqzk="; 29 + }; 30 + 31 + in 32 + buildPythonPackage { 33 + inherit pname version src; 34 + disabled = isPy27; 35 + 22 36 propagatedBuildInputs = [ numpy pillow ]; 23 37 24 - checkInputs = [ pytest pytestrunner pytestCheckHook ]; 25 - disabledTests = [ "test_invalid_bit_depth_raises" ]; 26 - # harmless failure; see https://github.com/pydicom/pydicom/issues/1119 38 + checkInputs = [ pytestrunner pytestCheckHook ]; 39 + 40 + # Setting $HOME to prevent pytest to try to create a folder inside 41 + # /homeless-shelter which is read-only. 42 + # Linking pydicom-data dicom files to $HOME/.pydicom/data 43 + preCheck = '' 44 + export HOME=$TMP/test-home 45 + mkdir -p $HOME/.pydicom/ 46 + ln -s ${test_data}/data_store/data $HOME/.pydicom/data 47 + ''; 48 + 49 + # This test try to remove a dicom inside $HOME/.pydicom/data/ and download it again. 50 + disabledTests = [ 51 + "test_fetch_data_files" 52 + ]; 27 53 28 54 meta = with stdenv.lib; { 29 55 homepage = "https://pydicom.github.io";
+3 -1
pkgs/development/tools/sourcetrail/python.nix
··· 8 8 owner = "CoatiSoftware"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "05hlpd3am029pv1wi6mys3q0ggp64axmg8bdf1fabl9cl9jffscq"; 11 + sha256 = "01jaigxigq6dvfwq018gn9qw7i6p4jm0y71lqzschfv9vwf6ga45"; 12 12 fetchSubmodules = true; 13 13 }; 14 14 ··· 64 64 description = "Python indexer for Sourcetrail"; 65 65 homepage = "https://github.com/CoatiSoftware/SourcetrailPythonIndexer"; 66 66 license = licenses.gpl3; 67 + broken = stdenv.isDarwin; 68 + # https://github.com/NixOS/nixpkgs/pull/107533#issuecomment-751063675 67 69 }; 68 70 }
+1
pkgs/shells/zsh/default.nix
··· 26 26 "--with-tcsetpgrp" 27 27 "--enable-pcre" 28 28 "--enable-zprofile=${placeholder "out"}/etc/zprofile" 29 + "--disable-site-fndir" 29 30 ]; 30 31 31 32 # the zsh/zpty module is not available on hydra
+1
pkgs/tools/backup/duplicity/default.nix
··· 49 49 propagatedBuildInputs = with pythonPackages; [ 50 50 b2sdk 51 51 boto 52 + boto3 52 53 cffi 53 54 cryptography 54 55 ecdsa
+34 -1
pkgs/tools/misc/hdf4/default.nix
··· 4 4 , fixDarwinDylibNames 5 5 , cmake 6 6 , libjpeg 7 + , libtirpc 7 8 , zlib 8 9 , szip ? null 9 10 }: ··· 16 17 sha256 = "04nbgfxyj5jg4d6sr28162cxbfwqgv0sa7vz1ayzvm8wbbpkbq5x"; 17 18 }; 18 19 20 + patches = [ 21 + # Note that the PPC, SPARC and s390 patches are only needed so the aarch64 patch applies cleanly 22 + (fetchpatch { 23 + url = "https://src.fedoraproject.org/rpms/hdf/raw/edbe5f49646b609f5bc9aeeee5a2be47e9556e8c/f/hdf-ppc.patch"; 24 + sha256 = "0dbbfpsvvqzy9zyfv38gd81zzc44gxjib9sd8scxqnkkqprj6jq0"; 25 + }) 26 + (fetchpatch { 27 + url = "https://src.fedoraproject.org/rpms/hdf/raw/edbe5f49646b609f5bc9aeeee5a2be47e9556e8c/f/hdf-4.2.4-sparc.patch"; 28 + sha256 = "0ip4prcjpa404clm87ib7l71605mws54x9492n9pbz5yb51r9aqh"; 29 + }) 30 + (fetchpatch { 31 + url = "https://src.fedoraproject.org/rpms/hdf/raw/edbe5f49646b609f5bc9aeeee5a2be47e9556e8c/f/hdf-s390.patch"; 32 + sha256 = "0aiqbr4s1l19y3r3y4wjd5fkv9cfc8rlr4apbh1p0d57wyvqa7i3"; 33 + }) 34 + (fetchpatch { 35 + url = "https://src.fedoraproject.org/rpms/hdf/raw/edbe5f49646b609f5bc9aeeee5a2be47e9556e8c/f/hdf-arm.patch"; 36 + sha256 = "157k1avvkpf3x89m1fv4a1kgab6k3jv74rskazrmjivgzav4qaw3"; 37 + }) 38 + (fetchpatch { 39 + url = "https://src.fedoraproject.org/rpms/hdf/raw/edbe5f49646b609f5bc9aeeee5a2be47e9556e8c/f/hdf-aarch64.patch"; 40 + sha256 = "112svcsilk16ybbsi8ywnxfl2p1v44zh3rfn4ijnl8z08vfqrvvs"; 41 + }) 42 + ]; 43 + 19 44 nativeBuildInputs = [ 20 45 cmake 21 46 ] ++ stdenv.lib.optionals stdenv.isDarwin [ ··· 24 49 25 50 buildInputs = [ 26 51 libjpeg 52 + libtirpc 27 53 szip 28 54 zlib 29 55 ]; 30 56 31 - preConfigure = stdenv.lib.optionalString (szip != null) "export SZIP_INSTALL=${szip}"; 57 + preConfigure = '' 58 + # Make tirpc discovery work with CMAKE_PREFIX_PATH 59 + substituteInPlace config/cmake/FindXDR.cmake \ 60 + --replace 'find_path(XDR_INCLUDE_DIR NAMES rpc/types.h PATHS "/usr/include" "/usr/include/tirpc")' \ 61 + 'find_path(XDR_INCLUDE_DIR NAMES rpc/types.h PATH_SUFFIXES include/tirpc)' 62 + '' + stdenv.lib.optionalString (szip != null) '' 63 + export SZIP_INSTALL=${szip} 64 + ''; 32 65 33 66 cmakeFlags = [ 34 67 "-DBUILD_SHARED_LIBS=ON"
+2 -2
pkgs/tools/misc/ipxe/default.nix
··· 19 19 20 20 stdenv.mkDerivation rec { 21 21 pname = "ipxe"; 22 - version = "1.20.1"; 22 + version = "1.21.1"; 23 23 24 24 nativeBuildInputs = [ perl cdrkit syslinux xz openssl gnu-efi mtools ]; 25 25 ··· 27 27 owner = "ipxe"; 28 28 repo = "ipxe"; 29 29 rev = "v${version}"; 30 - sha256 = "0w7h7y97gj9nqvbmsg1zp6zj5mpbbpckqbbx7bpp6k3ahy5fk8zp"; 30 + sha256 = "1pkf1n1c0rdlzfls8fvjvi1sd9xjd9ijqlyz3wigr70ijcv6x8i9"; 31 31 }; 32 32 33 33 # not possible due to assembler code
+6
pkgs/top-level/all-packages.nix
··· 6129 6129 # with different versions we pin Go for all versions. 6130 6130 nomad_0_11 = callPackage ../applications/networking/cluster/nomad/0.11.nix { 6131 6131 buildGoPackage = buildGo114Package; 6132 + inherit (linuxPackages) nvidia_x11; 6133 + nvidiaGpuSupport = config.cudaSupport or (!stdenv.isLinux); 6132 6134 }; 6133 6135 nomad_0_12 = callPackage ../applications/networking/cluster/nomad/0.12.nix { 6134 6136 buildGoPackage = buildGo114Package; 6137 + inherit (linuxPackages) nvidia_x11; 6138 + nvidiaGpuSupport = config.cudaSupport or (!stdenv.isLinux); 6135 6139 }; 6136 6140 nomad_1_0 = callPackage ../applications/networking/cluster/nomad/1.0.nix { 6137 6141 buildGoPackage = buildGo115Package; 6142 + inherit (linuxPackages) nvidia_x11; 6143 + nvidiaGpuSupport = config.cudaSupport or (!stdenv.isLinux); 6138 6144 }; 6139 6145 6140 6146 notable = callPackage ../applications/misc/notable { };
+1 -4
pkgs/top-level/ocaml-packages.nix
··· 916 916 917 917 pprint = callPackage ../development/ocaml-modules/pprint { }; 918 918 919 - ppx_blob = 920 - if lib.versionAtLeast ocaml.version "4.02" 921 - then callPackage ../development/ocaml-modules/ppx_blob {} 922 - else null; 919 + ppx_blob = callPackage ../development/ocaml-modules/ppx_blob { }; 923 920 924 921 ppx_cstruct = callPackage ../development/ocaml-modules/cstruct/ppx.nix {}; 925 922