summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-10-08 12:02:12 +0000
committerGitHub <noreply@github.com>2022-10-08 12:02:12 +0000
commitcdfb8a30a44056abfab2d5b2ec7b105c5e24226d (patch)
tree4a117140b51b0a57d951dd3ee3ea28c8b3d5f64b /pkgs/os-specific/linux
parent7d7030c6d5f2ed10d9ddd91199dd09b94ce5d003 (diff)
parent1b60238acd96038c0a52ee73c012194d506eb432 (diff)
downloadnixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar.gz
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar.bz2
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar.lz
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar.xz
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.tar.zst
nixpkgs-cdfb8a30a44056abfab2d5b2ec7b105c5e24226d.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/cpuid/default.nix4
-rw-r--r--pkgs/os-specific/linux/firmware/firmware-updater/default.nix6
-rw-r--r--pkgs/os-specific/linux/iproute/mptcp.nix40
-rw-r--r--pkgs/os-specific/linux/kernel/linux-mptcp-95.nix27
-rw-r--r--pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix15
-rw-r--r--pkgs/os-specific/linux/libbpf/0.x.nix5
-rw-r--r--pkgs/os-specific/linux/net-tools/mptcp.nix21
-rw-r--r--pkgs/os-specific/linux/nvidia-x11/generic.nix1
-rw-r--r--pkgs/os-specific/linux/prl-tools/default.nix4
-rw-r--r--pkgs/os-specific/linux/prl-tools/prl-tools-6.0.patch13
-rw-r--r--pkgs/os-specific/linux/qperf/default.nix43
11 files changed, 78 insertions, 101 deletions
diff --git a/pkgs/os-specific/linux/cpuid/default.nix b/pkgs/os-specific/linux/cpuid/default.nix
index 73e38d885e7..70d5b195d9b 100644
--- a/pkgs/os-specific/linux/cpuid/default.nix
+++ b/pkgs/os-specific/linux/cpuid/default.nix
@@ -6,11 +6,11 @@
 
 stdenv.mkDerivation rec {
   pname = "cpuid";
-  version = "20220927";
+  version = "20221003";
 
   src = fetchurl {
     url = "http://etallen.com/cpuid/${pname}-${version}.src.tar.gz";
-    sha256 = "sha256-sykaiTRIJgKGgaIoBgUpIMDzSY0Jn/3OP2P1Z6HqQOw=";
+    sha256 = "sha256-Y8TFwGtWglgrou7Jbuom14MngqeJWSu5XE5P1icKgwc=";
   };
 
   # For pod2man during the build process.
diff --git a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix
index fb9d3a9a36c..cc906b763e8 100644
--- a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix
+++ b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix
@@ -1,13 +1,13 @@
 { lib
-, flutter
+, flutter2
 , fetchFromGitHub
 }:
 
-flutter.mkFlutterApp {
+flutter2.mkFlutterApp {
   pname = "firmware-updater";
   version = "unstable";
 
-  vendorHash = "sha256-3wVA9BLCnMijC0gOmskz+Hv7NQIGu/jhBDbWjmoq1Tc=";
+  vendorHash = "sha256-7uOiebGBcX61oUyNCi1h9KldTRTrCfYaHUQSH4J5OoQ=";
 
   src = fetchFromGitHub {
     owner = "canonical";
diff --git a/pkgs/os-specific/linux/iproute/mptcp.nix b/pkgs/os-specific/linux/iproute/mptcp.nix
deleted file mode 100644
index e43af52bb34..00000000000
--- a/pkgs/os-specific/linux/iproute/mptcp.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ lib, iproute2, fetchFromGitHub, fetchpatch }:
-
-iproute2.overrideAttrs (oa: rec {
-  pname = "iproute_mptcp";
-  version = "0.95";
-
-  src = fetchFromGitHub {
-    owner = "multipath-tcp";
-    repo = "iproute-mptcp";
-    rev = "mptcp_v${version}";
-    sha256 = "07fihvwlaj0ng8s8sxqhd0a9h1narcnp4ibk88km9cpsd32xv4q3";
-  };
-
-  preConfigure = oa.preConfigure + ''
-    patchShebangs configure
-  '';
-
-  patches = [
-    # We override "patches" to never apply any iproute2 patches:
-  ] ++ [
-    # iproute-mptcp patches:
-
-    # Pull upstream fix for -fno-common toolchain support:
-    #   https://github.com/multipath-tcp/iproute-mptcp/pull/8
-    (fetchpatch {
-      name = "fno-common.patch";
-      url = "https://github.com/multipath-tcp/iproute-mptcp/commit/7aebfde8624c978f6f73b03142892f802d21cc0b.patch";
-      sha256 = "098402sjdm10r9xggz6naygnfjs74d9k3s2wc2aczx0d2zayhff8";
-    })
-  ];
-
-  meta = with lib; {
-    homepage = "https://github.com/multipath-tcp/iproute-mptcp";
-    description = "IP-Route extensions for MultiPath TCP";
-    license = licenses.gpl2;
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ teto ];
-    priority = 2;
-  };
-})
diff --git a/pkgs/os-specific/linux/kernel/linux-mptcp-95.nix b/pkgs/os-specific/linux/kernel/linux-mptcp-95.nix
deleted file mode 100644
index a6a8d4936d4..00000000000
--- a/pkgs/os-specific/linux/kernel/linux-mptcp-95.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ lib, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
-let
-  mptcpVersion = "0.95.1";
-  modDirVersion = "4.19.126";
-in
-buildLinux ({
-  version = "${modDirVersion}-mptcp_v${mptcpVersion}";
-  inherit modDirVersion;
-
-  extraMeta = {
-    branch = "4.19";
-    maintainers = with lib.maintainers; [ teto layus ];
-  };
-
-  src = fetchFromGitHub {
-    owner = "multipath-tcp";
-    repo = "mptcp";
-    rev = "v${mptcpVersion}";
-    sha256 = "sha256-J9UXhkI49cq83EtojLHieRtp8fT3LXTJNIqb+mUwZdM=";
-  };
-
-  structuredExtraConfig = lib.mkMerge [
-    (import ./mptcp-config.nix { inherit lib; })
-    structuredExtraConfig
-  ];
-
-} // args)
diff --git a/pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix b/pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
index a1748156d09..6c3e739e27d 100644
--- a/pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
+++ b/pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
@@ -1,9 +1,9 @@
 { lib
 , fetchpatch
 , kernel
-, date ? "2022-04-25"
-, commit ? "bdf6d7c1350497bc7b0be6027a51d9330645672d"
-, diffHash ? "09bcbklvfj9i9czjdpix2iz7fvjksmavaljx8l92ay1i9fapjmhc"
+, commitDate ? "2022-09-28"
+, currentCommit ? "24c6361e202cc09de0159505eb3ab3ca265520d8"
+, diffHash ? "sha256-Y3uKkVMCaLGJpYb27ef3FfbqEQ32mgCVpWtYzvYamr8="
 , kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
 , argsOverride ? {}
 , ...
@@ -12,21 +12,20 @@
 # NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
 (kernel.override ( args // {
   argsOverride = {
-    version = "${kernel.version}-bcachefs-unstable-${date}";
+    version = "${kernel.version}-bcachefs-unstable-${commitDate}";
 
     extraMeta = {
       branch = "master";
       maintainers = with lib.maintainers; [ davidak Madouura ];
-      broken = true;
     };
   } // argsOverride;
 
   kernelPatches = [ {
-      name = "bcachefs-${commit}";
+      name = "bcachefs-${currentCommit}";
 
       patch = fetchpatch {
-        name = "bcachefs-${commit}.diff";
-        url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${commit}&id2=v${lib.versions.majorMinor kernel.version}";
+        name = "bcachefs-${currentCommit}.diff";
+        url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${currentCommit}&id2=v${lib.versions.majorMinor kernel.version}";
         sha256 = diffHash;
       };
 
diff --git a/pkgs/os-specific/linux/libbpf/0.x.nix b/pkgs/os-specific/linux/libbpf/0.x.nix
index 2c15e3d49ee..480e78d0803 100644
--- a/pkgs/os-specific/linux/libbpf/0.x.nix
+++ b/pkgs/os-specific/linux/libbpf/0.x.nix
@@ -7,6 +7,11 @@
 , nixosTests
 }:
 
+# update bot does not seem to limit updates here to 0.8.x despite
+# the all-packages derivation being libbpf_0 as the libbpf base alias
+# is still present: just disable it for 0.x:
+# nixpkgs-update: no auto update
+
 stdenv.mkDerivation rec {
   pname = "libbpf";
   version = "0.8.1";
diff --git a/pkgs/os-specific/linux/net-tools/mptcp.nix b/pkgs/os-specific/linux/net-tools/mptcp.nix
deleted file mode 100644
index b4ce59a7c68..00000000000
--- a/pkgs/os-specific/linux/net-tools/mptcp.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{ lib, nettools, fetchFromGitHub  }:
-
-nettools.overrideAttrs(oa: rec {
-  pname = "net-tools-mptcp";
-  version = "0.95";
-
-  src = fetchFromGitHub {
-    owner = "multipath-tcp";
-    repo = "net-tools";
-    rev = "mptcp_v${version}";
-    sha256 = "0i7gr1y699nc7j9qllsx8kicqkpkhw51x4chcmyl5xs06b2mdjri";
-  };
-
-  meta = with lib; {
-    homepage = "https://github.com/multipath-tcp/net-tools";
-    description = "A set of tools for controlling the network subsystem in Linux";
-    license = licenses.gpl2Plus;
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ teto ];
-  };
-})
diff --git a/pkgs/os-specific/linux/nvidia-x11/generic.nix b/pkgs/os-specific/linux/nvidia-x11/generic.nix
index b694dc1fd0c..351d71ab8e2 100644
--- a/pkgs/os-specific/linux/nvidia-x11/generic.nix
+++ b/pkgs/os-specific/linux/nvidia-x11/generic.nix
@@ -115,6 +115,7 @@ let
       };
       persistenced = mapNullable (hash: callPackage (import ./persistenced.nix self hash) { }) persistencedSha256;
       inherit persistencedVersion settingsVersion;
+      compressFirmware = false;
     } // optionalAttrs (!i686bundled) {
       inherit lib32;
     };
diff --git a/pkgs/os-specific/linux/prl-tools/default.nix b/pkgs/os-specific/linux/prl-tools/default.nix
index 1f042f76fe0..ee66dca354c 100644
--- a/pkgs/os-specific/linux/prl-tools/default.nix
+++ b/pkgs/os-specific/linux/prl-tools/default.nix
@@ -34,6 +34,10 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-yrCg3qr96SUCHmT3IAF79/Ha+L82V3nIC6Hb5ugXoGk=";
   };
 
+  patches = lib.optionals (lib.versionAtLeast kernel.version "6.0") [
+    ./prl-tools-6.0.patch
+  ];
+
   hardeningDisable = [ "pic" "format" ];
 
   nativeBuildInputs = [ p7zip undmg perl bbe autoPatchelfHook ]
diff --git a/pkgs/os-specific/linux/prl-tools/prl-tools-6.0.patch b/pkgs/os-specific/linux/prl-tools/prl-tools-6.0.patch
new file mode 100644
index 00000000000..f0bd00d24e0
--- /dev/null
+++ b/pkgs/os-specific/linux/prl-tools/prl-tools-6.0.patch
@@ -0,0 +1,13 @@
+diff --git a/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c b/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
+index baa8a19..6788791 100644
+--- a/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
++++ b/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
+@@ -306,7 +306,7 @@ int seq_show(struct seq_file *file, void *data)
+ 	char buf[BDEVNAME_SIZE];
+ 
+ 	fsb = list_entry((struct list_head*)data, struct frozen_sb, list);
+-	bdevname(fsb->sb->s_bdev, buf);
++	snprintf(buf, sizeof(buf), "%pg", fsb->sb->s_bdev);
+ 	seq_printf(file, "%s\n", buf);
+ 	return 0;
+ }
diff --git a/pkgs/os-specific/linux/qperf/default.nix b/pkgs/os-specific/linux/qperf/default.nix
new file mode 100644
index 00000000000..a074cde448d
--- /dev/null
+++ b/pkgs/os-specific/linux/qperf/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, lib
+, fetchFromGitHub, fetchpatch
+, autoconf, automake, perl, rdma-core }:
+
+stdenv.mkDerivation rec {
+  pname = "qperf";
+  version = "0.4.11";
+
+  src = fetchFromGitHub {
+    owner = "linux-rdma";
+    repo = "qperf";
+    rev = "v${version}";
+    hash = "sha256-x9l8xqwMDHlXRZpWt3XiqN5xyCTV5rk8jp/ClRPPECI=";
+  };
+
+  patches = [ (fetchpatch {
+    name = "version-bump.patch";
+    url = "https://github.com/linux-rdma/qperf/commit/34ec57ddb7e5ae1adfcfc8093065dff90b69a275.patch";
+    hash = "sha256-+7ckhUUB+7BG6qRKv0wgyIxkyvll2xjf3Wk1hpRsDo0=";
+  }) ];
+
+  nativeBuildInputs = [ autoconf automake perl rdma-core ];
+  buildInputs = [ rdma-core ];
+
+  postUnpack =  ''
+    patchShebangs .
+  '';
+
+  configurePhase = ''
+    runHook preConfigure
+    ./autogen.sh
+    ./configure --prefix=$out
+    runHook postConfigure
+  '';
+
+  meta = with lib; {
+    description = "Measure RDMA and IP performance";
+    homepage = "https://github.com/linux-rdma/qperf";
+    license = licenses.gpl2Only;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ edwtjo ];
+  };
+}