linuxPackages.nvidia_x11: add support for zstd compression

This commit is contained in:
Kiskae 2023-03-24 11:35:55 +01:00
parent 19cf008bb1
commit 91f99f14ff
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,7 @@ source $stdenv/setup
unpackManually() {
skip=$(sed 's/^skip=//; t; d' $src)
tail -n +$skip $src | xz -d | tar xvf -
tail -n +$skip $src | bsdtar xvf -
sourceRoot=.
}

View file

@ -20,7 +20,7 @@
}@args:
{ lib, stdenv, callPackage, pkgs, pkgsi686Linux, fetchurl
, kernel ? null, perl, nukeReferences, which
, kernel ? null, perl, nukeReferences, which, libarchive
, # Whether to build the libraries only (i.e. not the kernel module or
# nvidia-settings). Used to support 32-bit binaries on 64-bit
# Linux.
@ -98,8 +98,7 @@ let
libPath = libPathFor pkgs;
libPath32 = optionalString i686bundled (libPathFor pkgsi686Linux);
buildInputs = [ which ];
nativeBuildInputs = [ perl nukeReferences ]
nativeBuildInputs = [ perl nukeReferences which libarchive ]
++ optionals (!libsOnly) kernel.moduleBuildDependencies;
disallowedReferences = optionals (!libsOnly) [ kernel.dev ];