Merge #226795: staging-next 2023-04-18

+1890 -986
+1 -11
nixos/tests/installed-tests/pipewire.nix
··· 1 - { pkgs, lib, makeInstalledTest, ... }: 1 + { pkgs, makeInstalledTest, ... }: 2 2 3 3 makeInstalledTest { 4 4 tested = pkgs.pipewire; 5 - testConfig = { 6 - hardware.pulseaudio.enable = false; 7 - services.pipewire = { 8 - enable = true; 9 - pulse.enable = true; 10 - jack.enable = true; 11 - alsa.enable = true; 12 - alsa.support32Bit = true; 13 - }; 14 - }; 15 5 }
+4 -4
pkgs/applications/audio/fluidsynth/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake 2 2 , alsa-lib, glib, libjack2, libsndfile, libpulseaudio 3 - , AudioUnit, CoreAudio, CoreMIDI, CoreServices 3 + , AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { 7 7 pname = "fluidsynth"; 8 - version = "2.3.1"; 8 + version = "2.3.2"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "FluidSynth"; 12 12 repo = "fluidsynth"; 13 13 rev = "v${version}"; 14 - sha256 = "05lr9f0q4x1kvgfa3xrfmagpwvijv9m1s316aa9figqlkcc5vv4k"; 14 + sha256 = "sha256-BSJu3jB7b5G2ThXBUHUNnBGl55EXe3nIzdBdgfOWDSM="; 15 15 }; 16 16 17 17 nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ]; 18 18 19 19 buildInputs = [ glib libsndfile libjack2 ] 20 20 ++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] 21 - ++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ]; 21 + ++ lib.optionals stdenv.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ]; 22 22 23 23 cmakeFlags = [ 24 24 "-Denable-framework=off"
+2 -2
pkgs/applications/audio/mpg123/default.nix
··· 21 21 22 22 stdenv.mkDerivation rec { 23 23 pname = "${lib.optionalString libOnly "lib"}mpg123"; 24 - version = "1.31.2"; 24 + version = "1.31.3"; 25 25 26 26 src = fetchurl { 27 27 url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; 28 - sha256 = "sha256-sX8ikF4x9DtrQB399qce0Ru30Fb2jbRJ1wufmug5x94="; 28 + hash = "sha256-HKd9Omml/4RbegU294P+5VThBBE5prl49q/hT1gUrRo="; 29 29 }; 30 30 31 31 outputs = [ "out" ] ++ lib.optional withConplay "conplay";
+10 -1
pkgs/applications/editors/vim/default.nix
··· 15 15 stdenv.mkDerivation { 16 16 pname = "vim"; 17 17 18 - inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta; 18 + inherit (common) version src postPatch hardeningDisable enableParallelBuilding enableParallelInstalling meta; 19 19 20 20 nativeBuildInputs = [ gettext pkg-config ]; 21 21 buildInputs = [ ncurses bash gawk ] ··· 50 50 ln -s $out/bin/vim $out/bin/vi 51 51 mkdir -p $out/share/vim 52 52 cp "${vimrc}" $out/share/vim/vimrc 53 + 54 + # Prevent bugs in the upstream makefile from silently failing and missing outputs. 55 + # Some of those are build-time requirements for other packages. 56 + for tool in ex xxd vi view vimdiff; do 57 + if [ ! -e "$out/bin/$tool" ]; then 58 + echo "ERROR: install phase did not install '$tool'." 59 + exit 1 60 + fi 61 + done 53 62 ''; 54 63 55 64 __impureHostDeps = [ "/dev/ptmx" ];
+2 -1
pkgs/applications/misc/privacyidea/default.nix
··· 11 11 packageOverrides = self: super: { 12 12 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 13 13 version = "1.3.24"; 14 - src = oldAttrs.src.override { 14 + src = super.fetchPypi { 15 + inherit (oldAttrs) pname; 15 16 inherit version; 16 17 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 17 18 };
+4
pkgs/applications/networking/mailreaders/notmuch/default.nix
··· 42 42 43 43 substituteInPlace lib/Makefile.local \ 44 44 --replace '-install_name $(libdir)' "-install_name $out/lib" 45 + 46 + # do not override CFLAGS of the Makefile created by mkmf 47 + substituteInPlace bindings/Makefile.local \ 48 + --replace 'CFLAGS="$(CFLAGS) -pipe -fno-plt -fPIC"' "" 45 49 '' + lib.optionalString withEmacs '' 46 50 substituteInPlace emacs/notmuch-emacs-mua \ 47 51 --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
+3
pkgs/applications/office/libreoffice/default.nix
··· 356 356 sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/ooxmlexport/ooxmlencryption.cxx" 357 357 sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/odfexport/odfexport.cxx" 358 358 sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/unowriter/unowriter.cxx" 359 + 360 + # testReqIfTable fails since libxml2: 2.10.3 -> 2.10.4 361 + sed -e 's@.*"/html/body/div/table/tr/th".*@//&@' -i sw/qa/extras/htmlexport/htmlexport.cxx 359 362 '' 360 363 # This to avoid using /lib:/usr/lib at linking 361 364 + ''
+7 -6
pkgs/applications/version-management/git/default.nix
··· 28 28 assert svnSupport -> perlSupport; 29 29 30 30 let 31 - version = "2.39.2"; 31 + version = "2.40.0"; 32 32 svn = subversionClient.override { perlBindings = perlSupport; }; 33 33 gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; 34 34 in ··· 41 41 42 42 src = fetchurl { 43 43 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 44 - sha256 = "R1918Tc7LNTkOHBhhRdZZtXBH2jE2x5IwmJXxD3c8tY="; 44 + hash = "sha256-sXpZj79Ycp7xO1d0ZeuTstSE3xIBUYtwi1BE/2I79G0="; 45 45 }; 46 46 47 47 outputs = [ "out" ] ++ lib.optional withManual "doc"; ··· 185 185 186 186 # Fix references to the perl, sed, awk and various coreutil binaries used by 187 187 # shell scripts that git calls (e.g. filter-branch) 188 + # and completion scripts 188 189 SCRIPT="$(cat <<'EOS' 189 190 BEGIN{ 190 191 @a=( 191 192 '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk', 192 193 '${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname', 193 - '${coreutils}/bin/wc', '${coreutils}/bin/tr' 194 + '${coreutils}/bin/wc', '${coreutils}/bin/tr', 195 + '${coreutils}/bin/ls' 194 196 ${lib.optionalString perlSupport ", '${perlPackages.perl}/bin/perl'"} 195 197 ); 196 198 } ··· 201 203 EOS 202 204 )" 203 205 perl -0777 -i -pe "$SCRIPT" \ 204 - $out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,submodule,subtree,web--browse} 206 + $out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,submodule,subtree,web--browse} \ 207 + $out/share/bash-completion/completions/{git,gitk} 205 208 206 209 207 210 # Also put git-http-backend into $PATH, so that we can use smart ··· 213 216 makeWrapper "$out/share/git/contrib/credential/netrc/git-credential-netrc.perl" $out/bin/git-credential-netrc \ 214 217 --set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 215 218 wrapProgram $out/libexec/git-core/git-cvsimport \ 216 - --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 217 - wrapProgram $out/libexec/git-core/git-add--interactive \ 218 219 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 219 220 wrapProgram $out/libexec/git-core/git-archimport \ 220 221 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}"
+3 -2
pkgs/applications/version-management/gitlab/default.nix
··· 1 1 { stdenv, lib, fetchurl, fetchpatch, fetchFromGitLab, bundlerEnv 2 - , ruby, tzdata, git, nettools, nixosTests, nodejs, openssl 2 + , ruby_2_7, tzdata, git, nettools, nixosTests, nodejs, openssl 3 3 , gitlabEnterprise ? false, callPackage, yarn 4 4 , fixup_yarn_lock, replace, file, cacert, fetchYarnDeps, makeWrapper, pkg-config 5 5 }: ··· 17 17 18 18 rubyEnv = bundlerEnv rec { 19 19 name = "gitlab-env-${version}"; 20 - inherit ruby; 20 + # GitLab doesn't support Ruby 3 https://gitlab.com/groups/gitlab-org/-/epics/5149 21 + ruby = ruby_2_7; 21 22 gemdir = ./rubyEnv; 22 23 gemset = 23 24 let x = import (gemdir + "/gemset.nix") src;
+2
pkgs/applications/version-management/subversion/default.nix
··· 61 61 (lib.withFeatureAs httpSupport "serf" serf) 62 62 "--with-zlib=${zlib.dev}" 63 63 "--with-sqlite=${sqlite.dev}" 64 + "--with-apr=${apr.dev}" 65 + "--with-apr-util=${aprutil.dev}" 64 66 ] ++ lib.optionals javahlBindings [ 65 67 "--enable-javahl" 66 68 "--with-jdk=${jdk}"
+9 -5
pkgs/applications/window-managers/dwl/default.nix
··· 9 9 , pixman 10 10 , pkg-config 11 11 , substituteAll 12 + , wayland-scanner 12 13 , wayland 13 14 , wayland-protocols 14 15 , wlroots_0_16 ··· 36 37 nativeBuildInputs = [ 37 38 installShellFiles 38 39 pkg-config 40 + wayland-scanner 39 41 ]; 40 42 41 43 buildInputs = [ ··· 61 63 else writeText "config.def.h" conf; 62 64 in lib.optionalString (conf != null) "cp ${configFile} config.def.h"; 63 65 66 + makeFlags = [ 67 + "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config" 68 + "WAYLAND_SCANNER=wayland-scanner" 69 + "PREFIX=$(out)" 70 + "MANDIR=$(man)/share/man/man1" 71 + ]; 72 + 64 73 preBuild = '' 65 74 makeFlagsArray+=( 66 75 XWAYLAND=${lib.optionalString enableXWayland "-DXWAYLAND"} 67 76 XLIBS=${lib.optionalString enableXWayland "xcb\\ xcb-icccm"} 68 77 ) 69 78 ''; 70 - 71 - installFlags = [ 72 - "PREFIX=$(out)" 73 - "MANDIR=$(man)/share/man/man1" 74 - ]; 75 79 76 80 meta = { 77 81 homepage = "https://github.com/djpohly/dwl/";
+4
pkgs/applications/window-managers/labwc/default.nix
··· 8 8 , libxcb 9 9 , libxkbcommon 10 10 , libxml2 11 + , gettext 11 12 , meson 12 13 , ninja 13 14 , pango 14 15 , pkg-config 15 16 , scdoc 17 + , wayland-scanner 16 18 , wayland 17 19 , wayland-protocols 18 20 , wlroots_0_16 ··· 35 37 }; 36 38 37 39 nativeBuildInputs = [ 40 + gettext 38 41 meson 39 42 ninja 40 43 pkg-config 41 44 scdoc 45 + wayland-scanner 42 46 ]; 43 47 44 48 buildInputs = [
+7 -1
pkgs/applications/window-managers/sway/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, substituteAll, swaybg 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, swaybg 2 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 3 , wayland, libxkbcommon, pcre2, json_c, libevdev 4 4 , pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg ··· 37 37 (substituteAll { 38 38 src = ./fix-paths.patch; 39 39 inherit swaybg; 40 + }) 41 + 42 + (fetchpatch { 43 + name = "LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM.patch"; 44 + url = "https://github.com/swaywm/sway/commit/dee032d0a0ecd958c902b88302dc59703d703c7f.diff"; 45 + hash = "sha256-dx+7MpEiAkxTBnJcsT3/1BO8rYRfNLecXmpAvhqGMD0="; 40 46 }) 41 47 ] ++ lib.optionals (!isNixOS) [ 42 48 # References to /nix/store/... will get GC'ed which causes problems when
+1
pkgs/applications/window-managers/wayfire/default.nix
··· 73 73 "--sysconfdir /etc" 74 74 "-Duse_system_wlroots=enabled" 75 75 "-Duse_system_wfconfig=enabled" 76 + (lib.mesonEnable "wf-touch:tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform)) 76 77 ]; 77 78 78 79 passthru.providedSessions = [ "wayfire" ];
+4
pkgs/applications/window-managers/wayfire/wf-config.nix
··· 44 44 # CMake is just used for finding doctest. 45 45 dontUseCmakeConfigure = true; 46 46 47 + mesonFlags = [ 48 + (lib.mesonEnable "tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform)) 49 + ]; 50 + 47 51 doCheck = true; 48 52 49 53 meta = with lib; {
+2 -4
pkgs/build-support/cc-wrapper/default.nix
··· 17 17 , isGNU ? false, isClang ? cc.isClang or false, isCcache ? cc.isCcache or false, gnugrep ? null 18 18 , buildPackages ? {} 19 19 , libcxx ? null 20 - , grossHackForStagingNext ? false 21 20 22 21 # Whether or not to add `-B` and `-L` to `nix-support/cc-{c,ld}flags` 23 22 , useCcForLibs ? ··· 52 51 53 52 # the derivation at which the `-B` and `-L` flags added by `useCcForLibs` will point 54 53 , gccForLibs ? if useCcForLibs then cc else null 55 - , tmpDropB ? false # temporary hack; see PR #225846 56 54 }: 57 55 58 56 with lib; ··· 336 334 ## 337 335 ## GCC libs for non-GCC support 338 336 ## 339 - + optionalString (useGccForLibs && !tmpDropB) '' 337 + + optionalString (useGccForLibs && isClang) '' 340 338 341 339 echo "-B${gccForLibs}/lib/gcc/${targetPlatform.config}/${gccForLibs.version}" >> $out/nix-support/cc-cflags 342 340 '' ··· 415 413 # already knows how to find its own libstdc++, and adding 416 414 # additional -isystem flags will confuse gfortran (see 417 415 # https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1500550903) 418 - + optionalString (libcxx == null && (if grossHackForStagingNext then isClang else true) && (useGccForLibs && gccForLibs.langCC or false)) '' 416 + + optionalString (libcxx == null && isClang && (useGccForLibs && gccForLibs.langCC or false)) '' 419 417 for dir in ${gccForLibs}${lib.optionalString (hostPlatform != targetPlatform) "/${targetPlatform.config}"}/include/c++/*; do 420 418 echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags 421 419 done
+15 -5
pkgs/build-support/setup-hooks/auto-patchelf.py
··· 167 167 found: bool = False # Whether it was found somewhere 168 168 169 169 170 - def auto_patchelf_file(path: Path, runtime_deps: list[Path]) -> list[Dependency]: 170 + def auto_patchelf_file(path: Path, runtime_deps: list[Path], append_rpaths: List[Path] = []) -> list[Dependency]: 171 171 try: 172 172 with open_elf(path) as elf: 173 173 ··· 235 235 dependencies.append(Dependency(path, dep, False)) 236 236 print(f" {dep} -> not found!") 237 237 238 + rpath.extend(append_rpaths) 239 + 238 240 # Dedup the rpath 239 241 rpath_str = ":".join(dict.fromkeys(map(Path.as_posix, rpath))) 240 242 ··· 251 253 paths_to_patch: List[Path], 252 254 lib_dirs: List[Path], 253 255 runtime_deps: List[Path], 254 - recursive: bool =True, 255 - ignore_missing: List[str] = []) -> None: 256 + recursive: bool = True, 257 + ignore_missing: List[str] = [], 258 + append_rpaths: List[Path] = []) -> None: 256 259 257 260 if not paths_to_patch: 258 261 sys.exit("No paths to patch, stopping.") ··· 265 268 dependencies = [] 266 269 for path in chain.from_iterable(glob(p, '*', recursive) for p in paths_to_patch): 267 270 if not path.is_symlink() and path.is_file(): 268 - dependencies += auto_patchelf_file(path, runtime_deps) 271 + dependencies += auto_patchelf_file(path, runtime_deps, append_rpaths) 269 272 270 273 missing = [dep for dep in dependencies if not dep.found] 271 274 ··· 312 315 parser.add_argument( 313 316 "--runtime-dependencies", nargs="*", type=Path, 314 317 help="Paths to prepend to the runtime path of executable binaries.") 318 + parser.add_argument( 319 + "--append-rpaths", 320 + nargs="*", 321 + type=Path, 322 + help="Paths to append to all runtime paths unconditionally", 323 + ) 315 324 316 325 print("automatically fixing dependencies for ELF files") 317 326 args = parser.parse_args() ··· 322 331 args.libs, 323 332 args.runtime_dependencies, 324 333 args.recursive, 325 - args.ignore_missing) 334 + args.ignore_missing, 335 + append_rpaths=args.append_rpaths) 326 336 327 337 328 338 interpreter_path: Path = None # type: ignore
+3 -1
pkgs/build-support/setup-hooks/auto-patchelf.sh
··· 61 61 ignoreMissingDepsArray=( "*" ) 62 62 fi 63 63 64 + local appendRunpathsArray=($appendRunpaths) 64 65 local runtimeDependenciesArray=($runtimeDependencies) 65 66 @pythonInterpreter@ @autoPatchelfScript@ \ 66 67 ${norecurse:+--no-recurse} \ ··· 68 69 --paths "$@" \ 69 70 --libs "${autoPatchelfLibs[@]}" \ 70 71 "${extraAutoPatchelfLibs[@]}" \ 71 - --runtime-dependencies "${runtimeDependenciesArray[@]/%//lib}" 72 + --runtime-dependencies "${runtimeDependenciesArray[@]/%//lib}" \ 73 + --append-rpaths "${appendRunpathsArray[@]}" 72 74 } 73 75 74 76 # XXX: This should ultimately use fixupOutputHooks but we currently don't have
+2 -2
pkgs/build-support/setup-hooks/strip.sh
··· 39 39 if [[ "${dontStrip-}" || "${flag-}" ]] || ! type -f "${stripCmd-}" 2>/dev/null 1>&2 40 40 then continue; fi 41 41 42 - stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S}" 43 - stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s}" 42 + stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}" 43 + stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}" 44 44 done 45 45 } 46 46
+6
pkgs/development/compilers/cudatoolkit/redist/build-cuda-redist-package.nix
··· 38 38 stdenv.cc.cc.lib 39 39 ]; 40 40 41 + # Picked up by autoPatchelf 42 + # Needed e.g. for libnvrtc to locate (dlopen) libnvrtc-builtins 43 + appendRunpaths = [ 44 + "$ORIGIN" 45 + ]; 46 + 41 47 dontBuild = true; 42 48 43 49 # TODO: choose whether to install static/dynamic libs
+1 -1
pkgs/development/compilers/gcc/12/default.nix
··· 29 29 , buildPackages 30 30 , libxcrypt 31 31 , disableGdbPlugin ? !enablePlugin 32 - , disableBootstrap ? !stdenv.hostPlatform.isDarwin 33 32 , nukeReferences 34 33 , callPackage 35 34 }: ··· 57 56 58 57 let majorVersion = "12"; 59 58 version = "${majorVersion}.2.0"; 59 + disableBootstrap = !stdenv.hostPlatform.isDarwin; 60 60 61 61 inherit (stdenv) buildPlatform hostPlatform targetPlatform; 62 62
+1 -1
pkgs/development/compilers/gcc/builder.sh
··· 262 262 fi 263 263 264 264 # Get rid of some "fixed" header files 265 - rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h} 265 + rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h,bits/statx.h} 266 266 267 267 # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. 268 268 for i in $out/bin/*-gcc*; do
+4 -1
pkgs/development/compilers/gcc/common/configure-flags.nix
··· 44 44 inherit (stdenv) 45 45 buildPlatform hostPlatform targetPlatform; 46 46 47 + # See https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1500550903 48 + disableBootstrap' = disableBootstrap && !langFortran; 49 + 47 50 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; 48 51 crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem"; 49 52 ··· 217 220 # TODO: aarch64-darwin has clang stdenv and its arch and cpu flag values are incompatible with gcc 218 221 ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) (import ../common/platform-flags.nix { inherit (stdenv) targetPlatform; inherit lib; }) 219 222 ++ lib.optionals (targetPlatform != hostPlatform) crossConfigureFlags 220 - ++ lib.optional disableBootstrap "--disable-bootstrap" 223 + ++ lib.optional disableBootstrap' "--disable-bootstrap" 221 224 222 225 # Platform-specific flags 223 226 ++ lib.optional (targetPlatform == hostPlatform && targetPlatform.isx86_32) "--with-arch=${stdenv.hostPlatform.parsed.cpu.name}"
+16 -4
pkgs/development/compilers/gcc/common/platform-flags.nix
··· 1 1 { lib, targetPlatform }: 2 2 3 3 let 4 - p = targetPlatform.gcc or {} 4 + gcc = targetPlatform.gcc or {}; 5 + p = gcc 5 6 // targetPlatform.parsed.abi; 6 7 in lib.concatLists [ 7 8 (lib.optional (!targetPlatform.isx86_64 && p ? arch) "--with-arch=${p.arch}") # --with-arch= is unknown flag on x86_64 ··· 10 11 (lib.optional (p ? fpu) "--with-fpu=${p.fpu}") 11 12 (lib.optional (p ? float) "--with-float=${p.float}") 12 13 (lib.optional (p ? mode) "--with-mode=${p.mode}") 13 - (lib.optional 14 - (let tp = targetPlatform; in tp.isPower && tp.libc == "glibc" && tp.is64bit) 15 - "--with-long-double-128") 14 + (lib.optionals targetPlatform.isPower64 15 + # musl explicitly rejects 128-bit long double on 16 + # powerpc64; see musl/arch/powerpc64/bits/float.h 17 + (lib.optionals 18 + (!targetPlatform.isMusl 19 + && (targetPlatform.isLittleEndian || 20 + # "... --with-long-double-format is only supported if the default cpu is power7 or newer" 21 + # https://github.com/NixOS/nixpkgs/pull/170215#issuecomment-1202164709 22 + (lib.lists.elem 23 + (lib.strings.substring 0 6 (p.cpu or "")) 24 + [ "power7" "power8" "power9" "power1"/*0, 11, etc*/ ]))) [ 25 + "--with-long-double-128" 26 + "--with-long-double-format=${gcc.long-double-format or "ieee"}" 27 + ])) 16 28 ]
+2 -3
pkgs/development/compilers/llvm/13/default.nix
··· 1 1 { lowPrio, newScope, pkgs, lib, stdenv, cmake 2 - , stdenv-tmpDropB 3 2 , gccForLibs, preLibcCrossHeaders 4 3 , libxml2, python3, isl, fetchFromGitHub, overrideCC, wrapCCWith, wrapBintoolsWith 5 4 , buildLlvmTools # tools, but from the previous stage, for cross ··· 237 236 inherit llvm_meta; 238 237 stdenv = if stdenv.hostPlatform.useLLVM or false 239 238 then overrideCC stdenv buildLlvmTools.clangNoCompilerRtWithLibc 240 - else stdenv-tmpDropB; 239 + else stdenv; 241 240 }; 242 241 243 242 compiler-rt-no-libc = callPackage ./compiler-rt { 244 243 inherit llvm_meta; 245 244 stdenv = if stdenv.hostPlatform.useLLVM or false 246 245 then overrideCC stdenv buildLlvmTools.clangNoCompilerRt 247 - else stdenv-tmpDropB; 246 + else stdenv; 248 247 }; 249 248 250 249 # N.B. condition is safe because without useLLVM both are the same.
-3
pkgs/development/compilers/llvm/rocm/default.nix
··· 1 1 { lib 2 2 , stdenv 3 - , stdenv-tmpDropB 4 3 , callPackage 5 4 , overrideCC 6 5 , wrapCCWith ··· 79 78 80 79 # Runtimes 81 80 runtimes = callPackage ./llvm.nix { 82 - stdenv = stdenv-tmpDropB; 83 - 84 81 buildDocs = false; 85 82 buildMan = false; 86 83 buildTests = false;
+12 -2
pkgs/development/compilers/rust/1_68.nix
··· 17 17 , makeRustPlatform 18 18 , llvmPackages_11 19 19 , llvmPackages_15, llvm_15 20 + , fetchpatch 20 21 } @ args: 21 22 22 23 import ./default.nix { ··· 57 58 58 59 selectRustPackage = pkgs: pkgs.rust_1_68; 59 60 60 - rustcPatches = [ ]; 61 + rustcPatches = [ 62 + # Fixes ICE. 63 + # https://github.com/rust-lang/rust/pull/107688 64 + (fetchpatch { 65 + name = "re-erased-regions-are-local.patch"; 66 + url = "https://github.com/rust-lang/rust/commit/9d110847ab7f6aef56a8cd20cb6cea4fbcc51cd9.patch"; 67 + excludes = [ "*tests/*" ]; 68 + hash = "sha256-EZH5K1BEOOfi97xZr1xEHFP4jjvJ1+xqtRMvxBoL8pU="; 69 + }) 70 + ]; 61 71 } 62 72 63 - (builtins.removeAttrs args [ "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"]) 73 + (builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"])
+1 -1
pkgs/development/compilers/rust/rustc.nix
··· 21 21 inherit (lib) optionals optional optionalString concatStringsSep; 22 22 inherit (darwin.apple_sdk.frameworks) Security; 23 23 in stdenv.mkDerivation rec { 24 - pname = "rustc"; 24 + pname = "${pkgsBuildTarget.targetPackages.stdenv.cc.targetPrefix}rustc"; 25 25 inherit version; 26 26 27 27 src = fetchurl {
+4
pkgs/development/compilers/sbcl/2.x.nix
··· 26 26 "2.3.0" = { 27 27 sha256 = "sha256-v3Q5SXEq4Cy3ST87i1fOJBlIv2ETHjaGDdszTaFDnJc="; 28 28 }; 29 + 30 + "2.3.2" = { 31 + sha256 = "sha256-RMwWLPpjMqmojHoSHRkDiCikuk9r/7d+8cexdAfLHqo="; 32 + }; 29 33 }; 30 34 31 35 in with versionMap.${version};
+4 -4
pkgs/development/interpreters/python/default.nix
··· 121 121 sourceVersion = { 122 122 major = "3"; 123 123 minor = "10"; 124 - patch = "10"; 124 + patch = "11"; 125 125 suffix = ""; 126 126 }; 127 - hash = "sha256-BBnpCFv1G3pnIAmz9Q2/GFms3xi6cl0OwZqlyFA/DqM="; 127 + hash = "sha256-PDvDBIMDchyQSgPrgya2Mekh8RzDvimIRWpC8RXa8Ew="; 128 128 }; 129 129 130 130 python311 = { 131 131 sourceVersion = { 132 132 major = "3"; 133 133 minor = "11"; 134 - patch = "2"; 134 + patch = "3"; 135 135 suffix = ""; 136 136 }; 137 - hash = "sha256-KeS49fFlhUKowT4t0nc1jJxI8rL3MYZS7xZ15AK50q8="; 137 + hash = "sha256-il25nJYafs8nx1lWGJyWAslodR8R2+riuQDb/xwIW14="; 138 138 }; 139 139 }; 140 140
+1 -1
pkgs/development/interpreters/ruby/default.nix
··· 51 51 , buildEnv, bundler, bundix 52 52 , libiconv, libobjc, libunwind, Foundation 53 53 , makeBinaryWrapper, buildRubyGem, defaultGemConfig 54 - , baseRuby ? buildPackages.ruby_3_1.override { 54 + , baseRuby ? buildPackages.ruby.override { 55 55 docSupport = false; 56 56 rubygemsSupport = false; 57 57 }
+2 -2
pkgs/development/interpreters/ruby/rubygems/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "rubygems"; 5 - version = "3.4.8"; 5 + version = "3.4.12"; 6 6 7 7 src = fetchurl { 8 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 - sha256 = "sha256-0FlDZJNJJGVkvBmKWNBqNRaTto6ciCOuQEK6uq6dotQ="; 9 + sha256 = "sha256-WFCnwvw4DN09pwShznuwSNQtSACTPfULiSAmW1hF4Vs="; 10 10 }; 11 11 12 12 patches = [
+7 -5
pkgs/development/libraries/SDL2/default.nix
··· 23 23 , wayland 24 24 , wayland-protocols 25 25 , wayland-scanner 26 - , drmSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid 26 + , drmSupport ? false 27 27 , libdrm 28 28 , mesa 29 29 , libxkbcommon ··· 86 86 87 87 nativeBuildInputs = [ pkg-config ] ++ lib.optionals waylandSupport [ wayland wayland-scanner ]; 88 88 89 - propagatedBuildInputs = dlopenPropagatedBuildInputs; 90 - 91 89 dlopenPropagatedBuildInputs = [ ] 92 90 # Propagated for #include <GLES/gl.h> in SDL_opengles.h. 93 91 ++ lib.optional openglSupport libGL 94 92 # Propagated for #include <X11/Xlib.h> and <X11/Xatom.h> in SDL_syswm.h. 95 - ++ lib.optionals x11Support [ libX11 xorgproto ]; 93 + ++ lib.optionals x11Support [ libX11 ]; 94 + 95 + propagatedBuildInputs = lib.optionals x11Support [ xorgproto ] 96 + ++ dlopenPropagatedBuildInputs; 96 97 97 98 dlopenBuildInputs = lib.optionals alsaSupport [ alsa-lib audiofile ] 98 99 ++ lib.optional dbusSupport dbus ··· 100 101 ++ lib.optional pipewireSupport pipewire 101 102 ++ lib.optional pulseaudioSupport libpulseaudio 102 103 ++ lib.optional udevSupport udev 103 - ++ lib.optionals waylandSupport [ wayland wayland-protocols libxkbcommon ] 104 + ++ lib.optionals waylandSupport [ wayland libxkbcommon ] 104 105 ++ lib.optionals x11Support [ libICE libXi libXScrnSaver libXcursor libXinerama libXext libXrandr libXxf86vm ] 105 106 ++ lib.optionals drmSupport [ libdrm mesa ]; 106 107 107 108 buildInputs = [ libiconv ] 108 109 ++ dlopenBuildInputs 109 110 ++ lib.optional ibusSupport ibus 111 + ++ lib.optionals waylandSupport [ wayland-protocols ] 110 112 ++ lib.optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ]; 111 113 112 114 enableParallelBuilding = true;
+2
pkgs/development/libraries/apr-util/default.nix
··· 48 48 lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 49 49 substituteInPlace Makefile \ 50 50 --replace "-ldb-6.9" "-ldb" 51 + substituteInPlace apu-1-config \ 52 + --replace "-ldb-6.9" "-ldb" 51 53 ''; 52 54 53 55 propagatedBuildInputs = [ apr expat libiconv libxcrypt ]
+2
pkgs/development/libraries/audiofile/default.nix
··· 26 26 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"; 27 27 }; 28 28 29 + outputs = [ "out" "dev" "man" ]; 30 + 29 31 # fix build with gcc9 30 32 NIX_CFLAGS_LINK = lib.optional (stdenv.system == "i686-linux") "-lgcc"; 31 33
+2
pkgs/development/libraries/celt/generic.nix
··· 12 12 13 13 inherit src; 14 14 15 + outputs = [ "out" "dev" ]; 16 + 15 17 inherit prePatch; 16 18 17 19 buildInputs = []
+8
pkgs/development/libraries/directfb/default.nix
··· 25 25 }) 26 26 ]; 27 27 28 + postPatch = '' 29 + # https://github.com/deniskropp/DirectFB/blob/master/src/core/Makefile.am#L15 30 + # BUILDTIME is embedded in the result 31 + # if switching to cmake then a similar substitution has to be done 32 + substituteInPlace src/core/Makefile.am \ 33 + --replace '`date -u "+%Y-%m-%d %H:%M"`' "`date -u \"+%Y-%m-%d %H:%M\" --date="@''${SOURCE_DATE_EPOCH}"`" 34 + ''; 35 + 28 36 nativeBuildInputs = [ autoreconfHook perl pkg-config flux ]; 29 37 30 38 buildInputs = [ zlib libjpeg freetype giflib libpng ]
+2 -2
pkgs/development/libraries/directx-headers/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, meson, ninja }: 2 2 stdenv.mkDerivation rec { 3 3 pname = "directx-headers"; 4 - version = "1.608.2b"; 4 + version = "1.610.0"; 5 5 6 6 src = fetchFromGitHub { 7 7 owner = "microsoft"; 8 8 repo = "DirectX-Headers"; 9 9 rev = "v${version}"; 10 - hash = "sha256-o4p8L2VKvMHdu1L2I1JI6pwIRtnyVCoKebg9yKTk1T8="; 10 + hash = "sha256-lPYXAMFSyU3FopWdE6dDRWD6sVKcjxDVsTbgej/T2sk="; 11 11 }; 12 12 13 13 nativeBuildInputs = [ meson ninja ];
+2 -2
pkgs/development/libraries/egl-wayland/default.nix
··· 7 7 , wayland-scanner 8 8 , libGL 9 9 , libX11 10 - , mesa 10 + , libdrm 11 11 , wayland 12 12 , wayland-protocols 13 13 }: ··· 68 68 eglexternalplatform 69 69 libGL 70 70 libX11 71 - mesa 71 + libdrm 72 72 wayland 73 73 wayland-protocols 74 74 ];
+5 -1
pkgs/development/libraries/ffmpeg/generic.nix
··· 52 52 , withIlbc ? withFullDeps 53 53 , withJack ? withFullDeps && !stdenv.isDarwin # Jack audio 54 54 , withLadspa ? withFullDeps # LADSPA audio filtering 55 + , withLibplacebo ? withFullDeps && !stdenv.isDarwin # libplacebo video processing library 55 56 , withLzma ? withHeadlessDeps # xz-utils 56 57 , withMfx ? withFullDeps && (with stdenv.targetPlatform; isLinux && !isAarch) # Hardware acceleration via intel-media-sdk/libmfx 57 58 , withModplug ? withFullDeps && !stdenv.isDarwin # ModPlug support ··· 209 210 , libogg 210 211 , libopenmpt 211 212 , libopus 213 + , libplacebo 212 214 , librsvg 213 215 , libssh 214 216 , libtheora ··· 288 290 */ 289 291 290 292 let 291 - inherit (lib) optional optionals optionalString enableFeature; 293 + inherit (lib) optional optionals optionalString enableFeature versionAtLeast; 292 294 in 293 295 294 296 ··· 469 471 (enableFeature withModplug "libmodplug") 470 472 (enableFeature withMysofa "libmysofa") 471 473 (enableFeature withOpus "libopus") 474 + (optionalString (versionAtLeast version "5.0" && withLibplacebo) "--enable-libplacebo") 472 475 (enableFeature withSvg "librsvg") 473 476 (enableFeature withSrt "libsrt") 474 477 (enableFeature withSsh "libssh") ··· 571 574 ++ optionals withIconv [ libiconv ] # On Linux this should be in libc, do we really need it? 572 575 ++ optionals withJack [ libjack2 ] 573 576 ++ optionals withLadspa [ ladspaH ] 577 + ++ optionals withLibplacebo [ libplacebo vulkan-headers ] 574 578 ++ optionals withLzma [ xz ] 575 579 ++ optionals withMfx [ intel-media-sdk ] 576 580 ++ optionals withModplug [ libmodplug ]
+11 -1
pkgs/development/libraries/gettext/default.nix
··· 1 - { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }: 1 + { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash 2 + , gnulib 3 + }: 2 4 3 5 # Note: this package is used for bootstrapping fetchurl, and thus 4 6 # cannot use fetchpatch! All mutable patches (generated by GitHub or ··· 45 47 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 46 48 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 47 49 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 50 + '' + 51 + # This change to gettext's vendored copy of gnulib is already 52 + # merged upstream; we can drop this patch on the next version 53 + # bump. It must be applied twice because gettext vendors gnulib 54 + # not once, but twice! 55 + '' 56 + patch -p2 -d gettext-tools/gnulib-lib/ < ${gnulib.passthru.longdouble-redirect-patch} 57 + patch -p2 -d gettext-tools/libgrep/ < ${gnulib.passthru.longdouble-redirect-patch} 48 58 ''; 49 59 50 60 strictDeps = true;
+7
pkgs/development/libraries/glibc/default.nix
··· 63 63 # Same for musl: https://github.com/NixOS/nixpkgs/issues/78805 64 64 "-Wno-error=missing-attributes" 65 65 ]) 66 + (lib.optionals (stdenv.hostPlatform.isPower64) [ 67 + # Do not complain about the Processor Specific ABI (i.e. the 68 + # choice to use IEEE-standard `long double`). We pass this 69 + # flag in order to mute a `-Werror=psabi` passed by glibc; 70 + # hopefully future glibc releases will not pass that flag. 71 + "-Wno-error=psabi" 72 + ]) 66 73 ]); 67 74 }; 68 75
+5 -5
pkgs/development/libraries/gnu-config/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 3 let 4 - rev = "6faca61810d335c7837f320733fe8e15a1431fc2"; 4 + rev = "63acb96f92473ceb5e21d873d7c0aee266b3d6d3"; 5 5 6 6 # Don't use fetchgit as this is needed during Aarch64 bootstrapping 7 7 configGuess = fetchurl { 8 8 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}"; 9 - sha256 = "06wkkhpbx9slmknr2g7mcd8x3zsdhnmmay25l31h3rkdp1wkq7kx"; 9 + sha256 = "049qgfh4xjd4fxd7ygm1phd5faqphfvhfcv8dsdldprsp86lf55v"; 10 10 }; 11 11 configSub = fetchurl { 12 12 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}"; 13 - sha256 = "1qkph8cqanmgy3s4a18bm1a4vk62i8pf8cy5pc1hkpqwn4g6l0di"; 13 + sha256 = "1rk30y27mzls49wyfdb5jhzjr08hkxl7xqhnxmhcmkvqlmpsjnxl"; 14 14 }; 15 15 in stdenv.mkDerivation { 16 16 pname = "gnu-config"; 17 - version = "2021-01-25"; 17 + version = "2023-01-21"; 18 18 19 19 buildCommand = '' 20 20 mkdir -p $out ··· 34 34 # configuration script generated by Autoconf, you may include it under 35 35 # the same distribution terms that you use for the rest of that 36 36 # program. 37 - maintainers = [ maintainers.dezgeg ]; 37 + maintainers = with maintainers; [ dezgeg emilytrau ]; 38 38 platforms = platforms.all; 39 39 }; 40 40 }
-1
pkgs/development/libraries/goffice/default.nix
··· 27 27 buildInputs = [ libxslt librsvg ]; 28 28 29 29 enableParallelBuilding = true; 30 - doCheck = !stdenv.hostPlatform.isPower64; 31 30 32 31 passthru = { 33 32 updateScript = gnome.updateScript {
+2
pkgs/development/libraries/gpgme/default.nix
··· 98 98 ++ lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64" 99 99 ); 100 100 101 + enableParallelBuilding = true; 102 + 101 103 # prevent tests from being run during the buildPhase 102 104 makeFlags = [ "tests=" ]; 103 105
+20 -10
pkgs/development/libraries/gstreamer/bad/default.nix
··· 57 57 , neon 58 58 , openal 59 59 , opencv4 60 - , openexr 60 + , openexr_3 61 61 , openh264 62 62 , libopenmpt 63 63 , pango ··· 80 80 , libGLU 81 81 , libGL 82 82 , addOpenGLRunpath 83 + , gtk3 83 84 , libintl 84 85 , game-music-emu 85 86 , openssl ··· 92 93 , VideoToolbox 93 94 , AudioToolbox 94 95 , AVFoundation 96 + , Cocoa 95 97 , CoreMedia 96 98 , CoreVideo 97 99 , Foundation 98 100 , MediaToolbox 99 101 , enableGplPlugins ? true 100 102 , bluezSupport ? stdenv.isLinux 103 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 104 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 101 105 }: 102 106 103 107 stdenv.mkDerivation rec { 104 108 pname = "gst-plugins-bad"; 105 - version = "1.20.3"; 109 + version = "1.22.2"; 106 110 107 111 outputs = [ "out" "dev" ]; 108 112 109 113 src = fetchurl { 110 114 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 111 - sha256 = "sha256-ehHBO1XdHSOG3ZAiGeQcv83ajh4Ko+c4GGyVB0s12k8="; 115 + hash = "sha256-PY+vHONALIU1zjqMThpslg5LVlXb2mtVlD25rHkCLQ8="; 112 116 }; 113 117 114 118 patches = [ ··· 128 132 gettext 129 133 gstreamer # for gst-tester-1.0 130 134 gobject-introspection 135 + ] ++ lib.optionals enableDocumentation [ 136 + hotdoc 131 137 ] ++ lib.optionals stdenv.isLinux [ 132 138 wayland # for wayland-scanner 133 139 ]; ··· 164 170 neon 165 171 openal 166 172 opencv4 167 - openexr 173 + openexr_3 168 174 openh264 169 175 rtmpdump 170 176 pango ··· 177 183 gnutls 178 184 libGL 179 185 libGLU 186 + gtk3 180 187 game-music-emu 181 188 openssl 182 189 libxml2 ··· 233 240 VideoToolbox 234 241 AudioToolbox 235 242 AVFoundation 243 + Cocoa 236 244 CoreMedia 237 245 CoreVideo 238 246 Foundation ··· 241 249 242 250 mesonFlags = [ 243 251 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 244 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 245 252 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 246 253 254 + "-Damfcodec=disabled" # Windows-only 247 255 "-Davtp=disabled" 256 + "-Ddirectshow=disabled" # Windows-only 248 257 "-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development" 249 258 "-Dzbar=${if enableZbar then "enabled" else "disabled"}" 250 259 "-Dfaac=${if faacSupport then "enabled" else "disabled"}" ··· 278 287 "-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing 279 288 "-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx` 280 289 "-Dbluez=${if bluezSupport then "enabled" else "disabled"}" 290 + (lib.mesonEnable "doc" enableDocumentation) 281 291 ] 282 292 ++ lib.optionals (!stdenv.isLinux) [ 293 + "-Ddoc=disabled" # needs gstcuda to be enabled which is Linux-only 294 + "-Dnvcodec=disabled" # Linux-only 283 295 "-Dva=disabled" # see comment on `libva` in `buildInputs` 284 296 ] 285 297 ++ lib.optionals stdenv.isDarwin [ ··· 297 309 "-Dladspa=disabled" # requires lrdf 298 310 "-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs 299 311 "-Dwildmidi=disabled" # see dependencies above 312 + ] ++ lib.optionals (!stdenv.isLinux || !stdenv.isx86_64) [ 313 + "-Dqsv=disabled" # Linux (and Windows) x86 only 300 314 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 301 315 "-Dgl=disabled" 302 316 ] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [ 317 + "-Dgtk3=disabled" # Wayland-based GTK sink 303 318 "-Dwayland=disabled" 304 319 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 305 320 # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`, ··· 323 338 postPatch = '' 324 339 patchShebangs \ 325 340 scripts/extract-release-date-from-doap-file.py 326 - 327 - # upstream bumps this version check one minor version at a time 328 - # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-bad/ext/opencv/meson.build#L74 329 - substituteInPlace ext/opencv/meson.build \ 330 - --replace '< 4.7.0' '< 5.0.0' 331 341 ''; 332 342 333 343 # This package has some `_("string literal")` string formats
+9 -9
pkgs/development/libraries/gstreamer/bad/fix-paths.patch
··· 1 - diff --git a/sys/nvcodec/gstcudaloader.c b/sys/nvcodec/gstcudaloader.c 2 - index 4223ba1fbd..ca8bb5ceb1 100644 3 - --- a/sys/nvcodec/gstcudaloader.c 4 - +++ b/sys/nvcodec/gstcudaloader.c 5 - @@ -135,6 +135,11 @@ gst_cuda_load_library (void) 1 + diff --git a/gst-libs/gst/cuda/gstcudaloader.c b/gst-libs/gst/cuda/gstcudaloader.c 2 + index fffcbefd2b..6f738d3af3 100644 3 + --- a/gst-libs/gst/cuda/gstcudaloader.c 4 + +++ b/gst-libs/gst/cuda/gstcudaloader.c 5 + @@ -165,6 +165,11 @@ gst_cuda_load_library (void) 6 6 return TRUE; 7 7 8 8 module = g_module_open (filename, G_MODULE_BIND_LAZY); 9 9 + 10 10 + if (module == NULL) { 11 - + module = g_module_open("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY); 11 + + module = g_module_open ("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY); 12 12 + } 13 13 + 14 14 if (module == NULL) { 15 15 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 16 16 return FALSE; 17 17 diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c 18 - index 3c7505ca36..eeb376fa80 100644 18 + index e957e062e0..004ec2dcd5 100644 19 19 --- a/sys/nvcodec/gstcuvidloader.c 20 20 +++ b/sys/nvcodec/gstcuvidloader.c 21 21 @@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver) ··· 31 31 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 32 32 return FALSE; 33 33 diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c 34 - index 19637671ad..39858ccdee 100644 34 + index 106857a954..3bab9989f0 100644 35 35 --- a/sys/nvcodec/gstnvenc.c 36 36 +++ b/sys/nvcodec/gstnvenc.c 37 - @@ -874,6 +874,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver) 37 + @@ -907,6 +907,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver) 38 38 }; 39 39 40 40 module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
+18 -12
pkgs/development/libraries/gstreamer/base/default.nix
··· 7 7 , gettext 8 8 , python3 9 9 , gstreamer 10 + , graphene 10 11 , orc 11 12 , pango 12 13 , libtheora ··· 20 21 , libGL 21 22 , gobject-introspection 22 23 , enableX11 ? stdenv.isLinux 24 + , libXext 25 + , libXi 23 26 , libXv 24 - , libXext 25 27 , enableWayland ? stdenv.isLinux 26 28 , wayland 27 29 , wayland-protocols 28 30 , enableAlsa ? stdenv.isLinux 29 31 , alsa-lib 30 - # Enabling Cocoa seems to currently not work, giving compile 31 - # errors. Suspected is that a newer version than clang 32 - # is needed than 5.0 but it is not clear. 33 - , enableCocoa ? false 32 + # TODO: fix once x86_64-darwin sdk updated 33 + , enableCocoa ? (stdenv.isDarwin && stdenv.isAarch64) 34 34 , Cocoa 35 35 , OpenGL 36 36 , enableGl ? (enableX11 || enableWayland || enableCocoa) ··· 38 38 , cdparanoia 39 39 , glib 40 40 , testers 41 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 42 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform 43 + , hotdoc 41 44 }: 42 45 43 46 stdenv.mkDerivation (finalAttrs: { 44 47 pname = "gst-plugins-base"; 45 - version = "1.20.3"; 48 + version = "1.22.2"; 46 49 47 50 outputs = [ "out" "dev" ]; 48 51 ··· 50 53 inherit (finalAttrs) pname version; 51 54 in fetchurl { 52 55 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 53 - sha256 = "sha256-fjCz3YGnA4D/dVT5mEcdaZb/drvm/FRHCW+FHiRHPJ8="; 56 + hash = "sha256-62USDE7nm3oVPDwZctXAFYwhUYd8xR7Hclu6V0lnnUk="; 54 57 }; 55 58 56 59 strictDeps = true; ··· 66 69 orc 67 70 glib 68 71 gstreamer 69 - # docs 70 - # TODO add hotdoc here 71 72 gobject-introspection 72 - ] ++ lib.optional enableWayland wayland; 73 + ] ++ lib.optionals enableDocumentation [ 74 + hotdoc 75 + ] ++ lib.optionals enableWayland [ 76 + wayland 77 + ]; 73 78 74 79 buildInputs = [ 75 80 gobject-introspection 81 + graphene 76 82 orc 77 83 libtheora 78 84 libintl ··· 91 97 alsa-lib 92 98 ] ++ lib.optionals enableX11 [ 93 99 libXext 100 + libXi 94 101 libXv 95 102 ] ++ lib.optionals enableWayland [ 96 103 wayland ··· 104 111 105 112 mesonFlags = [ 106 113 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 107 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 108 - "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing 109 114 # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices 110 115 "-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}" 116 + (lib.mesonEnable "doc" enableDocumentation) 111 117 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 112 118 "-Dtests=disabled" 113 119 ]
+9 -10
pkgs/development/libraries/gstreamer/core/default.nix
··· 11 11 , makeWrapper 12 12 , libcap 13 13 , libunwind 14 - , darwin 15 14 , elfutils # for libdw 16 15 , bash-completion 17 16 , lib 17 + , Cocoa 18 18 , CoreServices 19 19 , gobject-introspection 20 20 , testers 21 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 22 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 21 23 }: 22 24 23 25 stdenv.mkDerivation (finalAttrs: { 24 26 pname = "gstreamer"; 25 - version = "1.20.3"; 27 + version = "1.22.2"; 26 28 27 29 outputs = [ 28 30 "bin" 29 31 "out" 30 32 "dev" 31 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs, see: 32 - # - https://github.com/NixOS/nixpkgs/pull/98767 33 - # - https://github.com/NixOS/nixpkgs/issues/98769#issuecomment-702296551 34 33 ]; 35 34 36 35 src = let 37 36 inherit (finalAttrs) pname version; 38 37 in fetchurl { 39 38 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 40 - sha256 = "sha256-YH2vZLu9X7GK+dF+IcDSLE1wL//oOyPLItGxryyiOio="; 39 + hash = "sha256-sq/nNgOSHGCLpIlp27fXQ3dnRL/l2AWeziQRN7f4jiE="; 41 40 }; 42 41 43 42 depsBuildBuild = [ ··· 57 56 glib 58 57 bash-completion 59 58 gobject-introspection 60 - 61 - # documentation 62 - # TODO add hotdoc here 63 59 ] ++ lib.optionals stdenv.isLinux [ 64 60 libcap # for setcap binary 61 + ] ++ lib.optionals enableDocumentation [ 62 + hotdoc 65 63 ]; 66 64 67 65 buildInputs = [ ··· 72 70 libunwind 73 71 elfutils 74 72 ] ++ lib.optionals stdenv.isDarwin [ 73 + Cocoa 75 74 CoreServices 76 75 ]; 77 76 ··· 82 81 mesonFlags = [ 83 82 "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those 84 83 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 85 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 84 + (lib.mesonEnable "doc" enableDocumentation) 86 85 ] ++ lib.optionals stdenv.isDarwin [ 87 86 # darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it. 88 87 "-Dlibunwind=disabled"
+2 -2
pkgs/development/libraries/gstreamer/default.nix
··· 16 16 }: 17 17 18 18 { 19 - gstreamer = callPackage ./core { inherit CoreServices; }; 19 + gstreamer = callPackage ./core { inherit Cocoa CoreServices; }; 20 20 21 21 gstreamermm = callPackage ./gstreamermm { }; 22 22 ··· 24 24 25 25 gst-plugins-good = callPackage ./good { inherit Cocoa; }; 26 26 27 - gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; }; 27 + gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation Cocoa CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; }; 28 28 29 29 gst-plugins-ugly = callPackage ./ugly { inherit CoreFoundation DiskArbitration IOKit; }; 30 30
+7 -7
pkgs/development/libraries/gstreamer/devtools/default.nix
··· 11 11 , python3 12 12 , gobject-introspection 13 13 , json-glib 14 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 15 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 14 16 }: 15 17 16 18 stdenv.mkDerivation rec { 17 19 pname = "gst-devtools"; 18 - version = "1.20.3"; 20 + version = "1.22.2"; 19 21 20 22 src = fetchurl { 21 23 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 22 - sha256 = "sha256-u71F6tcDNn6o9L6bPAgte2K+9HskCjkIPyeETih1jEc="; 24 + hash = "sha256-62JybT4nqHgjaaJP1jZKiIXtJGKzu9qwkd/8gTnuBtg="; 23 25 }; 24 26 25 27 outputs = [ 26 28 "out" 27 29 "dev" 28 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 29 30 ]; 30 31 31 32 depsBuildBuild = [ ··· 37 38 ninja 38 39 pkg-config 39 40 gobject-introspection 40 - 41 - # documentation 42 - # TODO add hotdoc here 41 + ] ++ lib.optionals enableDocumentation [ 42 + hotdoc 43 43 ]; 44 44 45 45 buildInputs = [ ··· 57 57 ]; 58 58 59 59 mesonFlags = [ 60 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 60 + (lib.mesonEnable "doc" enableDocumentation) 61 61 ]; 62 62 63 63 meta = with lib; {
+7 -7
pkgs/development/libraries/gstreamer/ges/default.nix
··· 12 12 , flex 13 13 , gettext 14 14 , gobject-introspection 15 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 16 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 15 17 }: 16 18 17 19 stdenv.mkDerivation rec { 18 20 pname = "gst-editing-services"; 19 - version = "1.20.3"; 21 + version = "1.22.2"; 20 22 21 23 outputs = [ 22 24 "out" 23 25 "dev" 24 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 25 26 ]; 26 27 27 28 src = fetchurl { 28 29 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 29 - sha256 = "sha256-X9iW3mn74kQh62sP+NL4tMPLo/MCXOrNMCFy85qKuqI="; 30 + hash = "sha256-RTsUZPw4V94mmnyw69lmr+Ahcdl772cqC4oKbUPgzr8="; 30 31 }; 31 32 32 33 nativeBuildInputs = [ ··· 37 38 gobject-introspection 38 39 python3 39 40 flex 40 - 41 - # documentation 42 - # TODO add hotdoc here 41 + ] ++ lib.optionals enableDocumentation [ 42 + hotdoc 43 43 ]; 44 44 45 45 buildInputs = [ ··· 56 56 ]; 57 57 58 58 mesonFlags = [ 59 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 59 + (lib.mesonEnable "doc" enableDocumentation) 60 60 ]; 61 61 62 62 postPatch = ''
+17 -3
pkgs/development/libraries/gstreamer/good/default.nix
··· 31 31 , twolame 32 32 , gtkSupport ? false, gtk3 33 33 , qt5Support ? false, qt5 34 + , qt6Support ? false, qt6 34 35 , raspiCameraSupport ? false, libraspberrypi 35 36 , enableJack ? true, libjack2 36 37 , libXdamage ··· 43 44 , libgudev 44 45 , wavpack 45 46 , glib 47 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 48 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 46 49 }: 47 50 48 51 assert raspiCameraSupport -> (stdenv.isLinux && stdenv.isAarch64); 49 52 50 53 stdenv.mkDerivation rec { 51 54 pname = "gst-plugins-good"; 52 - version = "1.20.3"; 55 + version = "1.22.2"; 53 56 54 57 outputs = [ "out" "dev" ]; 55 58 56 59 src = fetchurl { 57 60 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 58 - sha256 = "sha256-+PPCBr9c2rwAlTkgtHs1da8O8V6fhxwLaWb20KpYaLc="; 61 + hash = "sha256-fIzFlCXysjL2DKfRPlbt1hXaT3Eec90Bp8/6Rua8DN0="; 59 62 }; 60 63 61 64 strictDeps = true; ··· 72 75 orc 73 76 libshout 74 77 glib 78 + ] ++ lib.optionals enableDocumentation [ 79 + hotdoc 75 80 ] ++ lib.optionals qt5Support (with qt5; [ 76 81 qtbase 82 + ]) ++ lib.optionals qt6Support (with qt6; [ 83 + qtbase 84 + qttools 77 85 ]) ++ lib.optionals stdenv.isLinux [ 78 86 wayland-protocols 79 87 ]; ··· 114 122 qtdeclarative 115 123 qtwayland 116 124 qtx11extras 125 + ]) ++ lib.optionals qt6Support (with qt6; [ 126 + qtbase 127 + qtdeclarative 128 + qtwayland 117 129 ]) ++ lib.optionals stdenv.isDarwin [ 118 130 Cocoa 119 131 ] ++ lib.optionals stdenv.isLinux [ ··· 129 141 130 142 mesonFlags = [ 131 143 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 132 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 133 144 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 145 + (lib.mesonEnable "doc" enableDocumentation) 134 146 ] ++ lib.optionals (!qt5Support) [ 135 147 "-Dqt5=disabled" 148 + ] ++ lib.optionals (!qt6Support) [ 149 + "-Dqt6=disabled" 136 150 ] ++ lib.optionals (!gtkSupport) [ 137 151 "-Dgtk3=disabled" 138 152 ] ++ lib.optionals (!enableJack) [
+7 -3
pkgs/development/libraries/gstreamer/libav/default.nix
··· 9 9 , gst-plugins-base 10 10 , gettext 11 11 , libav 12 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 13 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 12 14 }: 13 15 14 16 # Note that since gst-libav-1.6, libav is actually ffmpeg. See ··· 16 18 17 19 stdenv.mkDerivation rec { 18 20 pname = "gst-libav"; 19 - version = "1.20.3"; 21 + version = "1.22.2"; 20 22 21 23 src = fetchurl { 22 24 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 23 - sha256 = "sha256-P+3RBWD836obZGLL95o4xOe1fX85A1k5P8DO9tvyff4="; 25 + hash = "sha256-/Kr5h4/o87yCMX7xOhVYgky2jfH4loxnl/VWxeM7z/0="; 24 26 }; 25 27 26 28 outputs = [ "out" "dev" ]; ··· 31 33 gettext 32 34 pkg-config 33 35 python3 36 + ] ++ lib.optionals enableDocumentation [ 37 + hotdoc 34 38 ]; 35 39 36 40 buildInputs = [ ··· 40 44 ]; 41 45 42 46 mesonFlags = [ 43 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 47 + (lib.mesonEnable "doc" enableDocumentation) 44 48 ]; 45 49 46 50 postPatch = ''
+7 -7
pkgs/development/libraries/gstreamer/rtsp-server/default.nix
··· 9 9 , gobject-introspection 10 10 , gst-plugins-base 11 11 , gst-plugins-bad 12 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 13 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 12 14 }: 13 15 14 16 stdenv.mkDerivation rec { 15 17 pname = "gst-rtsp-server"; 16 - version = "1.20.3"; 18 + version = "1.22.2"; 17 19 18 20 src = fetchurl { 19 21 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 20 - sha256 = "sha256-7kAnGL6bEn8OXmbKTBtPQuSSbsk7owe3zMpdxsyXlMo="; 22 + hash = "sha256-K+Suz7iHEBAOpxFe0CFkA+gJQ0Tr8UYJQnG41Nc4KL8="; 21 23 }; 22 24 23 25 outputs = [ 24 26 "out" 25 27 "dev" 26 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 27 28 ]; 28 29 29 30 nativeBuildInputs = [ ··· 33 34 gobject-introspection 34 35 pkg-config 35 36 python3 36 - 37 - # documentation 38 - # TODO add hotdoc here 37 + ] ++ lib.optionals enableDocumentation [ 38 + hotdoc 39 39 ]; 40 40 41 41 buildInputs = [ ··· 46 46 47 47 mesonFlags = [ 48 48 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 49 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 49 + (lib.mesonEnable "doc" enableDocumentation) 50 50 ]; 51 51 52 52 postPatch = ''
+7 -3
pkgs/development/libraries/gstreamer/ugly/default.nix
··· 20 20 , CoreFoundation 21 21 , DiskArbitration 22 22 , enableGplPlugins ? true 23 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 24 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 23 25 }: 24 26 25 27 stdenv.mkDerivation rec { 26 28 pname = "gst-plugins-ugly"; 27 - version = "1.20.3"; 29 + version = "1.22.2"; 28 30 29 31 outputs = [ "out" "dev" ]; 30 32 31 33 src = fetchurl { 32 34 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 33 - sha256 = "sha256-jKogeJoJwwS0nPVj0zzKlCGxh1uE/MGH5KOF+gHWrv0="; 35 + hash = "sha256-jzD0TbC9BjcJv2++VROOOpivCry2HDYPNVgrvhDoBpE="; 34 36 }; 35 37 36 38 nativeBuildInputs = [ ··· 39 41 gettext 40 42 pkg-config 41 43 python3 44 + ] ++ lib.optionals enableDocumentation [ 45 + hotdoc 42 46 ]; 43 47 44 48 buildInputs = [ ··· 60 64 ]; 61 65 62 66 mesonFlags = [ 63 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 64 67 "-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing 68 + (lib.mesonEnable "doc" enableDocumentation) 65 69 ] ++ (if enableGplPlugins then [ 66 70 "-Dgpl=enabled" 67 71 ] else [
+12 -7
pkgs/development/libraries/gstreamer/vaapi/default.nix
··· 7 7 , bzip2 8 8 , libva 9 9 , wayland 10 + , wayland-protocols 10 11 , libdrm 11 12 , udev 12 13 , xorg ··· 17 18 , nasm 18 19 , libvpx 19 20 , python3 21 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 22 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 20 23 }: 21 24 22 25 stdenv.mkDerivation rec { 23 26 pname = "gstreamer-vaapi"; 24 - version = "1.20.3"; 27 + version = "1.22.2"; 25 28 26 29 src = fetchurl { 27 30 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 28 - sha256 = "sha256-bumesxar3emtNwApFb2MOGeRj2/cdLfPKsTBrg1pC0U="; 31 + hash = "sha256-0uZC+XRfl9n3On9Qhedlmpox/iCbd05uRdrgQbQ13wY="; 29 32 }; 30 33 31 34 outputs = [ 32 35 "out" 33 36 "dev" 34 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 35 37 ]; 36 38 37 39 nativeBuildInputs = [ ··· 40 42 pkg-config 41 43 python3 42 44 bzip2 43 - 44 - # documentation 45 - # TODO add hotdoc here 45 + wayland 46 + ] ++ lib.optionals enableDocumentation [ 47 + hotdoc 46 48 ]; 47 49 48 50 buildInputs = [ ··· 51 53 gst-plugins-bad 52 54 libva 53 55 wayland 56 + wayland-protocols 54 57 libdrm 55 58 udev 56 59 xorg.libX11 ··· 65 68 libvpx 66 69 ]; 67 70 71 + strictDeps = true; 72 + 68 73 mesonFlags = [ 69 74 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 70 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 75 + (lib.mesonEnable "doc" enableDocumentation) 71 76 ]; 72 77 73 78 postPatch = ''
+1 -1
pkgs/development/libraries/gtk/4.x.nix
··· 168 168 "-Dvulkan=enabled" 169 169 ] ++ lib.optionals (!cupsSupport) [ 170 170 "-Dprint-cups=disabled" 171 - ] ++ lib.optionals stdenv.isDarwin [ 171 + ] ++ lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ 172 172 "-Dmedia-gstreamer=disabled" # requires gstreamer-gl 173 173 ] ++ lib.optionals (!x11Support) [ 174 174 "-Dx11-backend=false"
+7
pkgs/development/libraries/ldacbt/default.nix
··· 15 15 fetchSubmodules = true; 16 16 }; 17 17 18 + outputs = [ "out" "dev" ]; 19 + 18 20 nativeBuildInputs = [ 19 21 cmake 22 + ]; 23 + 24 + cmakeFlags = [ 25 + # CMakeLists.txt by default points to $out 26 + "-DINSTALL_INCLUDEDIR=${placeholder "dev"}/include" 20 27 ]; 21 28 22 29 meta = with lib; {
+5
pkgs/development/libraries/libcbor/default.nix
··· 22 22 sha256 = "sha256-ZTa+wG1g9KsVoqJG/yqxo2fJ7OhPnaI9QcfOmpOT3pg="; 23 23 }; 24 24 25 + strictDeps = true; 25 26 nativeBuildInputs = [ cmake ]; 27 + 28 + buildInputs = [ 29 + cmocka # cmake expects cmocka module 30 + ]; 26 31 27 32 cmakeFlags = lib.optional finalAttrs.doCheck "-DWITH_TESTS=ON" 28 33 ++ lib.optional (!stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=ON";
+22 -2
pkgs/development/libraries/libde265/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 + , fetchpatch 4 5 , autoreconfHook 5 6 , pkg-config 7 + 8 + , callPackage 6 9 7 10 # for passthru.tests 8 11 , imagemagick ··· 11 14 , gst_all_1 12 15 }: 13 16 14 - stdenv.mkDerivation rec { 17 + stdenv.mkDerivation (finalAttrs: rec { 15 18 version = "1.0.11"; 16 19 pname = "libde265"; 17 20 ··· 22 25 sha256 = "sha256-0aRUh5h49fnjBjy42A5fWYHnhnQ4CFoeSIXZilZewW8="; 23 26 }; 24 27 28 + patches = [ 29 + (fetchpatch { 30 + name = "CVE-2023-27102.patch"; 31 + url = "https://github.com/strukturag/libde265/commit/0b1752abff97cb542941d317a0d18aa50cb199b1.patch"; 32 + sha256 = "sha256-q0NKuk2r5RQT9MJpRO3CTPj6VqYRBnffs9yZ+GM+lNc="; 33 + }) 34 + (fetchpatch { 35 + name = "CVE-2023-27103.patch"; 36 + url = "https://github.com/strukturag/libde265/commit/d6bf73e765b7a23627bfd7a8645c143fd9097995.patch"; 37 + sha256 = "sha256-vxciVzSuVCVDpdz+TKg2tMWp2ArubYji5GLaR9VP4F0="; 38 + }) 39 + ]; 40 + 25 41 nativeBuildInputs = [ autoreconfHook pkg-config ]; 26 42 27 43 enableParallelBuilding = true; ··· 29 45 passthru.tests = { 30 46 inherit imagemagick libheif imlib2Full; 31 47 inherit (gst_all_1) gst-plugins-bad; 48 + 49 + test-corpus-decode = callPackage ./test-corpus-decode.nix { 50 + libde265 = finalAttrs.finalPackage; 51 + }; 32 52 }; 33 53 34 54 meta = { ··· 38 58 platforms = lib.platforms.unix; 39 59 maintainers = with lib.maintainers; [ gebner ]; 40 60 }; 41 - } 61 + })
+48
pkgs/development/libraries/libde265/test-corpus-decode.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , libde265 5 + }: 6 + 7 + stdenv.mkDerivation { 8 + pname = "libde265-test-corpus-decode"; 9 + version = "unstable-2020-02-19"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "strukturag"; 13 + repo = "libde265-data"; 14 + rev = "bdfdfdbe682f514c5185c270c74eac42731a7fa8"; 15 + sha256 = "sha256-fOgu7vMoyH30Zzbkfm4a6JVDZtYLO/0R2syC2Wux+Z8="; 16 + }; 17 + 18 + dontConfigure = true; 19 + dontBuild = true; 20 + 21 + doCheck = true; 22 + nativeCheckInputs = [ libde265 ]; 23 + # based on invocations in https://github.com/strukturag/libde265/blob/0b1752abff97cb542941d317a0d18aa50cb199b1/scripts/ci-run.sh 24 + checkPhase = '' 25 + echo "Single-threaded:" 26 + find . -name '*.bin' | while read f; do 27 + echo "Decoding $f" 28 + dec265 -q -c $f 29 + dec265 -0 -q -c $f 30 + dec265 -q --disable-deblocking --disable-sao $f 31 + done 32 + echo "Multi-threaded:" 33 + find RandomAccess/ -name '*.bin' | while read f; do 34 + echo "Decoding $f" 35 + dec265 -t 4 -q -c $f 36 + dec265 -t 4 -0 -q -c $f 37 + dec265 -t 4 -q --disable-deblocking --disable-sao $f 38 + done 39 + ''; 40 + # a larger corpus of files can be found 41 + # as an ubuntu package libde265-teststreams @ 42 + # https://launchpad.net/~strukturag/+archive/ubuntu/libde265/+packages 43 + # but it is *much* larger 44 + 45 + installPhase = '' 46 + touch $out 47 + ''; 48 + }
+2
pkgs/development/libraries/libdecor/default.nix
··· 26 26 sha256 = "0qdg3r7k086wzszr969s0ljlqdvfqm31zpl8p5h397bw076zr6p2"; 27 27 }; 28 28 29 + outputs = [ "out" "dev" ]; 30 + 29 31 strictDeps = true; 30 32 31 33 nativeBuildInputs = [
+2 -3
pkgs/development/libraries/libdisplay-info/default.nix
··· 21 21 sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk="; 22 22 }; 23 23 24 - nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ]; 25 - 26 - buildInputs = [ hwdata ]; 24 + depsBuildBuild = [ pkg-config ]; 25 + nativeBuildInputs = [ meson pkg-config ninja edid-decode hwdata python3 ]; 27 26 28 27 postPatch = '' 29 28 patchShebangs tool/gen-search-table.py
-53
pkgs/development/libraries/libgcrypt/1.5.nix
··· 1 - { lib, stdenv, fetchpatch, fetchurl, libgpg-error, enableCapabilities ? false, libcap }: 2 - 3 - assert enableCapabilities -> stdenv.isLinux; 4 - 5 - stdenv.mkDerivation rec { 6 - pname = "libgcrypt"; 7 - version = "1.5.6"; 8 - 9 - src = fetchurl { 10 - url = "mirror://gnupg/libgcrypt/libgcrypt-${version}.tar.bz2"; 11 - sha256 = "0ydy7bgra5jbq9mxl5x031nif3m6y3balc6ndw2ngj11wnsjc61h"; 12 - }; 13 - 14 - patches = lib.optionals stdenv.isDarwin [ 15 - (fetchpatch { 16 - name = "fix-x86_64-apple-darwin.patch"; 17 - sha256 = "138sfwl1avpy19320dbd63mskspc1khlc93j1f1zmylxx3w19csi"; 18 - url = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=patch;h=71939faa7c54e7b4b28d115e748a85f134876a02"; 19 - }) 20 - ]; 21 - 22 - buildInputs = 23 - [ libgpg-error ] 24 - ++ lib.optional enableCapabilities libcap; 25 - 26 - # Make sure libraries are correct for .pc and .la files 27 - # Also make sure includes are fixed for callers who don't use libgpgcrypt-config 28 - postInstall = '' 29 - sed -i 's,#include <gpg-error.h>,#include "${libgpg-error.dev}/include/gpg-error.h",g' $out/include/gcrypt.h 30 - '' + lib.optionalString enableCapabilities '' 31 - sed -i 's,\(-lcap\),-L${libcap.lib}/lib \1,' $out/lib/libgcrypt.la 32 - ''; 33 - 34 - doCheck = true; 35 - 36 - meta = with lib; { 37 - homepage = "https://www.gnu.org/software/libgcrypt/"; 38 - description = "General-pupose cryptographic library"; 39 - license = licenses.lgpl2Plus; 40 - platforms = platforms.all; 41 - knownVulnerabilities = [ 42 - "CVE-2014-3591" 43 - "CVE-2015-0837" 44 - "CVE-2015-7511" 45 - "CVE-2017-0379" 46 - "CVE-2017-7526" 47 - "CVE-2017-9526" 48 - "CVE-2018-0495" 49 - "CVE-2018-6829" 50 - "CVE-2018-12437" 51 - ]; 52 - }; 53 - }
+75
pkgs/development/libraries/libgcrypt/1.8.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , libgpg-error 5 + , enableCapabilities ? false, libcap 6 + , buildPackages 7 + # for passthru.tests 8 + , gnupg 9 + , libotr 10 + , rsyslog 11 + }: 12 + 13 + assert enableCapabilities -> stdenv.isLinux; 14 + 15 + stdenv.mkDerivation rec { 16 + pname = "libgcrypt"; 17 + version = "1.8.10"; 18 + 19 + src = fetchurl { 20 + url = "mirror://gnupg/libgcrypt/libgcrypt-${version}.tar.bz2"; 21 + sha256 = "sha256-aJaRVQH5UeI9AtywRTRpwswiqk13oAH/c6JkfC0p590="; 22 + }; 23 + 24 + outputs = [ "out" "dev" "info" ]; 25 + outputBin = "dev"; 26 + 27 + # The CPU Jitter random number generator must not be compiled with 28 + # optimizations and the optimize -O0 pragma only works for gcc. 29 + # The build enables -O2 by default for everything else. 30 + hardeningDisable = lib.optional stdenv.cc.isClang "fortify"; 31 + 32 + depsBuildBuild = [ buildPackages.stdenv.cc ]; 33 + 34 + buildInputs = [ libgpg-error ] 35 + ++ lib.optional enableCapabilities libcap; 36 + 37 + strictDeps = true; 38 + 39 + configureFlags = [ "--with-libgpg-error-prefix=${libgpg-error.dev}" ] 40 + ++ lib.optional (stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) "--disable-asm"; # for darwin see https://dev.gnupg.org/T5157 41 + 42 + # Necessary to generate correct assembly when compiling for aarch32 on 43 + # aarch64 44 + configurePlatforms = [ "host" "build" ]; 45 + 46 + postConfigure = '' 47 + sed -i configure \ 48 + -e 's/NOEXECSTACK_FLAGS=$/NOEXECSTACK_FLAGS="-Wa,--noexecstack"/' 49 + ''; 50 + 51 + # Make sure libraries are correct for .pc and .la files 52 + # Also make sure includes are fixed for callers who don't use libgpgcrypt-config 53 + postFixup = '' 54 + sed -i 's,#include <gpg-error.h>,#include "${libgpg-error.dev}/include/gpg-error.h",g' "$dev/include/gcrypt.h" 55 + '' + lib.optionalString enableCapabilities '' 56 + sed -i 's,\(-lcap\),-L${libcap.lib}/lib \1,' $out/lib/libgcrypt.la 57 + ''; 58 + 59 + doCheck = true; 60 + 61 + passthru.tests = { 62 + inherit gnupg libotr rsyslog; 63 + }; 64 + 65 + meta = with lib; { 66 + homepage = "https://www.gnu.org/software/libgcrypt/"; 67 + changelog = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=blob;f=NEWS;hb=refs/tags/${pname}-${version}"; 68 + description = "General-purpose cryptographic library"; 69 + license = licenses.lgpl2Plus; 70 + platforms = platforms.all; 71 + knownVulnerabilities = [ 72 + "CVE-2018-12437" # CVE is about LibTomCrypt 73 + ]; 74 + }; 75 + }
+2 -2
pkgs/development/libraries/libhwy/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libhwy"; 5 - version = "1.0.2"; 5 + version = "1.0.4"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "google"; 9 9 repo = "highway"; 10 10 rev = version; 11 - hash = "sha256-CHzDLzOnu/QfejWiRKE9I5UUyRxoEooNtYVe8FQwu7c="; 11 + hash = "sha256-bQtfye+gn7GOyzCtji4st5hsV40rPzuaYDP7N1tZ8wg="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake ninja ];
+3 -2
pkgs/development/libraries/libinput/default.nix
··· 45 45 46 46 stdenv.mkDerivation rec { 47 47 pname = "libinput"; 48 - version = "1.22.1"; 48 + version = "1.23.0"; 49 49 50 50 outputs = [ "bin" "out" "dev" ]; 51 51 ··· 54 54 owner = "libinput"; 55 55 repo = "libinput"; 56 56 rev = version; 57 - sha256 = "RgwEp60Anr+CpJws6srIv/Qzk2r9NoekeNQ0UT3FRZ0="; 57 + sha256 = "7Wxriy1fVsfAhcfhOhuvLehhmQYrQ2IgZTK53bt12HI="; 58 58 }; 59 59 60 60 patches = [ ··· 132 132 license = licenses.mit; 133 133 platforms = platforms.unix; 134 134 maintainers = with maintainers; [ codyopel ] ++ teams.freedesktop.members; 135 + changelog = "https://gitlab.freedesktop.org/libinput/libinput/-/releases/${version}"; 135 136 }; 136 137 }
+10
pkgs/development/libraries/libjxl/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub 2 + , fetchpatch 2 3 , brotli 3 4 , cmake 4 5 , giflib ··· 32 33 # There are various submodules in `third_party/`. 33 34 fetchSubmodules = true; 34 35 }; 36 + 37 + patches = [ 38 + # Add missing <atomic> content to fix gcc compilation for RISCV architecture 39 + # https://github.com/libjxl/libjxl/pull/2211 40 + (fetchpatch { 41 + url = "https://github.com/libjxl/libjxl/commit/22d12d74e7bc56b09cfb1973aa89ec8d714fa3fc.patch"; 42 + hash = "sha256-X4fbYTMS+kHfZRbeGzSdBW5jQKw8UN44FEyFRUtw0qo="; 43 + }) 44 + ]; 35 45 36 46 nativeBuildInputs = [ 37 47 cmake
+2
pkgs/development/libraries/liblc3/default.nix
··· 20 20 sha256 = "sha256-Be+dPUnxC2+cHzqL2FAqXOU7NjEAHiPBKh7spuYkvhc="; 21 21 }; 22 22 23 + outputs = [ "out" "dev" ]; 24 + 23 25 nativeBuildInputs = [ 24 26 meson 25 27 ninja
+7 -5
pkgs/development/libraries/libmodplug/default.nix
··· 4 4 pname = "libmodplug"; 5 5 version = "0.8.9.0"; 6 6 7 + src = fetchurl { 8 + url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz"; 9 + sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"; 10 + }; 11 + 12 + outputs = [ "out" "dev" ]; 13 + 7 14 preConfigure = '' 8 15 substituteInPlace configure \ 9 16 --replace ' -mmacosx-version-min=10.5' "" \ ··· 16 23 license = licenses.publicDomain; 17 24 platforms = platforms.unix; 18 25 maintainers = with maintainers; [ raskin ]; 19 - }; 20 - 21 - src = fetchurl { 22 - url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz"; 23 - sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"; 24 26 }; 25 27 }
+2 -2
pkgs/development/libraries/libnice/default.nix
··· 18 18 19 19 stdenv.mkDerivation rec { 20 20 pname = "libnice"; 21 - version = "0.1.18"; 21 + version = "0.1.21"; 22 22 23 23 outputs = [ "bin" "out" "dev" ] 24 24 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; 25 25 26 26 src = fetchurl { 27 27 url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz"; 28 - sha256 = "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy"; 28 + hash = "sha256-cuc6Ks8g9ZCT4h1WAWBuQFhzUD6zXzRvpiHeI+mbOzk="; 29 29 }; 30 30 31 31 patches = [
+2 -2
pkgs/development/libraries/libpcap/default.nix
··· 13 13 14 14 stdenv.mkDerivation rec { 15 15 pname = "libpcap"; 16 - version = "1.10.3"; 16 + version = "1.10.4"; 17 17 18 18 src = fetchurl { 19 19 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 20 - sha256 = "sha256-KoiFxANRbPewkz7UsU1sqjDgIFJInr1BTcdaxS51WeY="; 20 + hash = "sha256-7RmgOD+tcuOtQ1/SOdfNgNZJFrhyaVUBWdIORxYOvl8="; 21 21 }; 22 22 23 23 buildInputs = lib.optionals stdenv.isLinux [ libnl ]
+4 -1
pkgs/development/libraries/libqmi/default.nix
··· 22 22 pname = "libqmi"; 23 23 version = "1.32.2"; 24 24 25 - outputs = [ "out" "dev" "devdoc" ]; 25 + outputs = [ "out" "dev" ] 26 + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; 26 27 27 28 src = fetchFromGitLab { 28 29 domain = "gitlab.freedesktop.org"; ··· 47 48 pkg-config 48 49 gobject-introspection 49 50 python3 51 + ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ 50 52 gtk-doc 51 53 docbook-xsl-nons 52 54 docbook_xml_dtd_43 ··· 68 70 "-Dudevdir=${placeholder "out"}/lib/udev" 69 71 (lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform)) 70 72 (lib.mesonBool "introspection" (stdenv.buildPlatform == stdenv.hostPlatform)) 73 + (lib.mesonBool "man" (stdenv.buildPlatform == stdenv.hostPlatform)) 71 74 ]; 72 75 73 76 doCheck = true;
+10 -5
pkgs/development/libraries/libtiff/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , fetchFromGitLab 3 4 , fetchpatch 4 5 , nix-update-script ··· 12 13 , xz 13 14 , zlib 14 15 15 - # for passthru.tests 16 + # for passthru.tests 16 17 , libgeotiff 17 18 , python3Packages 18 19 , imagemagick ··· 84 85 # sure cross-compilation works first! 85 86 nativeBuildInputs = [ autoreconfHook pkg-config sphinx ]; 86 87 87 - propagatedBuildInputs = [ libjpeg xz zlib ]; #TODO: opengl support (bogus configure detection) 88 - 89 - buildInputs = [ libdeflate ]; 88 + # TODO: opengl support (bogus configure detection) 89 + propagatedBuildInputs = [ 90 + libdeflate 91 + libjpeg 92 + xz 93 + zlib 94 + ]; 90 95 91 96 enableParallelBuilding = true; 92 97
+2
pkgs/development/libraries/libva/default.nix
··· 25 25 26 26 outputs = [ "dev" "out" ]; 27 27 28 + depsBuildBuild = [ pkg-config ]; 29 + 28 30 nativeBuildInputs = [ meson pkg-config ninja wayland-scanner ]; 29 31 30 32 buildInputs = [ libdrm ]
+10
pkgs/development/libraries/libwebp/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libtool 2 + , fetchpatch 2 3 , threadingSupport ? true # multi-threading 3 4 , openglSupport ? false, freeglut, libGL, libGLU # OpenGL (required for vwebp) 4 5 , pngSupport ? true, libpng # PNG image format ··· 35 36 rev = "v${version}"; 36 37 hash = "sha256-nhXkq+qKpaa75YQB/W/cRozslTIFPdXeqj1y6emQeHk="; 37 38 }; 39 + 40 + patches = [ 41 + # https://www.mozilla.org/en-US/security/advisories/mfsa2023-13/#MFSA-TMP-2023-0001 42 + (fetchpatch { 43 + url = "https://github.com/webmproject/libwebp/commit/a486d800b60d0af4cc0836bf7ed8f21e12974129.patch"; 44 + name = "fix-msfa-tmp-2023-0001.patch"; 45 + hash = "sha256-TRKXpNkYVzftBw09mX+WeQRhRoOzBgXFTNZBzSdCKvc="; 46 + }) 47 + ]; 38 48 39 49 configureFlags = [ 40 50 (lib.enableFeature threadingSupport "threading")
+2 -2
pkgs/development/libraries/libxml2/default.nix
··· 34 34 let 35 35 libxml = stdenv.mkDerivation rec { 36 36 pname = "libxml2"; 37 - version = "2.10.3"; 37 + version = "2.10.4"; 38 38 39 39 outputs = [ "bin" "dev" "out" "doc" ] 40 40 ++ lib.optional pythonSupport "py" ··· 43 43 44 44 src = fetchurl { 45 45 url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz"; 46 - sha256 = "XSzD14vsPb4hKp1/pimtolp9qSivQyyTBg/1wX7iipw="; 46 + sha256 = "7QyRxYRQCPGTZznk7uIDVTHByUdCxlQfRO5m2IWUjUU="; 47 47 }; 48 48 49 49 patches = [
pkgs/development/libraries/mesa/22.3.7.nix pkgs/development/libraries/mesa/22.3.nix
-4
pkgs/development/libraries/mesa/23.0.1.nix
··· 1 - import ./generic.nix { 2 - version = "23.0.1"; 3 - hash = "sha256-6OWGhWtViTq66b3NuYtBwIHZCbsfrzcubnJiMHvzSt8="; 4 - }
+4
pkgs/development/libraries/mesa/23.0.nix
··· 1 + import ./generic.nix { 2 + version = "23.0.3"; 3 + hash = "sha256-OGNipdgN87CWY2tn80Dhzme3BbRHZ9W90R0u0QNxktU="; 4 + }
-7
pkgs/development/libraries/mesa/generic.nix
··· 133 133 134 134 ./opencl.patch 135 135 ./disk_cache-include-dri-driver-path-in-cache-key.patch 136 - 137 - # FIXME: submitted upstream at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22133 138 - # Remove when no longer applicable 139 - (fetchpatch { 140 - url = "https://gitlab.freedesktop.org/mesa/mesa/-/commit/1457f1b752f59258c0b33558619b0063b4ce6280.diff"; 141 - hash = "sha256-WFemyfmCWY4rJMfGxVZdYeGQvGcOTEDMrRt5OIWp348="; 142 - }) 143 136 ]; 144 137 145 138 postPatch = ''
+7 -3
pkgs/development/libraries/mpfr/default.nix
··· 28 28 # mpfr.h requires gmp.h 29 29 propagatedBuildInputs = [ gmp ]; 30 30 31 - configureFlags = 32 - lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" ++ 33 - lib.optional stdenv.hostPlatform.is64bit "--with-pic"; 31 + configureFlags = lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" 32 + ++ lib.optional stdenv.hostPlatform.is64bit "--with-pic" 33 + ++ lib.optional stdenv.hostPlatform.isPower64 [ 34 + # Without this, the `tget_set_d128` test experiences a link 35 + # error due to missing `__dpd_trunctdkf`. 36 + "--disable-decimal-float" 37 + ]; 34 38 35 39 doCheck = true; # not cross; 36 40
+1 -1
pkgs/development/libraries/openjpeg/default.nix
··· 50 50 51 51 nativeBuildInputs = [ cmake pkg-config ]; 52 52 53 - buildInputs = [ libdeflate libpng libtiff zlib lcms2 ] 53 + buildInputs = [ libpng libtiff zlib lcms2 ] 54 54 ++ lib.optionals jpipServerSupport [ curl fcgi ] 55 55 ++ lib.optional (jpipLibSupport) jdk; 56 56
+11 -23
pkgs/development/libraries/openssl/default.nix
··· 1 - { lib, stdenv, fetchurl, buildPackages, perl, coreutils 1 + { lib, stdenv, fetchurl, buildPackages, perl, coreutils, writeShellScript 2 + , makeWrapper 2 3 , withCryptodev ? false, cryptodev 3 4 , withZlib ? false, zlib 4 5 , enableSSL2 ? false 5 6 , enableSSL3 ? false 6 7 , enableKTLS ? stdenv.isLinux 7 8 , static ? stdenv.hostPlatform.isStatic 8 - # Used to avoid cross compiling perl, for example, in darwin bootstrap tools. 9 - # This will cause c_rehash to refer to perl via the environment, but otherwise 10 - # will produce a perfectly functional openssl binary and library. 11 - , withPerl ? stdenv.hostPlatform == stdenv.buildPlatform 12 9 # path to openssl.cnf file. will be placed in $etc/etc/ssl/openssl.cnf to replace the default 13 10 , conf ? null 14 11 , removeReferencesTo ··· 72 69 !(stdenv.hostPlatform.useLLVM or false) && 73 70 stdenv.cc.isGNU; 74 71 75 - nativeBuildInputs = [ perl ] 72 + nativeBuildInputs = [ makeWrapper perl ] 76 73 ++ lib.optionals static [ removeReferencesTo ]; 77 74 buildInputs = lib.optional withCryptodev cryptodev 78 - # perl is included to allow the interpreter path fixup hook to set the 79 - # correct interpreter in c_rehash. 80 - ++ lib.optional withPerl perl 81 75 ++ lib.optional withZlib zlib; 82 76 83 77 # TODO(@Ericson2314): Improve with mass rebuild ··· 172 166 173 167 # 'etc' is a separate output on static builds only. 174 168 etc=$out 175 - '') + lib.optionalString (!stdenv.hostPlatform.isWindows) 176 - # Fix bin/c_rehash's perl interpreter line 177 - # 178 - # - openssl 1_0_2: embeds a reference to buildPackages.perl 179 - # - openssl 1_1: emits "#!/usr/bin/env perl" 180 - # 181 - # In the case of openssl_1_0_2, reset the invalid reference and let the 182 - # interpreter hook take care of it. 183 - # 184 - # In both cases, if withPerl = false, the intepreter line is expected be 185 - # "#!/usr/bin/env perl" 186 - '' 187 - substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl}/bin/perl "/usr/bin/env perl" 188 - '' + '' 169 + '') + '' 189 170 mkdir -p $bin 190 171 mv $out/bin $bin/bin 172 + 173 + # c_rehash is a legacy perl script with the same functionality 174 + # as `openssl rehash` 175 + # this wrapper script is created to maintain backwards compatibility without 176 + # depending on perl 177 + makeWrapper $bin/bin/openssl $bin/bin/c_rehash \ 178 + --add-flags "rehash" 191 179 192 180 mkdir $dev 193 181 mv $out/include $dev/
+13 -11
pkgs/development/libraries/pipewire/0090-pipewire-config-template-paths.patch
··· 1 1 diff --git a/src/daemon/minimal.conf.in b/src/daemon/minimal.conf.in 2 - index 6464839a0..05546201f 100644 2 + index 9c885a38f..c474eb45d 100644 3 3 --- a/src/daemon/minimal.conf.in 4 4 +++ b/src/daemon/minimal.conf.in 5 - @@ -110,7 +110,7 @@ context.modules = [ 5 + @@ -111,7 +111,7 @@ context.modules = [ 6 6 # access.allowed to list an array of paths of allowed 7 7 # apps. 8 8 #access.allowed = [ ··· 11 11 #] 12 12 13 13 # An array of rejected paths. 14 - @@ -298,5 +298,5 @@ context.exec = [ 14 + @@ -359,5 +359,5 @@ context.exec = [ 15 15 # It can be interesting to start another daemon here that listens 16 16 # on another address with the -a option (eg. -a tcp:4713). 17 17 # ··· 19 19 + #@pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" } 20 20 ] 21 21 diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in 22 - index a948a1b9b..4ece43c6f 100644 22 + index 697bf094d..3a7b54ddd 100644 23 23 --- a/src/daemon/pipewire.conf.in 24 24 +++ b/src/daemon/pipewire.conf.in 25 - @@ -132,7 +132,7 @@ context.modules = [ 25 + @@ -142,7 +142,7 @@ context.modules = [ 26 26 # access.allowed to list an array of paths of allowed 27 27 # apps. 28 28 #access.allowed = [ ··· 31 31 #] 32 32 33 33 # An array of rejected paths. 34 - @@ -246,12 +246,12 @@ context.exec = [ 34 + @@ -294,7 +294,7 @@ context.exec = [ 35 35 # but it is better to start it as a systemd service. 36 36 # Run the session manager with -h for options. 37 37 # 38 - - @sm_comment@{ path = "@session_manager_path@" args = "@session_manager_args@" } 39 - + @sm_comment@{ path = "<session_manager_path>" args = "@session_manager_args@" } 38 + - @sm_comment@{ path = "@session_manager_path@" args = "@session_manager_args@" 39 + + @sm_comment@{ path = "<session_manager_path>" args = "@session_manager_args@" 40 + @sm_comment@ condition = [ { exec.session-manager = null } { exec.session-manager = true } ] } 40 41 # 41 42 # You can optionally start the pulseaudio-server here as well 42 - # but it is better to start it as a systemd service. 43 + @@ -302,6 +302,6 @@ context.exec = [ 43 44 # It can be interesting to start another daemon here that listens 44 45 # on another address with the -a option (eg. -a tcp:4713). 45 46 # 46 - - @pulse_comment@{ path = "@pipewire_path@" args = "-c pipewire-pulse.conf" } 47 - + @pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" } 47 + - @pulse_comment@{ path = "@pipewire_path@" args = "-c pipewire-pulse.conf" 48 + + @pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" 49 + @pulse_comment@ condition = [ { exec.pipewire-pulse = null } { exec.pipewire-pulse = true } ] } 48 50 ]
+2 -9
pkgs/development/libraries/pipewire/default.nix
··· 73 73 74 74 self = stdenv.mkDerivation rec { 75 75 pname = "pipewire"; 76 - version = "0.3.68"; 76 + version = "0.3.70"; 77 77 78 78 outputs = [ 79 79 "out" ··· 91 91 owner = "pipewire"; 92 92 repo = "pipewire"; 93 93 rev = version; 94 - sha256 = "sha256-dm+mgtvXJEBjCYMBbiBHZq42ikfsEDaybMzLMPLxBcE="; 94 + sha256 = "sha256-xhJzE6JcfNcLMm+TqTIPaBEnEthEqUZiTqhWz1fO5Ng="; 95 95 }; 96 96 97 97 patches = [ ··· 107 107 ./0090-pipewire-config-template-paths.patch 108 108 # Place SPA data files in lib output to avoid dependency cycles 109 109 ./0095-spa-data-dir.patch 110 - 111 - # backport patch fixing no sound in some cases 112 - # FIXME: remove for next release 113 - (fetchpatch { 114 - url = "https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/8748c77451ce332dd24549b414200499ede4f184.diff"; 115 - hash = "sha256-nxWszqLUbO1XS/DWIBYrGpVZFy2c5+E2V9dlBMekShM="; 116 - }) 117 110 ]; 118 111 119 112 strictDeps = true;
+1 -1
pkgs/development/libraries/qt-5/5.15/default.nix
··· 230 230 231 231 wrapQtAppsHook = makeSetupHook { 232 232 name = "wrap-qt5-apps-hook"; 233 - propagatedBuildInputs = [ self.qtbase.dev buildPackages.makeWrapper ] 233 + propagatedBuildInputs = [ self.qtbase.dev buildPackages.makeBinaryWrapper ] 234 234 ++ lib.optional stdenv.isLinux self.qtwayland.dev; 235 235 } ../hooks/wrap-qt-apps-hook.sh; 236 236 } // lib.optionalAttrs config.allowAliases {
+82 -82
pkgs/development/libraries/qt-5/5.15/srcs-generated.json
··· 1 1 { 2 2 "qt3d": { 3 3 "url": "https://invent.kde.org/qt/qt/qt3d.git", 4 - "rev": "c3c7e6ebc29cce466d954f72f340a257d76b5ec2", 5 - "sha256": "13ixg0gx7sp90k0db2xn7r2rj1w3zw3vs84pav0v8fwfvph9ki98" 4 + "rev": "e94b0fa39a2f4bf260969fb18bf075dba39b2df1", 5 + "sha256": "0mc7rym5pngpwpjghih7afjlyvvrlpdzw1wrbggykpmm8vrk5hzv" 6 6 }, 7 7 "qtactiveqt": { 8 8 "url": "https://invent.kde.org/qt/qt/qtactiveqt.git", 9 - "rev": "2334cafc110c4e63bec3a5c7abdcd67e5e5ee754", 10 - "sha256": "0p7pydqsrws5x9l74y37ldffd3yz4riyizl8669x6y6hj6177yd3" 9 + "rev": "38635c3b343ce30b71e44c5a59f2f7393fba8259", 10 + "sha256": "010jh2vdlymaxs1wd0agzb2gvgms9xrhs4vb5bjiiq5pys1sgkbp" 11 11 }, 12 12 "qtandroidextras": { 13 13 "url": "https://invent.kde.org/qt/qt/qtandroidextras.git", 14 - "rev": "7ede0a6c555518a3fecba8930d5e4d9c58875d0d", 15 - "sha256": "0nvdrbqm469iikkvzwjni3zb7dxwpy3x161m9yly4irklixhxkzh" 14 + "rev": "b458aee3f907f2ce1880ad4031abecb2a1eab90a", 15 + "sha256": "14vn9k80ilc2smaflnamyg5k0ddj3n4m123yfwb79rfg3lddhvs5" 16 16 }, 17 17 "qtbase": { 18 18 "url": "https://invent.kde.org/qt/qt/qtbase.git", 19 - "rev": "6c09620dc84900c31a2d307a8640dbc15b1fcfdd", 20 - "sha256": "0nr8xlfdrgjr6rrd5f99p8vzlxx6n8xch5l2z95pb2lx4w4pz26q" 19 + "rev": "d3b21bc8b70eaa1af848371dc1d34c4617c1f73c", 20 + "sha256": "11yww09fgcqsxv4sk4cflxdsdpdqc0x9b3qw63asfpwrnv9qry0a" 21 21 }, 22 22 "qtcharts": { 23 23 "url": "https://invent.kde.org/qt/qt/qtcharts.git", 24 - "rev": "e30be213e483f2d6f3c40af0cbdc11a8e92e2026", 25 - "sha256": "0vn1xh40lxa6vi87vr6qpskli2vh47mxi3d5srhf8rark0m51lf4" 24 + "rev": "3d4a84eb6d62ce22a47794f309f9268729ac375f", 25 + "sha256": "047hl5hd0l337b7bsc28lfx9p9jbrnqswfdk80ndvgvp96ziblg5" 26 26 }, 27 27 "qtconnectivity": { 28 28 "url": "https://invent.kde.org/qt/qt/qtconnectivity.git", 29 - "rev": "2d241e0b79971917845a6ed448e838ef273d73d7", 30 - "sha256": "15zk9q1n9yfg4nkr0rs7agsvzim8nlrqzm1h4h9r0iwr91g9vqp5" 29 + "rev": "0f9e49cde3b7ca40cd94e63d2f5d29f5b586d3d6", 30 + "sha256": "1iwqa98ihzqqpqgwsj0lm4zkfwgag9k634sxjnx6gxvfq0h6d4nx" 31 31 }, 32 32 "qtdatavis3d": { 33 33 "url": "https://invent.kde.org/qt/qt/qtdatavis3d.git", 34 - "rev": "9f0f50ebef04d5ac5ed0ee2a3a71e7748fce3005", 35 - "sha256": "151650nqq29m99cbf7ac02vxzw4ivm4spr4kd2ss3gwhfxby3zgj" 34 + "rev": "7636478bb30f0af8afe9af429eb8512d6fbcc11b", 35 + "sha256": "08xkhxwp5mlcp4q45adqn58p37wn2z2zabw23f51qvfw8rir9g62" 36 36 }, 37 37 "qtdeclarative": { 38 38 "url": "https://invent.kde.org/qt/qt/qtdeclarative.git", 39 - "rev": "05c3f4921d81fb1b0eb497515c24ae56221d1e0a", 40 - "sha256": "0101bbpnrj4rp51dcnn2gjcq7vw55g4c8y4lmg2nd5g69whmkl1c" 39 + "rev": "0e1bed3c3e27d44d86d6f68a8b93b96a4821575c", 40 + "sha256": "0v4c3pls67ww6ffiscbp05yb2vv583zrxj8p4jcy3yxa06khniy5" 41 41 }, 42 42 "qtdoc": { 43 43 "url": "https://invent.kde.org/qt/qt/qtdoc.git", 44 - "rev": "79d6ef693b6241db4a86a90943c02180c4944214", 45 - "sha256": "0ldskh9dd8qwa96nz1q5sbb8r2jdfcxvq589dyw87m3gpb8v16qq" 44 + "rev": "701325d57940c6e54353d0d4b6c3ebac6f9688a3", 45 + "sha256": "01x2075d71z3ag99dppixs1y85zrr0vck0piah62l9n0v3wz4r6p" 46 46 }, 47 47 "qtgamepad": { 48 48 "url": "https://invent.kde.org/qt/qt/qtgamepad.git", 49 - "rev": "ad63dc64f4bdafb503f7015d04e8849cef5d99b4", 50 - "sha256": "06ag3cmg56f4z9pc3ix9lddz5ydx48pf438xc2l1z3x4wxbkfbsy" 49 + "rev": "7c05744e38d44afac687df3349d548c8790837db", 50 + "sha256": "0j8rak512f96i0wy4n0d4fjsgfzn283k2kfpn93d2blld4r2rd5s" 51 51 }, 52 52 "qtgraphicaleffects": { 53 53 "url": "https://invent.kde.org/qt/qt/qtgraphicaleffects.git", 54 - "rev": "4119e4e6dc94447d773a01c1d6e4de0fefb9235a", 55 - "sha256": "0sdywxrbjzz9qmrywd54hqqssv59b9mlvra16hjxfd0di50brab2" 54 + "rev": "06cfcbb6940d2729f5a6575e264873ce65ac99c3", 55 + "sha256": "02jc7q7ijmhmffdp2ql2j3fw8ag7q98xlq40pywmzgrf1ggb34sw" 56 56 }, 57 57 "qtimageformats": { 58 58 "url": "https://invent.kde.org/qt/qt/qtimageformats.git", 59 - "rev": "dbc9c396199ef78e820b40ddb8a4e76c0a86d48c", 60 - "sha256": "18dhnvkv9hialjfcm80g9y38fsxfcfk4fgrrsm3hy2yda6a6g1c6" 59 + "rev": "c249f58541afa45955c23b75c1fb88c5e3e4d18b", 60 + "sha256": "025fxiy6ahgfqw3w7a08r2ff4ry2m1qn65haimpnn6bmi4vp88m8" 61 61 }, 62 62 "qtlocation": { 63 63 "url": "https://invent.kde.org/qt/qt/qtlocation.git", 64 - "rev": "435f931a7e42172e12ceba8f0d9da06ba4ec0bee", 65 - "sha256": "1p7hz09jv8whlv0m39cnjz3yc6pjzyxkc8zinl6f0qmrska6m4gp" 64 + "rev": "2a8a48e9101236f118c2c4f0d79fae9c9d7b3f2a", 65 + "sha256": "0ajvlqkm2641ahms34kg6a2hykvql1hxlm5nsaba7233hnfv3nsy" 66 66 }, 67 67 "qtlottie": { 68 68 "url": "https://invent.kde.org/qt/qt/qtlottie.git", 69 - "rev": "56f94cb8e2da9801ada7aa06f86ccf807f5a4ed8", 70 - "sha256": "1pyshl395qmf84h5lyw3rgn3gmz98sm1dq003jvr74w9i746hszf" 69 + "rev": "f9f123a97989638c36b5c2b03f4ff6261ddaed9a", 70 + "sha256": "06b5rjzqd1630c87spldxxd0bvkb94sbnaxwxbi7ac74k35ydq7s" 71 71 }, 72 72 "qtmacextras": { 73 73 "url": "https://invent.kde.org/qt/qt/qtmacextras.git", 74 - "rev": "bc397be87f9b02e8279cfe2fc9b893c9f95219b9", 75 - "sha256": "1dr8a7sv00dmk1hc6kzs93rhvjk2wkxx0mxl7riafdzxzyajcl7n" 74 + "rev": "209e3ddcf0a6b48ff47a7dc97f2ea38470c8780d", 75 + "sha256": "09aipbnalb44w6g3kzm9dc84ls2xmp1clwmy5zd012xsvjwqd3h5" 76 76 }, 77 77 "qtmultimedia": { 78 78 "url": "https://invent.kde.org/qt/qt/qtmultimedia.git", 79 - "rev": "32557dbe01ba66005b8e28b38033eeee9819a4c6", 80 - "sha256": "09mds5v3b3jq34r40hqg2a39q16p4q648wda7cqgm2yp249j06g8" 79 + "rev": "ff4c7bc3bf7ba4b748fdeb9d09887271c2b28505", 80 + "sha256": "14wx49mkqqzvwzhbx3jhbrjngq4vb3x2kmgzrq7f6nri0g7dpss8" 81 81 }, 82 82 "qtnetworkauth": { 83 83 "url": "https://invent.kde.org/qt/qt/qtnetworkauth.git", 84 - "rev": "f082a4c84c54e888b8d023ba68b7085551403425", 85 - "sha256": "03sd0a58b8z340in4avk6lqqa9qzkzkaxnk2yn1a270sxrsq6y0l" 84 + "rev": "59311ee7d78a8b19d3dbe61cf49d42c5bd7c934a", 85 + "sha256": "1rdgfmfsqp3hdkkq6bi8vdxgrh45xzf1b2nryhnk8pid81wa2bzq" 86 86 }, 87 87 "qtpurchasing": { 88 88 "url": "https://invent.kde.org/qt/qt/qtpurchasing.git", 89 - "rev": "9dfea35b04dcb52d02d7a2883df88d89ba9999ef", 90 - "sha256": "0swliqwzz3b297z7y6sr79ijgv3914s2g9ymq77plxglfdrnm74j" 89 + "rev": "5737c10128c6eeb28c10df569c8492bb2e8f4230", 90 + "sha256": "0iny9npc7w7b1rz9yx659bva66rllhbfqh4af9wdwbi9ssr4x5pc" 91 91 }, 92 92 "qtquick3d": { 93 93 "url": "https://invent.kde.org/qt/qt/qtquick3d.git", 94 - "rev": "47defc8b33b7bdf1dbf289b65b301fba2def9b1c", 95 - "sha256": "0kfwkxln3yz0c5rd1kfjmw0y2drwm1gg2s7f52kajfvg4274ha9c" 94 + "rev": "ccd0284235e9e3e1f97d808125af5024d3f04140", 95 + "sha256": "1mfw97v60fdszab0gqxjydw00f89rx8clw3dq72zx1rgv8rn2s67" 96 96 }, 97 97 "qtquickcontrols": { 98 98 "url": "https://invent.kde.org/qt/qt/qtquickcontrols.git", 99 - "rev": "18977875d16e22ad68a1dc2d7ee0a9c9f873c941", 100 - "sha256": "0n3930zzvp4s6m715rvx1bjh2s2fg7cadjs2hq6bc8k9mwlqibk1" 99 + "rev": "eb9dead185ae209dd2364d09db74d8ab613d982d", 100 + "sha256": "1pza9cjv49x59lvzyv45hwz01z8l9zzn8a3ssazycxvcq3w0pncb" 101 101 }, 102 102 "qtquickcontrols2": { 103 103 "url": "https://invent.kde.org/qt/qt/qtquickcontrols2.git", 104 - "rev": "56ce8233382a091a8476c831edd416b5f704ae4f", 105 - "sha256": "1h68s2fdgn1pbf5hsk6c8v4icz8c4cpbxv8iirz22yhlzabc3hdm" 104 + "rev": "86a84eaa74c4071e5750f23b6e9911762880d391", 105 + "sha256": "1zywq3ll49bzzvl6rzn4zpp96a4mdx0b9l5ic0x6zc4dr8c8jk5m" 106 106 }, 107 107 "qtquicktimeline": { 108 108 "url": "https://invent.kde.org/qt/qt/qtquicktimeline.git", 109 - "rev": "4cd0142a30bfa5eef47c720ac24dd73e12764806", 110 - "sha256": "13vhlgxq8ap796p3y9c3kj645p0370bqjwm5hkz13pazm15sbc9z" 109 + "rev": "dd5d4af65890baad8baa85a445a752a877a4f7e3", 110 + "sha256": "1m096pskaxhzxyvz17lksg1qlni7qacvqf3z71wvwvxzgjvs5bqh" 111 111 }, 112 112 "qtremoteobjects": { 113 113 "url": "https://invent.kde.org/qt/qt/qtremoteobjects.git", 114 - "rev": "929c7ad0676f084b9ecc469cd47a307596923cb3", 115 - "sha256": "0l94k9fdzk96j40gab2l5n4lmadzaqhvbg8s3m5f3v4im00xa2x9" 114 + "rev": "27b496d5aff650e4cf9a3148857c723dce10ef25", 115 + "sha256": "0wyf1nb6wjh4jd2n8cng7a6lzv1dkwrniabsvn1adl1nqknq7asv" 116 116 }, 117 117 "qtscript": { 118 118 "url": "https://invent.kde.org/qt/qt/qtscript.git", 119 - "rev": "4d8e4bd20b7100b0b7192547b19c3c239aaf7034", 120 - "sha256": "1pvihbjjmczby4934lir3h3kq0rqcvxnbw2vdkl9lhkds3lm0qhf" 119 + "rev": "4f8c35a528586541ea55bb8b3361eaa6749e52b1", 120 + "sha256": "01jddzy51ks899mszz35lcdgmpl5czcgh5g9fb84pxdnpgaxrx9b" 121 121 }, 122 122 "qtscxml": { 123 123 "url": "https://invent.kde.org/qt/qt/qtscxml.git", 124 - "rev": "0c93f94a44e2dce7eed9d17d4976b0c1e14be7bb", 125 - "sha256": "1vvzvin23ws6njhyg93s2dlkxb9p50mkipc611lsx7971gv1wih0" 124 + "rev": "d30a77111835395828fdcaa89a88110c5d9f6857", 125 + "sha256": "1yid5653653qlpk305y276gdrifdxpjzfa1629csq2b8hpwkddc2" 126 126 }, 127 127 "qtsensors": { 128 128 "url": "https://invent.kde.org/qt/qt/qtsensors.git", 129 - "rev": "6add85fa1a234a7e1943ba175c6fc799ccbae48e", 130 - "sha256": "1k02x3wzczwg7cqh6hav31akdsz9kk8s0vryd3q7zfrhqy9m88sh" 129 + "rev": "391c710b88865a3e0311b61d93fcdbbfd6996d46", 130 + "sha256": "19myf3w6g64clj9msy71is7b9krkfrzcqlyza37m3pimy7x305a0" 131 131 }, 132 132 "qtserialbus": { 133 133 "url": "https://invent.kde.org/qt/qt/qtserialbus.git", 134 - "rev": "ced5c7223d037aece1e7f37d4314f388252de025", 135 - "sha256": "009ajdry6lvf9pifzm2zl0w5zhkmrrxm53mjf9s76jqrsi6yqk30" 134 + "rev": "f8684ae6b0c12b6b21f1547fabe38b60c39f8893", 135 + "sha256": "0k60wibb2xis7gvx9d7q14a3sq1ij1m196ax4rfwwrzsz2vviir0" 136 136 }, 137 137 "qtserialport": { 138 138 "url": "https://invent.kde.org/qt/qt/qtserialport.git", 139 - "rev": "e2851096dc6f6a7cfa635d69ea950b382e3658ab", 140 - "sha256": "071g8d9i3wi8rqqy4lxpp3z25a55pd2xwsy3r8v0a6s6y5g5lcpf" 139 + "rev": "7fb308ec721f034a0d673784d951577d764a8e67", 140 + "sha256": "1f8sjyd7ksy4420lr6vn18mzb64jm0p8mml5d2vpgp344w2jbqm0" 141 141 }, 142 142 "qtspeech": { 143 143 "url": "https://invent.kde.org/qt/qt/qtspeech.git", 144 - "rev": "255845e2b2e605363762be25932d92fc10d32749", 145 - "sha256": "0apyk2z9r7i54sh0zgbs8vfncc4jrcrzzvi3q14d105pkhrschp9" 144 + "rev": "4856b6e231d7e2373ec8f89e861603a0d815793a", 145 + "sha256": "0v8lx6g43apfnyn37ccgjnq7abayplgnihx62fncgl2cpmy9nkha" 146 146 }, 147 147 "qtsvg": { 148 148 "url": "https://invent.kde.org/qt/qt/qtsvg.git", 149 - "rev": "a7a0f2491334e8cb4ef5731f5eb741f3f7b9af76", 150 - "sha256": "13zpzvwqv61dsd74s92nf46rhaw2rw3hl8m6d313wjlaaqi95ln6" 149 + "rev": "9b5ab29cbba1908fd4928e2bda2b93e418e36187", 150 + "sha256": "0vnwhbkk40wj9rfy3fhjm9slra3y3j1mk67n3vnrzvmzrmpl4443" 151 151 }, 152 152 "qttools": { 153 153 "url": "https://invent.kde.org/qt/qt/qttools.git", 154 - "rev": "090e526e713d01eac34c64e4a09ad961c612febf", 155 - "sha256": "1zrxv9wdnqayn5hhblwyqyrdn8mj7x2ks2f4qsr2w3cdidcjjz7y" 154 + "rev": "5649efd376ed7dbb171905e9edebbd547d1f73eb", 155 + "sha256": "1c49v7pni6bljnf4ppxrrdr0h0hpw4i7s6an91m7ca18s8x4m1rb" 156 156 }, 157 157 "qttranslations": { 158 158 "url": "https://invent.kde.org/qt/qt/qttranslations.git", 159 - "rev": "af8cd030fed6a47cc1e8727e7ee5445e037bf712", 160 - "sha256": "14fx3r9s3p16rhv9fyrwnv6bn24nvh5xnjwcw1mb04c44ddb9r86" 159 + "rev": "2b802231af3eb21c3c781753aba804217f855e86", 160 + "sha256": "1xdp1x6qkdm0xz8yg1j2c1fpav54c1rwxlpfj116xspfik4zy7gf" 161 161 }, 162 162 "qtvirtualkeyboard": { 163 163 "url": "https://invent.kde.org/qt/qt/qtvirtualkeyboard.git", 164 - "rev": "5f66c9571303170f07954f73b09cad4cee1ce5d0", 165 - "sha256": "0jzl7a2zr83nd9sskmz9fk2w2spn3v821j0l7kcp2hxydgyhk8v3" 164 + "rev": "4191fd9098ae25ffd5917370427460842e73f0cb", 165 + "sha256": "0jl9dw1azh961hcakmyxavfm0w7g1a89lyj2bal8dqvv9y3089cj" 166 166 }, 167 167 "qtwayland": { 168 168 "url": "https://invent.kde.org/qt/qt/qtwayland.git", 169 - "rev": "df41e7e3e1f0e5495c5c8c52f1c9bb5a32b0da27", 170 - "sha256": "0f292axj0ivgwgx97zc8x744243i7lgqcxbkjxham6md81m1xbwj" 169 + "rev": "c4c3fc69250c01cb35aaae5ea1ea2bcc8236dff0", 170 + "sha256": "040wgrxr2kkshpyg3gwcggdxlxrjd7pbnr3fj8v63byx34sz2w9b" 171 171 }, 172 172 "qtwebchannel": { 173 173 "url": "https://invent.kde.org/qt/qt/qtwebchannel.git", 174 - "rev": "f8949655ccfacc2d34cfb0af23c540db84a2b9e5", 175 - "sha256": "1303hghvk6avshb7imnkv24qv1ij5d3nbljba20l6v6dsr7zg7ba" 174 + "rev": "c508ffb1996eeddfd10dda493974746e6b375080", 175 + "sha256": "0hs7cqfiwc0mdsa9zngackfljy7d5306mpn3rwjfi5rawd85xsp0" 176 176 }, 177 177 "qtwebglplugin": { 178 178 "url": "https://invent.kde.org/qt/qt/qtwebglplugin.git", 179 - "rev": "655be6c5406f8ba42acaca363fc55d78a6198733", 180 - "sha256": "08biydqk1lhjzvrgl3zhbrrgnjcy611pmh9scyw42avdvj2qzpc2" 179 + "rev": "64beacdd2d0f6fe0796bd291c9ab33f206a333c3", 180 + "sha256": "1vqmxkfzggsalq2ic2b902jy0b47zkgzl95gg8dia8089vfny4kn" 181 181 }, 182 182 "qtwebsockets": { 183 183 "url": "https://invent.kde.org/qt/qt/qtwebsockets.git", 184 - "rev": "90f3590c3c49a0820462af9a778dd13d8df42244", 185 - "sha256": "1dxc3imh8455vy3pggrzjflb2v5382q9ha2fwplybxawld9wdw45" 184 + "rev": "ed7416b1b8af9de9926388408469a35f2ad6a795", 185 + "sha256": "1434bqqb1hm49b1acwb22b2lc9p936dlylg0m56h2pl4vv9w0v3b" 186 186 }, 187 187 "qtwebview": { 188 188 "url": "https://invent.kde.org/qt/qt/qtwebview.git", 189 - "rev": "dfd86e07019488954cddcf2ba314df3cd0c01c0c", 190 - "sha256": "1crph9sdmxxs0787il86j2dv6k3qylmy8a83hfzczcjcx3pwcf7a" 189 + "rev": "23d67d0de3301dbed5d8c5880b6cf60bfa9eeb2a", 190 + "sha256": "16rqz6jiiswaiwa7hn6pn0cq9la8843b4jxi8di30ymq9ysivbqq" 191 191 }, 192 192 "qtwinextras": { 193 193 "url": "https://invent.kde.org/qt/qt/qtwinextras.git", 194 - "rev": "48318520a4031167c4c0ad559e1a11b2f4c053d6", 195 - "sha256": "04smnp9pl3szizdp05dz7qmdgg8sk57d3r40sdy7v9zwi4lwaqi4" 194 + "rev": "44d18eaff83b7491a130e41678cadcc3ba836a8d", 195 + "sha256": "10fky86gcma9fwdbk3s733x7gqgxzsg6iaf9j42b0f8c2n5jhql3" 196 196 }, 197 197 "qtx11extras": { 198 198 "url": "https://invent.kde.org/qt/qt/qtx11extras.git", 199 - "rev": "e44c85e8643f2724109993a7b9eaf0dff3530fec", 200 - "sha256": "1vs1013zxw54xfmkpid99p5f38hlqds172vija7xjyjaww7j7y3b" 199 + "rev": "8bba77a558049727d1bc88736dd03d1b5c41cead", 200 + "sha256": "1lk4jm2pp0n8disxpcr1520bd798lif23fisnmkzysxcrlw1dflh" 201 201 }, 202 202 "qtxmlpatterns": { 203 203 "url": "https://invent.kde.org/qt/qt/qtxmlpatterns.git", 204 - "rev": "3199d91de3f38e5ece3d36bcefe2c33b2c014f3f", 205 - "sha256": "1l6babh2cjqwaqk12cqpkkl2qy909b1fd84p0ab19raw419ncawz" 204 + "rev": "fa0c41677ab43bc50bc4d086dfce96602060b7e0", 205 + "sha256": "1wrh1m9s4pdbvlgy93jv6acn9k1an6jb086cbxscgimgw3kb867p" 206 206 } 207 207 }
+3 -3
pkgs/development/libraries/qt-5/5.15/srcs.nix
··· 1 1 { lib, fetchgit, fetchFromGitHub }: 2 2 3 3 let 4 - version = "5.15.8"; 4 + version = "5.15.9"; 5 5 overrides = {}; 6 6 7 7 mk = name: args: ··· 64 64 65 65 qtwebengine = 66 66 let 67 - branchName = "5.15.12"; 67 + branchName = "5.15.13"; 68 68 rev = "v${branchName}-lts"; 69 69 in 70 70 { ··· 72 72 73 73 src = fetchgit { 74 74 url = "https://github.com/qt/qtwebengine.git"; 75 - sha256 = "sha256-8EQqSvxw9rqf+64CIbcCb1VXhNx1GNC8eDIgLyYDyvk="; 75 + sha256 = "sha256-gZmhJTA5A3+GeySJoppYGffNC6Ych2pOYlsu3w+fnmw="; 76 76 inherit rev branchName; 77 77 fetchSubmodules = true; 78 78 leaveDotGit = true;
+1 -1
pkgs/development/libraries/qt-6/default.nix
··· 151 151 wrapQtAppsHook = makeSetupHook 152 152 { 153 153 name = "wrap-qt6-apps-hook"; 154 - propagatedBuildInputs = [ buildPackages.makeWrapper ]; 154 + propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ]; 155 155 } ./hooks/wrap-qt-apps-hook.sh; 156 156 157 157 qmake = makeSetupHook
+2 -2
pkgs/development/libraries/qt-6/modules/qtmultimedia.nix
··· 26 26 nativeBuildInputs = [ pkg-config ]; 27 27 buildInputs = [ libunwind orc ] 28 28 ++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ]; 29 - propagatedBuildInputs = [ gstreamer gst-plugins-base gst-plugins-good gst-libav ] 30 - ++ lib.optionals stdenv.isLinux [ gst-vaapi ] 29 + propagatedBuildInputs = 30 + lib.optionals stdenv.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ] 31 31 ++ lib.optionals stdenv.isDarwin [ VideoToolbox ]; 32 32 33 33 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
+12 -23
pkgs/development/libraries/quictls/default.nix
··· 1 1 { lib, stdenv, fetchurl, buildPackages, perl, coreutils, fetchFromGitHub 2 + , makeWrapper 2 3 , withCryptodev ? false, cryptodev 3 4 , enableSSL2 ? false 4 5 , enableSSL3 ? false 5 6 , static ? stdenv.hostPlatform.isStatic 6 - # Used to avoid cross compiling perl, for example, in darwin bootstrap tools. 7 - # This will cause c_rehash to refer to perl via the environment, but otherwise 8 - # will produce a perfectly functional openssl binary and library. 9 - , withPerl ? stdenv.hostPlatform == stdenv.buildPlatform 10 7 , removeReferencesTo 11 8 }: 12 9 ··· 52 49 !(stdenv.hostPlatform.useLLVM or false) && 53 50 stdenv.cc.isGNU; 54 51 55 - nativeBuildInputs = [ perl removeReferencesTo ]; 56 - buildInputs = lib.optional withCryptodev cryptodev 57 - # perl is included to allow the interpreter path fixup hook to set the 58 - # correct interpreter in c_rehash. 59 - ++ lib.optional withPerl perl; 52 + nativeBuildInputs = [ makeWrapper perl removeReferencesTo ]; 53 + buildInputs = lib.optional withCryptodev cryptodev; 60 54 61 55 # TODO(@Ericson2314): Improve with mass rebuild 62 56 configurePlatforms = []; ··· 140 134 if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then 141 135 rm "$out/lib/"*.a 142 136 fi 143 - '') + lib.optionalString (!stdenv.hostPlatform.isWindows) 144 - # Fix bin/c_rehash's perl interpreter line 145 - # 146 - # - openssl 1_0_2: embeds a reference to buildPackages.perl 147 - # - openssl 1_1: emits "#!/usr/bin/env perl" 148 - # 149 - # In the case of openssl_1_0_2, reset the invalid reference and let the 150 - # interpreter hook take care of it. 151 - # 152 - # In both cases, if withPerl = false, the intepreter line is expected be 153 - # "#!/usr/bin/env perl" 154 - '' 155 - substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl}/bin/perl "/usr/bin/env perl" 156 - '' + '' 137 + '') + '' 157 138 mkdir -p $bin 158 139 mv $out/bin $bin/bin 140 + 141 + # c_rehash is a legacy perl script with the same functionality 142 + # as `openssl rehash` 143 + # this wrapper script is created to maintain backwards compatibility without 144 + # depending on perl 145 + makeWrapper $bin/bin/openssl $bin/bin/c_rehash \ 146 + --add-flags "rehash" 147 + 159 148 mkdir $dev 160 149 mv $out/include $dev/ 161 150 # remove dependency on Perl at runtime
+13 -5
pkgs/development/libraries/science/math/or-tools/default.nix
··· 47 47 }) 48 48 ]; 49 49 50 + # or-tools normally attempts to build Protobuf for the build platform when 51 + # cross-compiling. Instead, just tell it where to find protoc. 52 + postPatch = '' 53 + echo "set(PROTOC_PRG $(type -p protoc))" > cmake/host.cmake 54 + ''; 55 + 50 56 cmakeFlags = [ 51 57 "-DBUILD_DEPS=OFF" 52 58 "-DBUILD_PYTHON=ON" ··· 54 60 "-DFETCH_PYTHON_DEPS=OFF" 55 61 "-DUSE_GLPK=ON" 56 62 "-DUSE_SCIP=OFF" 63 + "-DPython3_EXECUTABLE=${python.pythonForBuild.interpreter}" 57 64 ] ++ lib.optionals stdenv.isDarwin [ "-DCMAKE_MACOSX_RPATH=OFF" ]; 58 65 nativeBuildInputs = [ 59 66 cmake 60 67 ensureNewerSourcesForZipFilesHook 61 68 pkg-config 62 - python 63 - python.pkgs.pip 69 + python.pythonForBuild 64 70 swig4 65 71 unzip 66 - ]; 72 + ] ++ (with python.pythonForBuild.pkgs; [ 73 + pip 74 + mypy-protobuf 75 + ]); 67 76 buildInputs = [ 68 77 bzip2 69 78 cbc 70 79 eigen 71 80 glpk 72 81 python.pkgs.absl-py 73 - python.pkgs.mypy-protobuf 74 82 python.pkgs.pybind11 75 83 python.pkgs.setuptools 76 84 python.pkgs.wheel ··· 101 109 pip install --prefix="$python" python/ 102 110 ''; 103 111 104 - outputs = [ "out" "python" ]; 112 + outputs = [ "out" "dev" "python" ]; 105 113 106 114 meta = with lib; { 107 115 homepage = "https://github.com/google/or-tools";
+2 -1
pkgs/development/libraries/serf/scons.patch
··· 11 11 if target in build_targets: 12 12 return PathVariable.PathIsDirCreate(key, val, env) 13 13 else: 14 - @@ -155,6 +155,7 @@ if sys.platform == 'win32': 14 + @@ -155,6 +155,8 @@ if sys.platform == 'win32': 15 15 env = Environment(variables=opts, 16 16 tools=('default', 'textfile',), 17 17 CPPPATH=['.', ], 18 + + AR=os.environ['AR'], 18 19 + ENV=os.environ, 19 20 ) 20 21
+3 -1
pkgs/development/python-modules/aiohttp/default.nix
··· 23 23 , freezegun 24 24 , gunicorn 25 25 , pytest-mock 26 + , pytest-xdist 26 27 , pytestCheckHook 27 28 , re-assert 28 29 , trustme ··· 79 80 freezegun 80 81 gunicorn 81 82 pytest-mock 83 + pytest-xdist 82 84 pytestCheckHook 83 85 re-assert 84 86 ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [ ··· 116 118 '' + lib.optionalString stdenv.isDarwin '' 117 119 # Work around "OSError: AF_UNIX path too long" 118 120 export TMPDIR="/tmp" 119 - ''; 121 + ''; 120 122 121 123 meta = with lib; { 122 124 changelog = "https://github.com/aio-libs/aiohttp/blob/v${version}/CHANGES.rst";
+8 -1
pkgs/development/python-modules/aioquic/default.nix
··· 25 25 hash = "sha256-XjhyajDawN/G1nPtkMbNe66iJCo76UpdA7PqwtxO5ag="; 26 26 }) 27 27 # https://github.com/aiortc/aioquic/pull/349, fixes test failure due pyopenssl==22 28 - (assert lib.versions.major pyopenssl.version == "22"; fetchpatch { 28 + (fetchpatch { 29 29 url = "https://github.com/aiortc/aioquic/commit/c3b72be85868d67ee32d49ab9bd98a4357cbcde9.patch"; 30 30 hash = "sha256-AjW+U9DpNXgA5yqKkWnx0OYpY2sZR9KIdQ3pSzxU+uY="; 31 + }) 32 + # AssertionError: 'self-signed certificate' != 'self signed certificate' 33 + (fetchpatch { 34 + url = "https://github.com/aiortc/aioquic/commit/cfcd3ce12fb27f5b26deb011a82f66b5d68d521a.patch"; 35 + hash = "sha256-bCW817Z7jCxYySfUukNR4cibURH3qZWEQjeeyvRIqZY="; 31 36 }) 32 37 ]; 33 38 ··· 42 47 nativeCheckInputs = [ pytestCheckHook ]; 43 48 44 49 pythonImportsCheck = [ "aioquic" ]; 50 + 51 + __darwinAllowLocalNetworking = true; 45 52 46 53 meta = with lib; { 47 54 description = "Implementation of QUIC and HTTP/3";
+6 -1
pkgs/development/python-modules/anyio/default.nix
··· 2 2 , lib 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 - , fetchpatch 6 5 , pythonOlder 7 6 , setuptools 8 7 , setuptools-scm ··· 13 12 , hypothesis 14 13 , mock 15 14 , pytest-mock 15 + , pytest-xdist 16 16 , pytestCheckHook 17 17 , trio 18 18 , trustme ··· 55 55 curio 56 56 hypothesis 57 57 pytest-mock 58 + pytest-xdist 58 59 pytestCheckHook 59 60 trio 60 61 trustme ··· 74 75 "test_exception_group_children" 75 76 "test_exception_group_host" 76 77 "test_exception_group_filtering" 78 + # regression in python 3.11.3 and 3.10.11 79 + # https://github.com/agronholm/anyio/issues/550 80 + "TestTLSStream" 81 + "TestTLSListener" 77 82 ]; 78 83 79 84 disabledTestPaths = [
+5 -3
pkgs/development/python-modules/cryptography/default.nix
··· 11 11 , six 12 12 , isPyPy 13 13 , cffi 14 + , pkg-config 14 15 , pytestCheckHook 15 16 , pytest-benchmark 16 17 , pytest-subtests ··· 28 29 in 29 30 buildPythonPackage rec { 30 31 pname = "cryptography"; 31 - version = "39.0.1"; # Also update the hash in vectors.nix 32 + version = "40.0.1"; # Also update the hash in vectors.nix 32 33 format = "setuptools"; 33 34 disabled = pythonOlder "3.6"; 34 35 35 36 src = fetchPypi { 36 37 inherit pname version; 37 - hash = "sha256-0fYZjubZFIQF5JiHgDkH/olioj5sb4PqfZjxwN43VpU="; 38 + hash = "sha256-KAPy+LHpX2FEGZJsfm9V2CivxhTKXtYVQ4d65mjMNHI="; 38 39 }; 39 40 40 41 cargoDeps = rustPlatform.fetchCargoTarball { 41 42 inherit src; 42 43 sourceRoot = "${pname}-${version}/${cargoRoot}"; 43 44 name = "${pname}-${version}"; 44 - hash = "sha256-0x+KIqJznDEyIUqVuYfIESKmHBWfzirPeX2R/cWlngc="; 45 + hash = "sha256-gFfDTc2QWBWHBCycVH1dYlCsWQMVcRZfOBIau+njtDU="; 45 46 }; 46 47 47 48 cargoRoot = "src/rust"; 48 49 49 50 nativeBuildInputs = lib.optionals (!isPyPy) [ 50 51 cffi 52 + pkg-config 51 53 ] ++ [ 52 54 rustPlatform.cargoSetupHook 53 55 setuptools-rust
+1 -1
pkgs/development/python-modules/cryptography/vectors.nix
··· 9 9 src = fetchPypi { 10 10 pname = "cryptography_vectors"; 11 11 inherit version; 12 - hash = "sha256-DLrrUL2388nXqTsmoEYu9ul8doynjZAoVP4EXDC2gMY="; 12 + hash = "sha256-hGBwa1tdDOSoVXHKM4nPiPcAu2oMYTPcn+D1ovW9oEE="; 13 13 }; 14 14 15 15 # No tests included
+1
pkgs/development/python-modules/ctap-keyring-device/default.nix
··· 14 14 let 15 15 fido2_0 = fido2.overridePythonAttrs (oldAttrs: rec { 16 16 version = "0.9.3"; 17 + format = "setuptools"; 17 18 src = fetchPypi { 18 19 inherit (oldAttrs) pname; 19 20 inherit version;
+35
pkgs/development/python-modules/dbus-deviation/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , lxml 5 + , setuptools-git 6 + , sphinx 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "dbus-deviation"; 11 + version = "0.6.1"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + hash = "sha256-4GuI7+IjiF0nJd9Rz3ybe0Y9HG8E6knUaQh0MY0Ot6M="; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + setuptools-git 20 + sphinx 21 + ]; 22 + 23 + propagatedBuildInputs = [ 24 + lxml 25 + ]; 26 + 27 + pythonImportsCheck = [ "dbusdeviation" ]; 28 + 29 + meta = with lib; { 30 + homepage = "https://tecnocode.co.uk/dbus-deviation/"; 31 + description = "A project for parsing D-Bus introspection XML and processing it in various ways"; 32 + license = licenses.lgpl21Plus; 33 + maintainers = with maintainers; [ lilyinstarlight ]; 34 + }; 35 + }
+6 -2
pkgs/development/python-modules/fido2/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , poetry-core 4 5 , six 5 6 , cryptography 6 7 , mock ··· 10 11 11 12 buildPythonPackage rec { 12 13 pname = "fido2"; 13 - version = "1.1.0"; 14 + version = "1.1.1"; 15 + format = "pyproject"; 14 16 15 17 src = fetchPypi { 16 18 inherit pname version; 17 - hash = "sha256-K0tOYgwhAEQsIGeODpUa1tHvs7pcqOu3IMTI1UMpNnQ="; 19 + hash = "sha256-XcSVyoxZwcM3ODtLjDFNRrktXG/GUOcZhMbX+VQHn8M="; 18 20 }; 21 + 22 + nativeBuildInputs = [ poetry-core ]; 19 23 20 24 propagatedBuildInputs = [ six cryptography ]; 21 25
+6 -4
pkgs/development/python-modules/flaky/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , mock 5 - , nose 6 5 , pytest 7 6 }: 8 7 9 8 buildPythonPackage rec { 10 9 pname = "flaky"; 11 10 version = "3.7.0"; 11 + format = "setuptools"; 12 12 13 13 src = fetchPypi { 14 14 inherit pname version; 15 - sha256 = "3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d"; 15 + hash = "sha256-OtEAeAchoZEfV6FlgJt+omWnhjMFrLZnCCIIIMr4qg0="; 16 16 }; 17 17 18 - nativeCheckInputs = [ mock nose pytest ]; 18 + nativeCheckInputs = [ 19 + mock 20 + pytest 21 + ]; 19 22 20 23 checkPhase = '' 21 24 # based on tox.ini 22 25 pytest -k 'example and not options' --doctest-modules test/test_pytest/ 23 26 pytest -k 'example and not options' test/test_pytest/ 24 27 pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py 25 - nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py 26 28 pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py 27 29 ''; 28 30
+2 -2
pkgs/development/python-modules/gst-python/default.nix
··· 14 14 15 15 buildPythonPackage rec { 16 16 pname = "gst-python"; 17 - version = "1.20.0"; 17 + version = "1.22.2"; 18 18 19 19 format = "other"; 20 20 ··· 22 22 23 23 src = fetchurl { 24 24 url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz"; 25 - sha256 = "j2e9xWBrozYGxryJbonefc2M9PykWfcTibG2/gdbXlQ="; 25 + hash = "sha256-vvKz2Czkvka3dbG7VjBcEAPuAbU1pTqC+f6JJJchU60="; 26 26 }; 27 27 28 28 # Python 2.x is not supported.
+4
pkgs/development/python-modules/hypothesis/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , isPyPy 3 4 , fetchFromGitHub 4 5 , attrs 5 6 , exceptiongroup ··· 13 14 , sphinx-rtd-theme 14 15 , sphinx-hoverxref 15 16 , sphinx-codeautolink 17 + , tzdata 16 18 # Used to break internal dependency loop. 17 19 , enableDocumentation ? true 18 20 }: ··· 65 67 pexpect 66 68 pytest-xdist 67 69 pytestCheckHook 70 + ] ++ lib.optionals (isPyPy) [ 71 + tzdata 68 72 ]; 69 73 70 74 inherit doCheck;
+2 -2
pkgs/development/python-modules/kaldi-active-grammar/fork.nix
··· 9 9 , python3 10 10 , openblas 11 11 , zlib 12 - , gfortran-tmp-noisystem 12 + , gfortran 13 13 }: 14 14 15 15 let ··· 56 56 nativeBuildInputs = [ 57 57 pkg-config 58 58 python3 59 - gfortran-tmp-noisystem 59 + gfortran 60 60 ]; 61 61 62 62 buildFlags = [
+2 -1
pkgs/development/python-modules/matplotlib/default.nix
··· 135 135 libX11 136 136 tcl 137 137 tk 138 - tkinter 139 138 ] ++ lib.optionals stdenv.isDarwin [ 140 139 Cocoa 141 140 ]; ··· 167 166 tornado 168 167 ] ++ lib.optionals enableNbagg [ 169 168 ipykernel 169 + ] ++ lib.optionals enableTk [ 170 + tkinter 170 171 ]; 171 172 172 173 passthru.config = {
+2 -1
pkgs/development/python-modules/nose/default.nix
··· 26 26 --replace "from setuptools.command.build_py import Mixin2to3" "from distutils.util import Mixin2to3" 27 27 ''; 28 28 29 - preBuild = lib.optionalString (isPy3k && (!isPyPy)) '' 29 + preBuild = lib.optionalString (isPy3k) '' 30 30 ${python.pythonForBuild}/bin/2to3 -wn nose functional_tests unit_tests 31 31 ''; 32 32 ··· 41 41 ''; 42 42 43 43 meta = with lib; { 44 + broken = isPyPy; # missing 2to3 conversion utility 44 45 description = "A unittest-based testing framework for python that makes writing and running tests easier"; 45 46 homepage = "https://nose.readthedocs.io/"; 46 47 license = licenses.lgpl3;
+2
pkgs/development/python-modules/passlib/default.nix
··· 6 6 , cryptography 7 7 , pytestCheckHook 8 8 , pythonOlder 9 + , pytest-xdist 9 10 }: 10 11 11 12 buildPythonPackage rec { ··· 28 29 29 30 nativeCheckInputs = [ 30 31 pytestCheckHook 32 + pytest-xdist 31 33 ] ++ passthru.optional-dependencies.argon2 32 34 ++ passthru.optional-dependencies.bcrypt 33 35 ++ passthru.optional-dependencies.totp;
+2
pkgs/development/python-modules/protobuf/default.nix
··· 41 41 fi 42 42 ''; 43 43 44 + outputs = [ "out" "dev" ]; 45 + 44 46 buildInputs = [ protobuf ]; 45 47 46 48 propagatedNativeBuildInputs = [
+13 -4
pkgs/development/python-modules/pybind11/default.nix
··· 11 11 , numpy 12 12 , pytestCheckHook 13 13 , libxcrypt 14 - }: 15 - 16 - buildPythonPackage rec { 14 + , makeSetupHook 15 + }: let 16 + setupHook = makeSetupHook { 17 + name = "pybind11-setup-hook"; 18 + substitutions = { 19 + out = placeholder "out"; 20 + pythonInterpreter = python.pythonForBuild.interpreter; 21 + pythonIncludeDir = "${python}/include/python${python.pythonVersion}"; 22 + pythonSitePackages = "${python}/${python.sitePackages}"; 23 + }; 24 + } ./setup-hook.sh; 25 + in buildPythonPackage rec { 17 26 pname = "pybind11"; 18 27 version = "2.10.4"; 19 28 ··· 30 39 31 40 nativeBuildInputs = [ cmake ]; 32 41 buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; 42 + propagatedBuildInputs = [ setupHook ]; 33 43 34 44 dontUseCmakeBuildDir = true; 35 45 ··· 43 53 cmakeFlags = [ 44 54 "-DBoost_INCLUDE_DIR=${lib.getDev boost}/include" 45 55 "-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3" 46 - "-DPYTHON_EXECUTABLE:FILEPATH=${python.pythonForBuild.interpreter}" 47 56 ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ 48 57 "-DPYBIND11_CXX_STANDARD=-std=c++17" 49 58 ];
+12
pkgs/development/python-modules/pybind11/setup-hook.sh
··· 1 + # Tell the pybind11 CMake module where to find host platform Python. This is 2 + # required when cross-compiling. 3 + pybind11CMakeFlags () { 4 + cmakeFlagsArray+=( 5 + '-DPYBIND11_PYTHONLIBS_OVERWRITE=OFF' 6 + '-DPYTHON_EXECUTABLE=@pythonInterpreter@' 7 + '-DPYTHON_INCLUDE_DIR=@pythonIncludeDir@' 8 + '-DPYTHON_SITE_PACKAGES=@pythonSitePackages@' 9 + ) 10 + } 11 + 12 + preConfigureHooks+=(pybind11CMakeFlags)
+2 -2
pkgs/development/python-modules/pyopenssl/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "pyopenssl"; 16 - version = "23.0.0"; 16 + version = "23.1.1"; 17 17 format = "setuptools"; 18 18 19 19 src = fetchPypi { 20 20 pname = "pyOpenSSL"; 21 21 inherit version; 22 - hash = "sha256-wcxfhrys78hNrafTEXXK4bFRjV9g09C7WVpngiqGim8="; 22 + hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc="; 23 23 }; 24 24 25 25 outputs = [
+6
pkgs/development/python-modules/pyquery/default.nix
··· 22 22 hash = "sha256-lj6NTpAmL/bY3sBy6pcoXcN0ovacrXd29AgqvPah2K4="; 23 23 }; 24 24 25 + # https://github.com/gawel/pyquery/issues/248 26 + postPatch = '' 27 + substituteInPlace tests/test_pyquery.py \ 28 + --replace test_selector_html skip_test_selector_html 29 + ''; 30 + 25 31 propagatedBuildInputs = [ 26 32 cssselect 27 33 lxml
-3
pkgs/development/python-modules/scikit-learn/default.nix
··· 55 55 export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES 56 56 ''; 57 57 58 - # TODO: a proper fix? See around PR #225220 59 - NIX_LDFLAGS = if stdenv.cc.isGNU then "-L${stdenv.cc.cc.lib}/lib" else null; 60 - 61 58 doCheck = !stdenv.isAarch64; 62 59 63 60 disabledTests = [
+15 -12
pkgs/development/python-modules/sqlalchemy/default.nix
··· 1 - { stdenv 2 - , lib 1 + { lib 3 2 , isPyPy 4 3 , pythonOlder 5 4 , fetchPypi 5 + , fetchFromGitHub 6 6 , buildPythonPackage 7 7 8 8 # build ··· 14 14 , typing-extensions 15 15 16 16 # optionals 17 + , aiomysql 17 18 , aiosqlite 18 19 , asyncmy 19 20 , asyncpg ··· 40 41 41 42 buildPythonPackage rec { 42 43 pname = "SQLAlchemy"; 43 - version = "2.0.6"; 44 + version = "2.0.9"; 44 45 format = "pyproject"; 45 46 46 47 disabled = pythonOlder "3.7"; 47 48 48 - src = fetchPypi { 49 - inherit pname version; 50 - hash = "sha256-w0PwtUZJX116I5xwv1CpmkjXMhwWW4Kvr6hIO56+v24="; 49 + src = fetchFromGitHub { 50 + owner = "sqlalchemy"; 51 + repo = "sqlalchemy"; 52 + rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}"; 53 + hash = "sha256-0WlRZ7Kv6owtZB+PDFKk+8dxEL4p3QQrRPq8eQd2PqM="; 51 54 }; 52 55 53 56 nativeBuildInputs =[ ··· 61 64 typing-extensions 62 65 ]; 63 66 64 - passthru.optional-dependencies = rec { 67 + passthru.optional-dependencies = lib.fix (self: { 65 68 asyncio = [ 66 69 greenlet 67 70 ]; ··· 100 103 ]; 101 104 postgresql_asyncpg = [ 102 105 asyncpg 103 - ] ++ asyncio; 106 + ] ++ self.asyncio; 104 107 postgresql_psycopg2binary = [ 105 108 psycopg2 106 109 ]; ··· 115 118 ]; 116 119 aiomysql = [ 117 120 aiomysql 118 - ] ++ asyncio; 121 + ] ++ self.asyncio; 119 122 asyncmy = [ 120 123 asyncmy 121 - ] ++ asyncio; 124 + ] ++ self.asyncio; 122 125 aiosqlite = [ 123 126 aiosqlite 124 127 typing-extensions 125 - ] ++ asyncio; 128 + ] ++ self.asyncio; 126 129 sqlcipher = [ 127 130 # TODO: sqlcipher3 128 131 ]; 129 - }; 132 + }); 130 133 131 134 nativeCheckInputs = [ 132 135 pytest-xdist
+8 -2
pkgs/development/python-modules/virtualenv/default.nix
··· 1 1 { lib 2 - , stdenv 3 2 , buildPythonPackage 4 3 , pythonOlder 5 4 , isPy27 5 + , isPyPy 6 6 , cython 7 7 , distlib 8 8 , fetchPypi ··· 12 12 , hatchling 13 13 , importlib-metadata 14 14 , importlib-resources 15 - , pathlib2 16 15 , platformdirs 17 16 , pytest-freezegun 18 17 , pytest-mock ··· 76 75 "test_seed_link_via_app_data" 77 76 # Permission Error 78 77 "test_bad_exe_py_info_no_raise" 78 + ] ++ lib.optionals (isPyPy) [ 79 + # encoding problems 80 + "test_bash" 81 + # permission error 82 + "test_can_build_c_extensions" 83 + # fails to detect pypy version 84 + "test_discover_ok" 79 85 ]; 80 86 81 87 pythonImportsCheck = [
+23
pkgs/development/python-modules/wheezy-template/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + }: 5 + 6 + buildPythonPackage rec { 7 + pname = "wheezy.template"; 8 + version = "3.1.0"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + hash = "sha256-4RAHysczaNzhKZjjS2bEdgFrtGFHH/weTVboQALslg8="; 13 + }; 14 + 15 + pythonImportsCheck = [ "wheezy.template" ]; 16 + 17 + meta = with lib; { 18 + homepage = "https://wheezytemplate.readthedocs.io/en/latest/"; 19 + description = "A lightweight template library"; 20 + license = licenses.mit; 21 + maintainers = with maintainers; [ lilyinstarlight ]; 22 + }; 23 + }
+4
pkgs/development/python-modules/yapf/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , isPyPy 4 5 , nose 5 6 }: 6 7 ··· 12 13 inherit pname version; 13 14 hash = "sha256-o/UIXTfvfj4ATEup+bPkDFT/GQHNER8FFFrjE6fGfRs="; 14 15 }; 16 + 17 + # nose is unavailable on pypy 18 + doCheck = !isPyPy; 15 19 16 20 nativeCheckInputs = [ 17 21 nose
+2 -2
pkgs/development/ruby-modules/bundler/default.nix
··· 4 4 inherit ruby; 5 5 name = "${gemName}-${version}"; 6 6 gemName = "bundler"; 7 - version = "2.4.10"; 8 - source.sha256 = "sha256-uYBvqUQGOmqGdqj57Ux8d2o2w7yC8mxXYIZ6AoW0oSE="; 7 + version = "2.4.12"; 8 + source.sha256 = "sha256-y1VM1Pi/Rx0XeTff5vUv7mCtcLtKr3ENcnD6SiTezk0="; 9 9 dontPatchShebangs = true; 10 10 11 11 postFixup = ''
+11
pkgs/development/tools/gnulib/default.nix
··· 26 26 # do not change headers to not update all vendored build files 27 27 dontFixup = true; 28 28 29 + passthru = { 30 + # This patch is used by multiple other packages (currently: 31 + # gnused, gettext) which contain vendored copies of gnulib. 32 + # Without it, compilation will fail with error messages about 33 + # "__LDBL_REDIR1_DECL" or similar on platforms with longdouble 34 + # redirects (currently powerpc64). Once all of those other 35 + # packages make a release with a newer gnulib we can drop this 36 + # patch. 37 + longdouble-redirect-patch = ./gnulib-longdouble-redirect.patch; 38 + }; 39 + 29 40 meta = with lib; { 30 41 description = "Central location for code to be shared among GNU packages"; 31 42 homepage = "https://www.gnu.org/software/gnulib/";
+72
pkgs/development/tools/gnulib/gnulib-longdouble-redirect.patch
··· 1 + 2 + Below is the subset of gnulib commit 3 + 776af40e09b476a41073131a90022572f448c189 which deals with long double 4 + redirects. The rest of that commit has been removed. 5 + 6 + diff --git a/lib/cdefs.h b/lib/cdefs.h 7 + index fd72b7b..4383e70 100644 8 + --- a/lib/cdefs.h 9 + +++ b/lib/cdefs.h 10 + @@ -483,7 +493,37 @@ 11 + # include <bits/long-double.h> 12 + #endif 13 + 14 + -#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH 15 + +#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 16 + +# ifdef __REDIRECT 17 + + 18 + +/* Alias name defined automatically. */ 19 + +# define __LDBL_REDIR(name, proto) ... unused__ldbl_redir 20 + +# define __LDBL_REDIR_DECL(name) \ 21 + + extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128")); 22 + + 23 + +/* Alias name defined automatically, with leading underscores. */ 24 + +# define __LDBL_REDIR2_DECL(name) \ 25 + + extern __typeof (__##name) __##name \ 26 + + __asm (__ASMNAME ("__" #name "ieee128")); 27 + + 28 + +/* Alias name defined manually. */ 29 + +# define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1 30 + +# define __LDBL_REDIR1_DECL(name, alias) \ 31 + + extern __typeof (name) name __asm (__ASMNAME (#alias)); 32 + + 33 + +# define __LDBL_REDIR1_NTH(name, proto, alias) \ 34 + + __REDIRECT_NTH (name, proto, alias) 35 + +# define __REDIRECT_NTH_LDBL(name, proto, alias) \ 36 + + __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128) 37 + + 38 + +/* Unused. */ 39 + +# define __REDIRECT_LDBL(name, proto, alias) ... unused__redirect_ldbl 40 + +# define __LDBL_REDIR_NTH(name, proto) ... unused__ldbl_redir_nth 41 + + 42 + +# else 43 + +_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform"); 44 + +# endif 45 + +#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH 46 + # define __LDBL_COMPAT 1 47 + # ifdef __REDIRECT 48 + # define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias) 49 + @@ -492,6 +532,8 @@ 50 + # define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias) 51 + # define __LDBL_REDIR_NTH(name, proto) \ 52 + __LDBL_REDIR1_NTH (name, proto, __nldbl_##name) 53 + +# define __LDBL_REDIR2_DECL(name) \ 54 + + extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name)); 55 + # define __LDBL_REDIR1_DECL(name, alias) \ 56 + extern __typeof (name) name __asm (__ASMNAME (#alias)); 57 + # define __LDBL_REDIR_DECL(name) \ 58 + @@ -502,11 +544,13 @@ 59 + __LDBL_REDIR1_NTH (name, proto, __nldbl_##alias) 60 + # endif 61 + #endif 62 + -#if !defined __LDBL_COMPAT || !defined __REDIRECT 63 + +#if (!defined __LDBL_COMPAT && __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0) \ 64 + + || !defined __REDIRECT 65 + # define __LDBL_REDIR1(name, proto, alias) name proto 66 + # define __LDBL_REDIR(name, proto) name proto 67 + # define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW 68 + # define __LDBL_REDIR_NTH(name, proto) name proto __THROW 69 + +# define __LDBL_REDIR2_DECL(name) 70 + # define __LDBL_REDIR_DECL(name) 71 + # ifdef __REDIRECT 72 + # define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias)
+116
pkgs/development/tools/hotdoc/default.nix
··· 1 + { lib 2 + , stdenv 3 + , buildPythonApplication 4 + , fetchPypi 5 + , pytestCheckHook 6 + , pkg-config 7 + , cmake 8 + , flex 9 + , glib 10 + , json-glib 11 + , libxml2 12 + , appdirs 13 + , dbus-deviation 14 + , faust-cchardet 15 + , feedgen 16 + , lxml 17 + , networkx 18 + , pkgconfig 19 + , pyyaml 20 + , schema 21 + , setuptools 22 + , toposort 23 + , wheezy-template 24 + , libclang 25 + , gst_all_1 26 + }: 27 + 28 + buildPythonApplication rec { 29 + pname = "hotdoc"; 30 + version = "0.13.7"; 31 + 32 + src = fetchPypi { 33 + inherit pname version; 34 + hash = "sha256-ESOmWeLJSXLDKBPsMBGR0zPbJHEqg/fj0G3VjUfPAJg="; 35 + }; 36 + 37 + nativeBuildInputs = [ 38 + pkg-config 39 + cmake 40 + flex 41 + ]; 42 + 43 + buildInputs = [ 44 + glib 45 + json-glib 46 + libxml2.dev 47 + ]; 48 + 49 + propagatedBuildInputs = [ 50 + appdirs 51 + dbus-deviation 52 + faust-cchardet 53 + feedgen 54 + lxml 55 + networkx 56 + pkgconfig 57 + pyyaml 58 + schema 59 + setuptools # for pkg_resources 60 + toposort 61 + wheezy-template 62 + ]; 63 + 64 + nativeCheckInputs = [ 65 + pytestCheckHook 66 + ]; 67 + 68 + # CMake is used to build CMARK, but the build system is still python 69 + dontUseCmakeConfigure = true; 70 + 71 + # Ensure C+GI+GST extensions are built and can be imported 72 + pythonImportsCheck = [ 73 + "hotdoc.extensions.c.c_extension" 74 + "hotdoc.extensions.gi.gi_extension" 75 + "hotdoc.extensions.gst.gst_extension" 76 + ]; 77 + 78 + # Run the tests by package instead of current dir 79 + pytestFlagsArray = [ "--pyargs" "hotdoc" ]; 80 + 81 + disabledTests = [ 82 + # Test does not correctly handle path normalization for test comparison 83 + "test_cli_overrides" 84 + ] ++ lib.optionals stdenv.isDarwin [ 85 + # Test does not correctly handle absolute /home paths on Darwin (even fake ones) 86 + "test_index" 87 + ]; 88 + 89 + # Hardcode libclang paths 90 + postPatch = '' 91 + substituteInPlace hotdoc/extensions/c/c_extension.py \ 92 + --replace "shutil.which('llvm-config')" 'True' \ 93 + --replace "subprocess.check_output(['llvm-config', '--version']).strip().decode()" '"${libclang.version}"' \ 94 + --replace "subprocess.check_output(['llvm-config', '--prefix']).strip().decode()" '"${libclang.lib}"' \ 95 + --replace "subprocess.check_output(['llvm-config', '--libdir']).strip().decode()" '"${libclang.lib}/lib"' 96 + ''; 97 + 98 + # Make pytest run from a temp dir to have it pick up installed package for cmark 99 + preCheck = '' 100 + pushd $TMPDIR 101 + ''; 102 + postCheck = '' 103 + popd 104 + ''; 105 + 106 + passthru.tests = { 107 + inherit (gst_all_1) gstreamer gst-plugins-base; 108 + }; 109 + 110 + meta = with lib; { 111 + description = "The tastiest API documentation system"; 112 + homepage = "https://hotdoc.github.io/"; 113 + license = [ licenses.lgpl21Plus ]; 114 + maintainers = with maintainers; [ lilyinstarlight ]; 115 + }; 116 + }
+1 -1
pkgs/development/tools/misc/elfutils/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, musl-fts 2 2 , musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs 3 3 , argp-standalone 4 - , enableDebuginfod ? false, sqlite, curl, libmicrohttpd, libarchive 4 + , enableDebuginfod ? true, sqlite, curl, libmicrohttpd, libarchive 5 5 , gitUpdater 6 6 }: 7 7
+1 -1
pkgs/development/tools/misc/gdb/default.nix
··· 7 7 , ncurses, readline, gmp, mpfr, expat, libipt, zlib, zstd, dejagnu, sourceHighlight 8 8 9 9 , pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null 10 - , enableDebuginfod ? false, elfutils 10 + , enableDebuginfod ? true, elfutils 11 11 , guile ? null 12 12 , hostCpuOnly ? false 13 13 , safePaths ? [
+2 -2
pkgs/development/tools/misc/texinfo/7.0.nix
··· 1 1 import ./common.nix { 2 - version = "7.0.2"; 3 - sha256 = "sha256-8hHsMmE4PhqJ5FVak7nQF/6Ae5w5kvst/0hx2ubaVK0="; 2 + version = "7.0.3"; 3 + sha256 = "sha256-dLQg0J1/Uo6E+XqjMPDdaamKYFPnpOAXZ+7RFQOIB78="; 4 4 }
+9
pkgs/development/tools/misc/texinfo/common.nix
··· 1 1 { version, sha256, patches ? [] }: 2 2 3 3 { lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash 4 + , gnulib 4 5 5 6 # we are a dependency of gcc, this simplifies bootstraping 6 7 , interactive ? false, ncurses, procps ··· 30 31 31 32 postPatch = '' 32 33 patchShebangs tp/maintain 34 + '' 35 + # This patch is needed for IEEE-standard long doubles on 36 + # powerpc64; it does not apply cleanly to texinfo 5.x or 37 + # earlier. It is merged upstream in texinfo 6.8. 38 + + lib.optionalString (version == "6.7") '' 39 + patch -p1 -d gnulib < ${gnulib.passthru.longdouble-redirect-patch} 33 40 ''; 34 41 35 42 # ncurses is required to build `makedoc' ··· 82 89 license = licenses.gpl3Plus; 83 90 platforms = platforms.all; 84 91 maintainers = with maintainers; [ vrthra oxij ]; 92 + # see comment above in patches section 93 + broken = stdenv.hostPlatform.isPower64 && lib.strings.versionOlder version "6.0"; 85 94 86 95 longDescription = '' 87 96 Texinfo is the official documentation format of the GNU project.
+2 -2
pkgs/development/web/nodejs/v18.nix
··· 9 9 in 10 10 buildNodejs { 11 11 inherit enableNpm; 12 - version = "18.15.0"; 13 - sha256 = "sha256-jkTWUBj/lzKEGVwjGGRpoOpAgul+xCAOX1cG1VhNqjc="; 12 + version = "18.16.0"; 13 + sha256 = "sha256-M9gaIz4jWlCa3aSk8iCQCNBFkZed5rPw9nwckGCT8Rg="; 14 14 patches = [ 15 15 ./disable-darwin-v8-system-instrumentation.patch 16 16 ./bypass-darwin-xcrun-node16.patch
+50 -13
pkgs/misc/ghostscript/default.nix
··· 1 - { config, stdenv, lib, fetchurl, pkg-config, zlib, expat, openssl, autoconf 2 - , libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec 3 - , libiconv, ijs, lcms2, callPackage, bash, buildPackages, openjpeg 4 - , cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups 5 - , x11Support ? cupsSupport, xorg # with CUPS, X11 only adds very little 1 + { config 2 + , stdenv 3 + , lib 4 + , fetchurl 5 + , pkg-config 6 + , zlib 7 + , expat 8 + , openssl 9 + , autoconf 10 + , libjpeg 11 + , libpng 12 + , libtiff 13 + , freetype 14 + , fontconfig 15 + , libpaper 16 + , jbig2dec 17 + , libiconv 18 + , ijs 19 + , lcms2 20 + , callPackage 21 + , bash 22 + , buildPackages 23 + , openjpeg 24 + , cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin) 25 + , cups 26 + , x11Support ? cupsSupport 27 + , xorg # with CUPS, X11 only adds very little 28 + , dynamicDrivers ? true 29 + 30 + # for passthru.tests 31 + , graphicsmagick 32 + , imagemagick 33 + , libspectre 34 + , lilypond 35 + , pstoedit 36 + , python3 6 37 }: 7 38 8 39 let ··· 30 61 in 31 62 stdenv.mkDerivation rec { 32 63 pname = "ghostscript${lib.optionalString (x11Support) "-with-X"}"; 33 - version = "9.56.1"; 64 + version = "10.01.1"; 34 65 35 66 src = fetchurl { 36 - url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9${lib.versions.minor version}${lib.versions.patch version}/ghostscript-${version}.tar.xz"; 37 - sha512 = "22ysgdprh960rxmxyk2fy2my47cdrhfhbrwar1955hvad54iw79l916drp92wh3qzbxw6z40i70wk00vz8bn2ryig7qgpc1q01m2npy"; 67 + url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${lib.replaceStrings ["."] [""] version}/ghostscript-${version}.tar.xz"; 68 + hash = "sha512-2US+norvaNEXbWTEDbb6htVdDJ4wBH8hR8AoBqthz+msLLANTlshj/PFHMbtR87/4brE3Z1MwXYLeXTzDGwnNQ=="; 38 69 }; 39 70 40 71 patches = [ ··· 77 108 78 109 configureFlags = [ 79 110 "--with-system-libtiff" 111 + "--without-tesseract" 112 + ] ++ lib.optionals dynamicDrivers [ 80 113 "--enable-dynamic" 81 - "--without-tesseract" 82 - ] 83 - ++ lib.optional x11Support "--with-x" 84 - ++ lib.optionals cupsSupport [ 114 + "--disable-hidden-visibility" 115 + ] ++ lib.optional x11Support [ 116 + "--with-x" 117 + ] ++ lib.optionals cupsSupport [ 85 118 "--enable-cups" 86 119 ]; 87 120 ··· 133 166 runHook postInstallCheck 134 167 ''; 135 168 136 - passthru.tests.test-corpus-render = callPackage ./test-corpus-render.nix {}; 169 + passthru.tests = { 170 + test-corpus-render = callPackage ./test-corpus-render.nix {}; 171 + inherit graphicsmagick imagemagick libspectre lilypond pstoedit; 172 + inherit (python3.pkgs) matplotlib; 173 + }; 137 174 138 175 meta = { 139 176 homepage = "https://www.ghostscript.com/";
+3 -3
pkgs/misc/ghostscript/test-corpus-render.nix
··· 5 5 6 6 stdenv.mkDerivation { 7 7 pname = "ghostscript-test-corpus-render"; 8 - version = "unstable-2020-02-19"; 8 + version = "unstable-2022-12-01"; 9 9 10 10 src = fetchgit { 11 11 url = "git://git.ghostscript.com/tests.git"; 12 - rev = "efdd224340d9a407ed3ec22afa1cb127c8fee73c"; 13 - sha256 = "1v1iqz897zzrwa8ng22zcf3y61ab5798jdwidgv10w1r9mjrl7ax"; 12 + rev = "e81c3a1d7c679aab8230e9152165d8cffb687242"; 13 + hash = "sha256-h+UHpCHASYOhf4xG6gkVJK9TEG85kE3jNx5cD1I3LQg="; 14 14 }; 15 15 16 16 dontConfigure = true;
+3 -41
pkgs/os-specific/linux/audit/default.nix
··· 12 12 13 13 stdenv.mkDerivation rec { 14 14 pname = "audit"; 15 - version = "2.8.5"; # at the next release, remove the patches below! 15 + version = "3.1"; 16 16 17 17 src = fetchurl { 18 18 url = "https://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz"; 19 - sha256 = "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"; 19 + sha256 = "sha256-tc882rsnhsCLHeNZmjsaVH5V96n5wesgePW0TPROg3g="; 20 20 }; 21 21 22 22 outputs = [ "bin" "dev" "out" "man" ]; ··· 37 37 ]; 38 38 39 39 enableParallelBuilding = true; 40 - 41 - # TODO: Remove the musl patches when 42 - # https://github.com/linux-audit/audit-userspace/pull/25 43 - # is available with the next release. 44 40 patches = [ 45 - ./patches/weak-symbols.patch 46 - (fetchpatch { 47 - # upstream build fix against -fno-common compilers like >=gcc-10 48 - url = "https://github.com/linux-audit/audit-userspace/commit/017e6c6ab95df55f34e339d2139def83e5dada1f.patch"; 49 - sha256 = "100xa1rzkv0mvhjbfgpfm72f7c4p68syflvgc3xm6pxgrqqmfq8h"; 50 - }) 51 - 52 - ( 53 - let patch = fetchpatch { 54 - url = "https://github.com/linux-audit/audit-userspace/commit/d579a08bb1cde71f939c13ac6b2261052ae9f77e.patch"; 55 - name = "Add-substitue-functions-for-strndupa-rawmemchr.patch"; 56 - sha256 = "015bvzflg1s1k5viap30nznlpjj44a66khyc8yq0waa68qwvdlsd"; 57 - }; 58 - in 59 - runCommand "Add-substitue-functions-for-strndupa-rawmemchr.patch-fix-copyright-merge-conflict" {} '' 60 - cp ${patch} $out 61 - substituteInPlace $out --replace \ 62 - '-* Copyright (c) 2007-09,2011-16,2018 Red Hat Inc., Durham, North Carolina.' \ 63 - '-* Copyright (c) 2007-09,2011-16 Red Hat Inc., Durham, North Carolina.' 64 - '' 65 - ) 41 + ./fix-static.patch 66 42 67 - # upstream fix for linux-headers-5.15 which removed ipx.h 68 - (fetchpatch { 69 - name = "no-ipx.patch"; 70 - url = "https://github.com/linux-audit/audit-userspace/commit/6b09724c69d91668418ddb3af00da6db6755208c.patch"; 71 - sha256 = "0qjq41ridyamajz9v9nyplgq7f8nn3fxw375s9sa5a0igsrx9pm0"; 72 - excludes = [ "ChangeLog" ]; 73 - }) 74 43 # Fix pending upstream inclusion for linux-headers-5.17 support: 75 44 # https://github.com/linux-audit/audit-userspace/pull/253 76 45 (fetchpatch { ··· 85 54 substituteInPlace bindings/swig/src/auditswig.i \ 86 55 --replace "/usr/include/linux/audit.h" \ 87 56 "${linuxHeaders}/include/linux/audit.h" 88 - '' 89 - # According to https://stackoverflow.com/questions/13089166 90 - # --whole-archive linker flag is required to be sure that linker 91 - # correctly chooses strong version of symbol regardless of order of 92 - # object files at command line. 93 - + lib.optionalString stdenv.hostPlatform.isStatic '' 94 - export LDFLAGS=-Wl,--whole-archive 95 57 ''; 96 58 meta = { 97 59 description = "Audit Library";
+12
pkgs/os-specific/linux/audit/fix-static.patch
··· 1 + --- a/auparse/auparse.h 2 + +++ b/auparse/auparse.h 3 + @@ -32,6 +32,9 @@ 4 + # define __attr_dealloc(dealloc, argno) 5 + # define __attr_dealloc_free 6 + #endif 7 + +#ifndef __attribute_malloc__ 8 + +# define __attribute_malloc__ __attribute__ ((__malloc__)) 9 + +#endif 10 + 11 + #ifdef __cplusplus 12 + extern "C" {
-147
pkgs/os-specific/linux/audit/patches/weak-symbols.patch
··· 1 - Executables in src/ directory are built from source files in src/ 2 - and are linked to libauparse, with both src/auditd-config.c and 3 - auparse/auditd-config.c defining "free_config" function. 4 - 5 - It is known (although obscure) behaviour of shared libraries that 6 - symbol defined in binary itself overrides symbol in shared library; 7 - with static linkage it expectedly results in multiple definition 8 - error. 9 - 10 - This set of fixes explicitly marks libauparse versions of 11 - conflicting functions as weak to have behaviour coherent with 12 - dynamic linkage version -- definitions in src/ overriding definition 13 - in auparse/. 14 - 15 - Still, this architecture is very strange and confusing. 16 - 17 - diff -r -U5 audit-2.8.5-orig/auparse/auditd-config.c audit-2.8.5/auparse/auditd-config.c 18 - --- audit-2.8.5-orig/auparse/auditd-config.c 2019-03-01 20:19:13.000000000 +0000 19 - +++ audit-2.8.5/auparse/auditd-config.c 2021-01-13 11:36:12.716226498 +0000 20 - @@ -68,10 +68,11 @@ 21 - }; 22 - 23 - /* 24 - * Set everything to its default value 25 - */ 26 - +#pragma weak clear_config 27 - void clear_config(struct daemon_conf *config) 28 - { 29 - config->local_events = 1; 30 - config->qos = QOS_NON_BLOCKING; 31 - config->sender_uid = 0; 32 - @@ -322,10 +323,11 @@ 33 - if (config->log_file == NULL) 34 - return 1; 35 - return 0; 36 - } 37 - 38 - +#pragma weak free_config 39 - void free_config(struct daemon_conf *config) 40 - { 41 - free((void*)config->log_file); 42 - } 43 - 44 - diff -r -U5 audit-2.8.5-orig/auparse/interpret.c audit-2.8.5/auparse/interpret.c 45 - --- audit-2.8.5-orig/auparse/interpret.c 2019-03-01 20:19:13.000000000 +0000 46 - +++ audit-2.8.5/auparse/interpret.c 2021-01-13 11:39:42.107217224 +0000 47 - @@ -545,10 +545,11 @@ 48 - else 49 - snprintf(buf, size, "unknown(%d)", uid); 50 - return buf; 51 - } 52 - 53 - +#pragma weak aulookup_destroy_uid_list 54 - void aulookup_destroy_uid_list(void) 55 - { 56 - if (uid_cache_created == 0) 57 - return; 58 - 59 - @@ -2810,10 +2811,11 @@ 60 - 61 - /* 62 - * This is the main entry point for the auparse library. Call chain is: 63 - * auparse_interpret_field -> nvlist_interp_cur_val -> interpret 64 - */ 65 - +#pragma weak interpret 66 - const char *interpret(const rnode *r, auparse_esc_t escape_mode) 67 - { 68 - const nvlist *nv = &r->nv; 69 - int type; 70 - idata id; 71 - diff -r -U5 audit-2.8.5-orig/auparse/nvlist.c audit-2.8.5/auparse/nvlist.c 72 - --- audit-2.8.5-orig/auparse/nvlist.c 2019-02-04 14:26:52.000000000 +0000 73 - +++ audit-2.8.5/auparse/nvlist.c 2021-01-13 11:37:37.190222757 +0000 74 - @@ -27,10 +27,11 @@ 75 - #include "nvlist.h" 76 - #include "interpret.h" 77 - #include "auparse-idata.h" 78 - 79 - 80 - +#pragma weak nvlist_create 81 - void nvlist_create(nvlist *l) 82 - { 83 - l->head = NULL; 84 - l->cur = NULL; 85 - l->cnt = 0; 86 - @@ -47,17 +48,19 @@ 87 - while (node->next) 88 - node = node->next; 89 - l->cur = node; 90 - } 91 - 92 - +#pragma weak nvlist_next 93 - nvnode *nvlist_next(nvlist *l) 94 - { 95 - if (l->cur) 96 - l->cur = l->cur->next; 97 - return l->cur; 98 - } 99 - 100 - +#pragma weak nvlist_append 101 - void nvlist_append(nvlist *l, nvnode *node) 102 - { 103 - nvnode* newnode = malloc(sizeof(nvnode)); 104 - 105 - newnode->name = node->name; 106 - @@ -141,10 +144,11 @@ 107 - if (l->cur->interp_val) 108 - return l->cur->interp_val; 109 - return interpret(r, escape_mode); 110 - } 111 - 112 - +#pragma weak nvlist_clear 113 - void nvlist_clear(nvlist* l) 114 - { 115 - nvnode* nextnode; 116 - register nvnode* current; 117 - 118 - diff -r -U5 audit-2.8.5-orig/auparse/strsplit.c audit-2.8.5/auparse/strsplit.c 119 - --- audit-2.8.5-orig/auparse/strsplit.c 2019-03-01 21:15:30.000000000 +0000 120 - +++ audit-2.8.5/auparse/strsplit.c 2021-01-13 11:38:04.306221556 +0000 121 - @@ -54,10 +54,11 @@ 122 - return NULL; 123 - return s; 124 - } 125 - } 126 - 127 - +#pragma weak audit_strsplit 128 - char *audit_strsplit(char *s) 129 - { 130 - static char *str = NULL; 131 - char *ptr; 132 - 133 - diff -r -U5 audit-2.8.5-orig/lib/strsplit.c audit-2.8.5/lib/strsplit.c 134 - --- audit-2.8.5-orig/lib/strsplit.c 2019-03-01 20:19:13.000000000 +0000 135 - +++ audit-2.8.5/lib/strsplit.c 2021-01-13 11:38:29.444220443 +0000 136 - @@ -23,10 +23,11 @@ 137 - 138 - #include <string.h> 139 - #include "libaudit.h" 140 - #include "private.h" 141 - 142 - +#pragma weak audit_strsplit_r 143 - char *audit_strsplit_r(char *s, char **savedpp) 144 - { 145 - char *ptr; 146 - 147 - if (s)
+1
pkgs/os-specific/linux/bcc/default.nix
··· 40 40 "-DENABLE_USDT=ON" 41 41 "-DENABLE_CPP_API=ON" 42 42 "-DCMAKE_USE_LIBBPF_PACKAGE=ON" 43 + "-DENABLE_LIBDEBUGINFOD=OFF" 43 44 ]; 44 45 45 46 # to replace this executable path:
+1
pkgs/os-specific/linux/kernel/common-config.nix
··· 904 904 905 905 REGULATOR = yes; # Voltage and Current Regulator Support 906 906 RC_DEVICES = option yes; # Enable IR devices 907 + RC_DECODERS = option yes; # Required for IR devices to work 907 908 908 909 RT2800USB_RT53XX = yes; 909 910 RT2800USB_RT55XX = yes;
+15 -2
pkgs/os-specific/linux/pam_mount/default.nix
··· 18 18 --replace @@NIX_UTILLINUX@@ ${util-linux}/bin 19 19 ''; 20 20 21 - nativeBuildInputs = [ autoreconfHook libtool pkg-config ]; 21 + nativeBuildInputs = [ 22 + autoreconfHook 23 + libtool 24 + perl 25 + pkg-config 26 + ]; 22 27 23 - buildInputs = [ pam libHX util-linux libxml2 pcre2 perl openssl cryptsetup ]; 28 + buildInputs = [ 29 + cryptsetup 30 + libHX 31 + libxml2 32 + openssl 33 + pam 34 + pcre2 35 + util-linux 36 + ]; 24 37 25 38 enableParallelBuilding = true; 26 39
+3 -3
pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
··· 10 10 1 file changed, 2 insertions(+) 11 11 12 12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 13 - index 36d336dfc8..d62c5173ca 100644 13 + index a697ea5cb9..65d9e7e398 100644 14 14 --- a/src/nspawn/nspawn.c 15 15 +++ b/src/nspawn/nspawn.c 16 - @@ -5634,6 +5634,7 @@ static int run(int argc, char *argv[]) { 16 + @@ -5635,6 +5635,7 @@ static int run(int argc, char *argv[]) { 17 17 goto finish; 18 18 } 19 19 } else { ··· 21 21 _cleanup_free_ char *p = NULL; 22 22 23 23 if (arg_pivot_root_new) 24 - @@ -5648,6 +5649,7 @@ static int run(int argc, char *argv[]) { 24 + @@ -5649,6 +5650,7 @@ static int run(int argc, char *argv[]) { 25 25 "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory); 26 26 goto finish; 27 27 }
-33
pkgs/os-specific/linux/systemd/0004-Look-for-fsck-in-the-right-place.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 - Date: Thu, 1 May 2014 14:10:10 +0200 4 - Subject: [PATCH] Look for fsck in the right place 5 - 6 - --- 7 - src/fsck/fsck.c | 6 +++++- 8 - 1 file changed, 5 insertions(+), 1 deletion(-) 9 - 10 - diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c 11 - index e25c5d5efa..26f4e5669e 100644 12 - --- a/src/fsck/fsck.c 13 - +++ b/src/fsck/fsck.c 14 - @@ -351,6 +351,7 @@ static int run(int argc, char *argv[]) { 15 - if (r == 0) { 16 - char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1]; 17 - int progress_socket = -1; 18 - + _cleanup_free_ char *fsck_name = NULL; 19 - const char *cmdline[9]; 20 - int i = 0; 21 - 22 - @@ -371,7 +372,10 @@ static int run(int argc, char *argv[]) { 23 - } else 24 - dash_c[0] = 0; 25 - 26 - - cmdline[i++] = "/sbin/fsck"; 27 - + r = find_executable("fsck", &fsck_name); 28 - + if (r < 0) 29 - + return r; 30 - + cmdline[i++] = fsck_name; 31 - cmdline[i++] = arg_repair; 32 - cmdline[i++] = "-T"; 33 -
+152
pkgs/os-specific/linux/systemd/0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch
··· 1 + From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 + From: Florian Klink <flokli@flokli.de> 3 + Date: Thu, 13 Apr 2023 22:54:54 +0200 4 + Subject: [PATCH] fsck: look for fsck binary not just in /sbin 5 + 6 + This removes remaining hardcoded occurences of `/sbin/fsck`, and instead 7 + uses `find_executable` to find `fsck`. 8 + 9 + We also use `fsck_exists_for_fstype` to check for the `fsck.*` 10 + executable, which also checks in `$PATH`, so it's fair to assume fsck 11 + itself is also available. 12 + --- 13 + man/systemd-fsck@.service.xml | 8 ++++---- 14 + src/fsck/fsck.c | 9 ++++++++- 15 + src/home/homework-luks.c | 11 ++++++++++- 16 + src/shared/dissect-image.c | 13 +++++++++++-- 17 + 4 files changed, 33 insertions(+), 8 deletions(-) 18 + 19 + diff --git a/man/systemd-fsck@.service.xml b/man/systemd-fsck@.service.xml 20 + index e928aebdb3..403286829e 100644 21 + --- a/man/systemd-fsck@.service.xml 22 + +++ b/man/systemd-fsck@.service.xml 23 + @@ -51,17 +51,17 @@ 24 + <para><filename>systemd-fsck</filename> does not know any details 25 + about specific filesystems, and simply executes file system 26 + checkers specific to each filesystem type 27 + - (<filename>/sbin/fsck.<replaceable>type</replaceable></filename>). These checkers will decide if 28 + + (<filename>fsck.<replaceable>type</replaceable></filename>). These checkers will decide if 29 + the filesystem should actually be checked based on the time since 30 + last check, number of mounts, unclean unmount, etc.</para> 31 + 32 + <para><filename>systemd-fsck-root.service</filename> and <filename>systemd-fsck-usr.service</filename> 33 + - will activate <filename>reboot.target</filename> if <filename>/sbin/fsck</filename> returns the "System 34 + - should reboot" condition, or <filename>emergency.target</filename> if <filename>/sbin/fsck</filename> 35 + + will activate <filename>reboot.target</filename> if <filename>fsck</filename> returns the "System 36 + + should reboot" condition, or <filename>emergency.target</filename> if <filename>fsck</filename> 37 + returns the "Filesystem errors left uncorrected" condition.</para> 38 + 39 + <para><filename>systemd-fsck@.service</filename> will fail if 40 + - <filename>/sbin/fsck</filename> returns with either "System should reboot" 41 + + <filename>fsck</filename> returns with either "System should reboot" 42 + or "Filesystem errors left uncorrected" conditions. For filesystems 43 + listed in <filename>/etc/fstab</filename> without <literal>nofail</literal> 44 + or <literal>noauto</literal> options, <literal>local-fs.target</literal> 45 + diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c 46 + index e25c5d5efa..0e0e73c9ac 100644 47 + --- a/src/fsck/fsck.c 48 + +++ b/src/fsck/fsck.c 49 + @@ -351,6 +351,7 @@ static int run(int argc, char *argv[]) { 50 + if (r == 0) { 51 + char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1]; 52 + int progress_socket = -1; 53 + + _cleanup_free_ char *fsck_path = NULL; 54 + const char *cmdline[9]; 55 + int i = 0; 56 + 57 + @@ -371,7 +372,13 @@ static int run(int argc, char *argv[]) { 58 + } else 59 + dash_c[0] = 0; 60 + 61 + - cmdline[i++] = "/sbin/fsck"; 62 + + r = find_executable("fsck", &fsck_path); 63 + + if (r < 0) { 64 + + log_error_errno(r, "Cannot find fsck binary: %m"); 65 + + _exit(FSCK_OPERATIONAL_ERROR); 66 + + } 67 + + 68 + + cmdline[i++] = fsck_path; 69 + cmdline[i++] = arg_repair; 70 + cmdline[i++] = "-T"; 71 + 72 + diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c 73 + index 2ea9887853..e267457b8e 100644 74 + --- a/src/home/homework-luks.c 75 + +++ b/src/home/homework-luks.c 76 + @@ -215,6 +215,7 @@ static int block_get_size_by_path(const char *path, uint64_t *ret) { 77 + static int run_fsck(const char *node, const char *fstype) { 78 + int r, exit_status; 79 + pid_t fsck_pid; 80 + + _cleanup_free_ char *fsck_path = NULL; 81 + 82 + assert(node); 83 + assert(fstype); 84 + @@ -227,6 +228,14 @@ static int run_fsck(const char *node, const char *fstype) { 85 + return 0; 86 + } 87 + 88 + + r = find_executable("fsck", &fsck_path); 89 + + /* We proceed anyway if we can't determine whether the fsck 90 + + * binary for some specific fstype exists, 91 + + * but the lack of the main fsck binary should be considered 92 + + * an error. */ 93 + + if (r < 0) 94 + + return log_error_errno(r, "Cannot find fsck binary: %m"); 95 + + 96 + r = safe_fork("(fsck)", 97 + FORK_RESET_SIGNALS|FORK_RLIMIT_NOFILE_SAFE|FORK_DEATHSIG|FORK_LOG|FORK_STDOUT_TO_STDERR|FORK_CLOSE_ALL_FDS, 98 + &fsck_pid); 99 + @@ -234,7 +243,7 @@ static int run_fsck(const char *node, const char *fstype) { 100 + return r; 101 + if (r == 0) { 102 + /* Child */ 103 + - execl("/sbin/fsck", "/sbin/fsck", "-aTl", node, NULL); 104 + + execl(fsck_path, fsck_path, "-aTl", node, NULL); 105 + log_open(); 106 + log_error_errno(errno, "Failed to execute fsck: %m"); 107 + _exit(FSCK_OPERATIONAL_ERROR); 108 + diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c 109 + index 4749bdd230..2b6e1418dd 100644 110 + --- a/src/shared/dissect-image.c 111 + +++ b/src/shared/dissect-image.c 112 + @@ -1423,6 +1423,7 @@ static int is_loop_device(const char *path) { 113 + static int run_fsck(int node_fd, const char *fstype) { 114 + int r, exit_status; 115 + pid_t pid; 116 + + _cleanup_free_ char *fsck_path = NULL; 117 + 118 + assert(node_fd >= 0); 119 + assert(fstype); 120 + @@ -1437,6 +1438,14 @@ static int run_fsck(int node_fd, const char *fstype) { 121 + return 0; 122 + } 123 + 124 + + r = find_executable("fsck", &fsck_path); 125 + + /* We proceed anyway if we can't determine whether the fsck 126 + + * binary for some specific fstype exists, 127 + + * but the lack of the main fsck binary should be considered 128 + + * an error. */ 129 + + if (r < 0) 130 + + return log_error_errno(r, "Cannot find fsck binary: %m"); 131 + + 132 + r = safe_fork_full( 133 + "(fsck)", 134 + &node_fd, 1, /* Leave the node fd open */ 135 + @@ -1446,7 +1455,7 @@ static int run_fsck(int node_fd, const char *fstype) { 136 + return log_debug_errno(r, "Failed to fork off fsck: %m"); 137 + if (r == 0) { 138 + /* Child */ 139 + - execl("/sbin/fsck", "/sbin/fsck", "-aT", FORMAT_PROC_FD_PATH(node_fd), NULL); 140 + + execl(fsck_path, fsck_path, "-aT", FORMAT_PROC_FD_PATH(node_fd), NULL); 141 + log_open(); 142 + log_debug_errno(errno, "Failed to execl() fsck: %m"); 143 + _exit(FSCK_OPERATIONAL_ERROR); 144 + @@ -1454,7 +1463,7 @@ static int run_fsck(int node_fd, const char *fstype) { 145 + 146 + exit_status = wait_for_terminate_and_check("fsck", pid, 0); 147 + if (exit_status < 0) 148 + - return log_debug_errno(exit_status, "Failed to fork off /sbin/fsck: %m"); 149 + + return log_debug_errno(exit_status, "Failed to fork off %s: %m", fsck_path); 150 + 151 + if ((exit_status & ~FSCK_ERROR_CORRECTED) != FSCK_SUCCESS) { 152 + log_debug("fsck failed with exit status %i.", exit_status);
+1 -1
pkgs/os-specific/linux/systemd/0006-Get-rid-of-a-useless-message-in-user-sessions.patch
··· 13 13 1 file changed, 2 insertions(+), 1 deletion(-) 14 14 15 15 diff --git a/src/core/manager.c b/src/core/manager.c 16 - index 7b394794b0..50d092042c 100644 16 + index 380a4e30d7..817acb87b8 100644 17 17 --- a/src/core/manager.c 18 18 +++ b/src/core/manager.c 19 19 @@ -1437,7 +1437,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) {
+4 -5
pkgs/os-specific/linux/systemd/0007-Fix-hwdb-paths.patch pkgs/os-specific/linux/systemd/0008-Fix-hwdb-paths.patch
··· 5 5 6 6 Patch by vcunat. 7 7 --- 8 - src/libsystemd/sd-hwdb/hwdb-internal.h | 7 ++----- 9 - 1 file changed, 2 insertions(+), 5 deletions(-) 8 + src/libsystemd/sd-hwdb/hwdb-internal.h | 6 +----- 9 + 1 file changed, 1 insertion(+), 5 deletions(-) 10 10 11 11 diff --git a/src/libsystemd/sd-hwdb/hwdb-internal.h b/src/libsystemd/sd-hwdb/hwdb-internal.h 12 - index 5302679a62..c681f3a984 100644 12 + index 5302679a62..39e59a527f 100644 13 13 --- a/src/libsystemd/sd-hwdb/hwdb-internal.h 14 14 +++ b/src/libsystemd/sd-hwdb/hwdb-internal.h 15 - @@ -83,8 +83,5 @@ struct trie_value_entry2_f { 15 + @@ -83,8 +83,4 @@ struct trie_value_entry2_f { 16 16 } _packed_; 17 17 18 18 #define hwdb_bin_paths \ ··· 22 22 - _CONF_PATHS_SPLIT_USR_NULSTR("systemd/hwdb/hwdb.bin") \ 23 23 - UDEVLIBEXECDIR "/hwdb.bin\0" 24 24 + "/etc/udev/hwdb.bin\0" 25 - +
+105
pkgs/os-specific/linux/systemd/0007-hostnamed-localed-timedated-disable-methods-that-cha.patch
··· 1 + From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 + From: Gabriel Ebner <gebner@gebner.org> 3 + Date: Sun, 6 Dec 2015 14:26:36 +0100 4 + Subject: [PATCH] hostnamed, localed, timedated: disable methods that change 5 + system settings. 6 + 7 + --- 8 + src/hostname/hostnamed.c | 6 ++++++ 9 + src/locale/localed.c | 9 +++++++++ 10 + src/timedate/timedated.c | 10 ++++++++++ 11 + 3 files changed, 25 insertions(+) 12 + 13 + diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c 14 + index 36ab0148b9..7d458d196d 100644 15 + --- a/src/hostname/hostnamed.c 16 + +++ b/src/hostname/hostnamed.c 17 + @@ -1028,6 +1028,9 @@ static int method_set_static_hostname(sd_bus_message *m, void *userdata, sd_bus_ 18 + if (r < 0) 19 + return r; 20 + 21 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 22 + + "Changing system settings via systemd is not supported on NixOS."); 23 + + 24 + name = empty_to_null(name); 25 + 26 + context_read_etc_hostname(c); 27 + @@ -1091,6 +1094,9 @@ static int set_machine_info(Context *c, sd_bus_message *m, int prop, sd_bus_mess 28 + if (r < 0) 29 + return r; 30 + 31 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 32 + + "Changing system settings via systemd is not supported on NixOS."); 33 + + 34 + name = empty_to_null(name); 35 + 36 + context_read_machine_info(c); 37 + diff --git a/src/locale/localed.c b/src/locale/localed.c 38 + index 841e5e3e91..a21e34430b 100644 39 + --- a/src/locale/localed.c 40 + +++ b/src/locale/localed.c 41 + @@ -264,6 +264,9 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er 42 + 43 + use_localegen = locale_gen_check_available(); 44 + 45 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 46 + + "Changing system settings via systemd is not supported on NixOS."); 47 + + 48 + /* If single locale without variable name is provided, then we assume it is LANG=. */ 49 + if (strv_length(l) == 1 && !strchr(l[0], '=')) { 50 + if (!locale_is_valid(l[0])) 51 + @@ -382,6 +385,9 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro 52 + if (r < 0) 53 + return bus_log_parse_error(r); 54 + 55 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 56 + + "Changing system settings via systemd is not supported on NixOS."); 57 + + 58 + vc_context_empty_to_null(&in); 59 + 60 + FOREACH_STRING(name, in.keymap ?: in.toggle, in.keymap ? in.toggle : NULL) { 61 + @@ -607,6 +613,9 @@ static int method_set_x11_keyboard(sd_bus_message *m, void *userdata, sd_bus_err 62 + if (r < 0) 63 + return bus_log_parse_error(r); 64 + 65 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 66 + + "Changing system settings via systemd is not supported on NixOS."); 67 + + 68 + x11_context_empty_to_null(&in); 69 + 70 + if (!x11_context_is_safe(&in)) 71 + diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 72 + index ad483301ef..31ed86955b 100644 73 + --- a/src/timedate/timedated.c 74 + +++ b/src/timedate/timedated.c 75 + @@ -665,6 +665,10 @@ static int method_set_timezone(sd_bus_message *m, void *userdata, sd_bus_error * 76 + if (r < 0) 77 + return r; 78 + 79 + + if (getenv("NIXOS_STATIC_TIMEZONE")) 80 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 81 + + "Changing timezone via systemd is not supported when it is set in NixOS configuration."); 82 + + 83 + if (!timezone_is_valid(z, LOG_DEBUG)) 84 + return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid or not installed time zone '%s'", z); 85 + 86 + @@ -743,6 +747,9 @@ static int method_set_local_rtc(sd_bus_message *m, void *userdata, sd_bus_error 87 + if (r < 0) 88 + return r; 89 + 90 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 91 + + "Changing system settings via systemd is not supported on NixOS."); 92 + + 93 + if (lrtc == c->local_rtc && !fix_system) 94 + return sd_bus_reply_method_return(m, NULL); 95 + 96 + @@ -923,6 +930,9 @@ static int method_set_ntp(sd_bus_message *m, void *userdata, sd_bus_error *error 97 + if (r < 0) 98 + return r; 99 + 100 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 101 + + "Changing system settings via systemd is not supported on NixOS."); 102 + + 103 + r = context_update_ntp_status(c, bus, m); 104 + if (r < 0) 105 + return r;
+7 -7
pkgs/os-specific/linux/systemd/0008-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch pkgs/os-specific/linux/systemd/0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch
··· 35 35 <literal>Etc/UTC</literal>. The resulting link should lead to the 36 36 corresponding binary 37 37 diff --git a/src/basic/time-util.c b/src/basic/time-util.c 38 - index b700f364ef..116b1cec63 100644 38 + index 0bea149324..4b16115d43 100644 39 39 --- a/src/basic/time-util.c 40 40 +++ b/src/basic/time-util.c 41 - @@ -1282,7 +1282,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 41 + @@ -1283,7 +1283,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 42 42 43 43 assert(ret); 44 44 ··· 47 47 if (!f) 48 48 return -errno; 49 49 50 - @@ -1321,7 +1321,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 50 + @@ -1322,7 +1322,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 51 51 _cleanup_strv_free_ char **zones = NULL; 52 52 int r; 53 53 ··· 56 56 if (!f) 57 57 return -errno; 58 58 59 - @@ -1433,7 +1433,7 @@ int verify_timezone(const char *name, int log_level) { 59 + @@ -1434,7 +1434,7 @@ int verify_timezone(const char *name, int log_level) { 60 60 if (p - name >= PATH_MAX) 61 61 return -ENAMETOOLONG; 62 62 ··· 65 65 66 66 fd = open(t, O_RDONLY|O_CLOEXEC); 67 67 if (fd < 0) 68 - @@ -1491,7 +1491,7 @@ int get_timezone(char **ret) { 68 + @@ -1492,7 +1492,7 @@ int get_timezone(char **ret) { 69 69 if (r < 0) 70 70 return r; /* returns EINVAL if not a symlink */ 71 71 ··· 88 88 (void) mkdir_parents(etc_localtime, 0755); 89 89 r = symlink_atomic(e, etc_localtime); 90 90 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 91 - index d62c5173ca..84beac064b 100644 91 + index 65d9e7e398..dd44d529ca 100644 92 92 --- a/src/nspawn/nspawn.c 93 93 +++ b/src/nspawn/nspawn.c 94 94 @@ -1915,8 +1915,8 @@ int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid ··· 103 103 104 104 static bool etc_writable(void) { 105 105 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 106 - index ad483301ef..a7f22b1c86 100644 106 + index 31ed86955b..8db8d8c288 100644 107 107 --- a/src/timedate/timedated.c 108 108 +++ b/src/timedate/timedated.c 109 109 @@ -282,7 +282,7 @@ static int context_read_data(Context *c) {
pkgs/os-specific/linux/systemd/0009-localectl-use-etc-X11-xkb-for-list-x11.patch pkgs/os-specific/linux/systemd/0010-localectl-use-etc-X11-xkb-for-list-x11.patch
+2 -2
pkgs/os-specific/linux/systemd/0010-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch pkgs/os-specific/linux/systemd/0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch
··· 8 8 1 file changed, 3 deletions(-) 9 9 10 10 diff --git a/meson.build b/meson.build 11 - index bfc86857d6..84e3e4c1db 100644 11 + index b1f5477836..1a39484855 100644 12 12 --- a/meson.build 13 13 +++ b/meson.build 14 - @@ -4277,9 +4277,6 @@ install_data('LICENSE.GPL2', 14 + @@ -4278,9 +4278,6 @@ install_data('LICENSE.GPL2', 15 15 install_subdir('LICENSES', 16 16 install_dir : docdir) 17 17
+1 -1
pkgs/os-specific/linux/systemd/0011-add-rootprefix-to-lookup-dir-paths.patch pkgs/os-specific/linux/systemd/0012-add-rootprefix-to-lookup-dir-paths.patch
··· 12 12 1 file changed, 4 insertions(+), 2 deletions(-) 13 13 14 14 diff --git a/src/basic/constants.h b/src/basic/constants.h 15 - index 5d68cc6332..a2ccc315e1 100644 15 + index 5d68cc6332..33c06c1f65 100644 16 16 --- a/src/basic/constants.h 17 17 +++ b/src/basic/constants.h 18 18 @@ -73,13 +73,15 @@
pkgs/os-specific/linux/systemd/0012-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch pkgs/os-specific/linux/systemd/0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
+2 -2
pkgs/os-specific/linux/systemd/0013-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch pkgs/os-specific/linux/systemd/0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
··· 9 9 1 file changed, 1 insertion(+) 10 10 11 11 diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c 12 - index 9c51a3367f..75d6b76a87 100644 12 + index 288fa4ae84..07deb19d7c 100644 13 13 --- a/src/sleep/sleep.c 14 14 +++ b/src/sleep/sleep.c 15 - @@ -184,6 +184,7 @@ static int execute( 15 + @@ -186,6 +186,7 @@ static int execute( 16 16 }; 17 17 static const char* const dirs[] = { 18 18 SYSTEM_SLEEP_PATH,
pkgs/os-specific/linux/systemd/0014-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch pkgs/os-specific/linux/systemd/0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch
pkgs/os-specific/linux/systemd/0015-pkg-config-derive-prefix-from-prefix.patch pkgs/os-specific/linux/systemd/0016-pkg-config-derive-prefix-from-prefix.patch
+1 -1
pkgs/os-specific/linux/systemd/0016-inherit-systemd-environment-when-calling-generators.patch pkgs/os-specific/linux/systemd/0017-inherit-systemd-environment-when-calling-generators.patch
··· 16 16 1 file changed, 8 insertions(+) 17 17 18 18 diff --git a/src/core/manager.c b/src/core/manager.c 19 - index 50d092042c..898f9ed2f1 100644 19 + index 817acb87b8..3f31359f8a 100644 20 20 --- a/src/core/manager.c 21 21 +++ b/src/core/manager.c 22 22 @@ -3714,9 +3714,17 @@ static int build_generator_environment(Manager *m, char ***ret) {
+2 -2
pkgs/os-specific/linux/systemd/0017-core-don-t-taint-on-unmerged-usr.patch pkgs/os-specific/linux/systemd/0018-core-don-t-taint-on-unmerged-usr.patch
··· 17 17 1 file changed, 4 deletions(-) 18 18 19 19 diff --git a/src/core/manager.c b/src/core/manager.c 20 - index 898f9ed2f1..5040d5b105 100644 20 + index 3f31359f8a..0c4ec0b4fb 100644 21 21 --- a/src/core/manager.c 22 22 +++ b/src/core/manager.c 23 - @@ -4543,10 +4543,6 @@ char* manager_taint_string(const Manager *m) { 23 + @@ -4556,10 +4556,6 @@ char* manager_taint_string(const Manager *m) { 24 24 if (m->taint_usr) 25 25 stage[n++] = "split-usr"; 26 26
+1 -1
pkgs/os-specific/linux/systemd/0018-tpm2_context_init-fix-driver-name-checking.patch pkgs/os-specific/linux/systemd/0019-tpm2_context_init-fix-driver-name-checking.patch
··· 27 27 1 file changed, 1 insertion(+), 1 deletion(-) 28 28 29 29 diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c 30 - index 259f280e0f..142e70a740 100644 30 + index 4345b95106..424a334df1 100644 31 31 --- a/src/shared/tpm2-util.c 32 32 +++ b/src/shared/tpm2-util.c 33 33 @@ -176,7 +176,7 @@ int tpm2_context_new(const char *device, Tpm2Context **ret_context) {
+16 -15
pkgs/os-specific/linux/systemd/default.nix
··· 144 144 let 145 145 wantCurl = withRemote || withImportd; 146 146 wantGcrypt = withResolved || withImportd; 147 - version = "253.2"; 147 + version = "253.3"; 148 148 149 149 # Bump this variable on every (major) version change. See below (in the meson options list) for why. 150 150 # command: ··· 161 161 owner = "systemd"; 162 162 repo = "systemd-stable"; 163 163 rev = "v${version}"; 164 - hash = "sha256-gtJEHLSeJoOSFnutn/+wM27sV9JiV5afsykyUd+XDKQ="; 164 + hash = "sha256-iy1kyqiVeXIhFJAQ+nYorrXm/xb2gfakyrEfMyNR5l8="; 165 165 }; 166 166 167 167 # On major changes, or when otherwise required, you *must* reformat the patches, ··· 173 173 ./0001-Start-device-units-for-uninitialised-encrypted-devic.patch 174 174 ./0002-Don-t-try-to-unmount-nix-or-nix-store.patch 175 175 ./0003-Fix-NixOS-containers.patch 176 - ./0004-Look-for-fsck-in-the-right-place.patch 176 + ./0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch 177 177 ./0005-Add-some-NixOS-specific-unit-directories.patch 178 178 ./0006-Get-rid-of-a-useless-message-in-user-sessions.patch 179 - ./0007-Fix-hwdb-paths.patch 180 - ./0008-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch 181 - ./0009-localectl-use-etc-X11-xkb-for-list-x11.patch 182 - ./0010-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch 183 - ./0011-add-rootprefix-to-lookup-dir-paths.patch 184 - ./0012-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch 185 - ./0013-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch 186 - ./0014-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch 187 - ./0015-pkg-config-derive-prefix-from-prefix.patch 188 - ./0016-inherit-systemd-environment-when-calling-generators.patch 189 - ./0017-core-don-t-taint-on-unmerged-usr.patch 190 - ./0018-tpm2_context_init-fix-driver-name-checking.patch 179 + ./0007-hostnamed-localed-timedated-disable-methods-that-cha.patch 180 + ./0008-Fix-hwdb-paths.patch 181 + ./0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch 182 + ./0010-localectl-use-etc-X11-xkb-for-list-x11.patch 183 + ./0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch 184 + ./0012-add-rootprefix-to-lookup-dir-paths.patch 185 + ./0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch 186 + ./0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch 187 + ./0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch 188 + ./0016-pkg-config-derive-prefix-from-prefix.patch 189 + ./0017-inherit-systemd-environment-when-calling-generators.patch 190 + ./0018-core-don-t-taint-on-unmerged-usr.patch 191 + ./0019-tpm2_context_init-fix-driver-name-checking.patch 191 192 ] ++ lib.optional stdenv.hostPlatform.isMusl ( 192 193 let 193 194 oe-core = fetchzip {
+20 -20
pkgs/servers/x11/xorg/default.nix
··· 1805 1805 # THIS IS A GENERATED FILE. DO NOT EDIT! 1806 1806 xcbutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1807 1807 pname = "xcb-util"; 1808 - version = "0.4.0"; 1808 + version = "0.4.1"; 1809 1809 builder = ./builder.sh; 1810 1810 src = fetchurl { 1811 - url = "https://xcb.freedesktop.org/dist/xcb-util-0.4.0.tar.bz2"; 1812 - sha256 = "1sahmrgbpyki4bb72hxym0zvxwnycmswsxiisgqlln9vrdlr9r26"; 1811 + url = "https://xcb.freedesktop.org/dist/xcb-util-0.4.1.tar.xz"; 1812 + sha256 = "04p54r0zjc44fpw1hdy4rhygv37sx2vr2lllxjihykz5v2xkpgjs"; 1813 1813 }; 1814 1814 hardeningDisable = [ "bindnow" "relro" ]; 1815 1815 strictDeps = true; ··· 1835 1835 }) {}; 1836 1836 1837 1837 # THIS IS A GENERATED FILE. DO NOT EDIT! 1838 - xcbutilerrors = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbproto, xorgproto, m4 }: stdenv.mkDerivation { 1838 + xcbutilerrors = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbproto, xorgproto, m4, python3 }: stdenv.mkDerivation { 1839 1839 pname = "xcb-util-errors"; 1840 - version = "1.0"; 1840 + version = "1.0.1"; 1841 1841 builder = ./builder.sh; 1842 1842 src = fetchurl { 1843 - url = "https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.tar.bz2"; 1844 - sha256 = "158rm913dg3hxrrhyvvxr8bcm0pjy5jws70dhy2s12w1krv829k8"; 1843 + url = "https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.1.tar.xz"; 1844 + sha256 = "0mzkh3xj1n690dw8hrdhyjykd71ib0ls9n5cgf9asna2k1xwha2n"; 1845 1845 }; 1846 1846 hardeningDisable = [ "bindnow" "relro" ]; 1847 1847 strictDeps = true; 1848 - nativeBuildInputs = [ pkg-config m4 ]; 1848 + nativeBuildInputs = [ pkg-config m4 python3 ]; 1849 1849 buildInputs = [ gperf libxcb xcbproto xorgproto ]; 1850 1850 meta.platforms = lib.platforms.unix; 1851 1851 }) {}; ··· 1853 1853 # THIS IS A GENERATED FILE. DO NOT EDIT! 1854 1854 xcbutilimage = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbutil, xorgproto, m4 }: stdenv.mkDerivation { 1855 1855 pname = "xcb-util-image"; 1856 - version = "0.4.0"; 1856 + version = "0.4.1"; 1857 1857 builder = ./builder.sh; 1858 1858 src = fetchurl { 1859 - url = "https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.bz2"; 1860 - sha256 = "1z1gxacg7q4cw6jrd26gvi5y04npsyavblcdad1xccc8swvnmf9d"; 1859 + url = "https://xcb.freedesktop.org/dist/xcb-util-image-0.4.1.tar.xz"; 1860 + sha256 = "0g8dwknrlz96k176qxh8ar84x9kpppci9b978zyp24nvvbjqxbfc"; 1861 1861 }; 1862 1862 hardeningDisable = [ "bindnow" "relro" ]; 1863 1863 strictDeps = true; ··· 1869 1869 # THIS IS A GENERATED FILE. DO NOT EDIT! 1870 1870 xcbutilkeysyms = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1871 1871 pname = "xcb-util-keysyms"; 1872 - version = "0.4.0"; 1872 + version = "0.4.1"; 1873 1873 builder = ./builder.sh; 1874 1874 src = fetchurl { 1875 - url = "https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.0.tar.bz2"; 1876 - sha256 = "1nbd45pzc1wm6v5drr5338j4nicbgxa5hcakvsvm5pnyy47lky0f"; 1875 + url = "https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.1.tar.xz"; 1876 + sha256 = "0f66snk179hmp8ppgv1zp9y7pl1vzn52znpikm1fsaj1ji90l9kw"; 1877 1877 }; 1878 1878 hardeningDisable = [ "bindnow" "relro" ]; 1879 1879 strictDeps = true; ··· 1885 1885 # THIS IS A GENERATED FILE. DO NOT EDIT! 1886 1886 xcbutilrenderutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1887 1887 pname = "xcb-util-renderutil"; 1888 - version = "0.3.9"; 1888 + version = "0.3.10"; 1889 1889 builder = ./builder.sh; 1890 1890 src = fetchurl { 1891 - url = "https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.9.tar.bz2"; 1892 - sha256 = "0nza1csdvvxbmk8vgv8vpmq7q8h05xrw3cfx9lwxd1hjzd47xsf6"; 1891 + url = "https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.10.tar.xz"; 1892 + sha256 = "1fh4dnlwlqyccrhmmwlv082a7mxc7ss7vmzmp7xxp39dwbqd859y"; 1893 1893 }; 1894 1894 hardeningDisable = [ "bindnow" "relro" ]; 1895 1895 strictDeps = true; ··· 1901 1901 # THIS IS A GENERATED FILE. DO NOT EDIT! 1902 1902 xcbutilwm = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1903 1903 pname = "xcb-util-wm"; 1904 - version = "0.4.1"; 1904 + version = "0.4.2"; 1905 1905 builder = ./builder.sh; 1906 1906 src = fetchurl { 1907 - url = "https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.1.tar.bz2"; 1908 - sha256 = "0gra7hfyxajic4mjd63cpqvd20si53j1q3rbdlkqkahfciwq3gr8"; 1907 + url = "https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.2.tar.xz"; 1908 + sha256 = "02wai17mxfbvlnj4l4bjbvah97rccdivzvd7mrznhr32s0hlxhv2"; 1909 1909 }; 1910 1910 hardeningDisable = [ "bindnow" "relro" ]; 1911 1911 strictDeps = true;
+6 -6
pkgs/servers/x11/xorg/tarballs.list
··· 1 1 https://invisible-mirror.net/archives/luit/luit-20190106.tgz 2 2 https://xcb.freedesktop.org/dist/libpthread-stubs-0.4.tar.bz2 3 - https://xcb.freedesktop.org/dist/xcb-util-0.4.0.tar.bz2 3 + https://xcb.freedesktop.org/dist/xcb-util-0.4.1.tar.xz 4 4 https://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.3.tar.bz2 5 - https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.tar.bz2 6 - https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.bz2 7 - https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.0.tar.bz2 8 - https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.9.tar.bz2 9 - https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.1.tar.bz2 5 + https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.1.tar.xz 6 + https://xcb.freedesktop.org/dist/xcb-util-image-0.4.1.tar.xz 7 + https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.1.tar.xz 8 + https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.10.tar.xz 9 + https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.2.tar.xz 10 10 mirror://xorg/individual/app/appres-1.0.5.tar.bz2 11 11 https://xorg.freedesktop.org/archive/individual/util/bdftopcf-1.1.1.tar.xz 12 12 mirror://xorg/individual/app/bitmap-1.0.9.tar.gz
+1
pkgs/stdenv/darwin/default.nix
··· 63 63 unset SDKROOT 64 64 65 65 stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" 66 + stripDebugFlags="-S" # the Darwin "strip" command does something odd with "-p" 66 67 ''; 67 68 68 69 bootstrapTools = derivation ({
+7 -2
pkgs/stdenv/linux/default.nix
··· 322 322 assert isFromBootstrapFiles prevStage.gcc-unwrapped; 323 323 assert isFromBootstrapFiles prevStage.coreutils; 324 324 assert isFromBootstrapFiles prevStage.gnugrep; 325 + assert isBuiltByBootstrapFilesCompiler prevStage.patchelf; 325 326 stageFun prevStage { 326 327 name = "bootstrap-stage-xgcc"; 327 328 overrides = final: prev: { 328 - inherit (prevStage) ccWrapperStdenv coreutils gnugrep gettext bison texinfo zlib gnum4 perl; 329 - patchelf = bootstrapTools; 329 + inherit (prevStage) ccWrapperStdenv coreutils gnugrep gettext bison texinfo zlib gnum4 perl patchelf; 330 330 ${localSystem.libc} = getLibc prevStage; 331 331 gmp = prev.gmp.override { cxx = false; }; 332 332 gcc-unwrapped = ··· 399 399 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 400 400 assert isFromBootstrapFiles prevStage.coreutils; 401 401 assert isFromBootstrapFiles prevStage.gnugrep; 402 + assert isBuiltByBootstrapFilesCompiler prevStage.patchelf; 402 403 stageFun prevStage { 403 404 name = "bootstrap-stage2"; 404 405 ··· 484 485 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 485 486 assert isFromBootstrapFiles prevStage.coreutils; 486 487 assert isFromBootstrapFiles prevStage.gnugrep; 488 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 487 489 assert lib.all isBuiltByNixpkgsCompiler (with prevStage; [ gmp isl_0_20 libmpc mpfr ]); 488 490 stageFun prevStage { 489 491 name = "bootstrap-stage3"; ··· 524 526 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 525 527 assert isFromBootstrapFiles prevStage.coreutils; 526 528 assert isFromBootstrapFiles prevStage.gnugrep; 529 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 527 530 stageFun prevStage { 528 531 name = "bootstrap-stage4"; 529 532 ··· 584 587 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 585 588 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 586 589 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 590 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 587 591 { 588 592 inherit config overlays; 589 593 stdenv = import ../generic rec { ··· 673 677 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 674 678 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 675 679 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 680 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 676 681 { inherit (prevStage) config overlays stdenv; }) 677 682 ]
+3 -25
pkgs/tools/admin/awscli2/default.nix
··· 11 11 let 12 12 py = python3 // { 13 13 pkgs = python3.pkgs.overrideScope (self: super: { 14 - ipython = super.ipython.overridePythonAttrs (oldAttrs: rec { 15 - pname = "ipython"; 16 - version = "8.5.0"; 17 - 18 - src = self.fetchPypi { 19 - inherit pname version; 20 - sha256 = "sha256-CXvfXNh1dv0GYXnJ9/IIAE96aGTuGyDzfTRsC8sJn4Q="; 21 - }; 22 - 23 - disabledTests = [ "testIPythonLexer" ] ++ oldAttrs.disabledTests; 24 - }); 25 - 26 - prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec { 27 - version = "3.0.28"; 28 - src = self.fetchPypi { 29 - pname = "prompt_toolkit"; 30 - inherit version; 31 - hash = "sha256-nxzRax6GwpaPJRnX+zHdnWaZFvUVYSwmnRTp7VK1FlA="; 32 - }; 33 - }); 14 + # nothing right now 34 15 }); 35 16 }; 36 17 37 18 in 38 19 with py.pkgs; buildPythonApplication rec { 39 20 pname = "awscli2"; 40 - version = "2.11.6"; # N.B: if you change this, check if overrides are still up-to-date 21 + version = "2.11.15"; # N.B: if you change this, check if overrides are still up-to-date 41 22 format = "pyproject"; 42 23 43 24 src = fetchFromGitHub { 44 25 owner = "aws"; 45 26 repo = "aws-cli"; 46 27 rev = version; 47 - hash = "sha256-6VEDGakOx2LJcDbBKicxxfOt0t2tf2iaRXkx1Em0Ieg="; 28 + hash = "sha256-2FE5PJxdTqSrAIgkaZPf91B6bI6Bj9tbJjXg2nAaLdo="; 48 29 }; 49 30 50 31 postPatch = '' 51 32 substituteInPlace requirements/bootstrap.txt \ 52 33 --replace "pip>=22.0.0,<23.0.0" "pip>=22.0.0,<24.0.0" 53 - substituteInPlace pyproject.toml \ 54 - --replace "distro>=1.5.0,<1.6.0" "distro>=1.5.0" \ 55 - --replace "cryptography>=3.3.2,<38.0.5" "cryptography>=3.3.2" 56 34 ''; 57 35 58 36 nativeBuildInputs = [
+2 -1
pkgs/tools/backup/grab-site/default.nix
··· 5 5 packageOverrides = self: super: { 6 6 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 7 7 version = "1.3.24"; 8 - src = oldAttrs.src.override { 8 + src = super.fetchPypi { 9 + inherit (oldAttrs) pname; 9 10 inherit version; 10 11 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 11 12 };
+2 -2
pkgs/tools/compression/zstd/default.nix
··· 21 21 22 22 stdenv.mkDerivation rec { 23 23 pname = "zstd"; 24 - version = "1.5.4"; 24 + version = "1.5.5"; 25 25 26 26 src = fetchFromGitHub { 27 27 owner = "facebook"; 28 28 repo = "zstd"; 29 29 rev = "v${version}"; 30 - sha256 = "sha256-2blY4hY4eEcxY8K9bIhYPbfb//rt/+J2TmvxABPG78A="; 30 + sha256 = "sha256-tHHHIsQU7vJySrVhJuMKUSq11MzkmC+Pcsj00uFJdnQ="; 31 31 }; 32 32 33 33 nativeBuildInputs = [ cmake ]
+32 -30
pkgs/tools/filesystems/squashfs/4k-align.patch
··· 1 1 This patch is an old patch; see below for the original message body. The patch 2 - has been updated twice: Once to apply to squashfs 4.4, commit 3 - 52eb4c279cd283ed9802dd1ceb686560b22ffb67, and later to apply to squashfs 4.5, 4 - commit 0496d7c3de3e09da37ba492081c86159806ebb07. 2 + has been updated several times to be compatible with new releases. 5 3 6 - From 7bda7c75748f36b0a50f93e46144d5a4de4974ad Mon Sep 17 00:00:00 2001 4 + * To apply to squashfs 4.4, commit 52eb4c279cd283ed9802dd1ceb686560b22ffb67. 5 + * To apply to squashfs 4.5, commit 0496d7c3de3e09da37ba492081c86159806ebb07. 6 + * To apply to squashfs 4.6, commit f7623b3d9953a1190fec181708c9489ef3522b9f. 7 + 8 + From af8a6dca694ddd38d8a775a2b5f9a24fe2d10153 Mon Sep 17 00:00:00 2001 7 9 From: Amin Hassani <ahassani@google.com> 8 10 Date: Thu, 15 Dec 2016 10:43:15 -0800 9 11 Subject: [PATCH] mksquashfs 4K aligns the files inside the squashfs image ··· 21 23 22 24 The 4k alignment can be enabled by flag '-4k-align' 23 25 --- 24 - squashfs-tools/mksquashfs.c | 17 +++++++++++++++++ 25 - 1 file changed, 17 insertions(+) 26 + squashfs-tools/mksquashfs.c | 16 ++++++++++++++++ 27 + 1 file changed, 16 insertions(+) 26 28 27 29 diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c 28 - index aaa4b00..eb2fb23 100644 30 + index 3429aac..db164c2 100644 29 31 --- a/squashfs-tools/mksquashfs.c 30 32 +++ b/squashfs-tools/mksquashfs.c 31 - @@ -99,6 +99,8 @@ int nopad = FALSE; 32 - int exit_on_error = FALSE; 33 - long long start_offset = 0; 34 - int sleep_time = 0; 33 + @@ -82,6 +82,8 @@ int noI = FALSE; 34 + int noId = FALSE; 35 + int noD = FALSE; 36 + int noX = FALSE; 35 37 +int do_4k_align = FALSE; 36 38 +#define ALIGN_UP(bytes, size) (bytes = (bytes + size - 1) & ~(size - 1)) 37 39 38 - long long global_uid = -1, global_gid = -1; 39 - 40 - @@ -1553,6 +1555,9 @@ static void unlock_fragments() 40 + /* block size used to build filesystem */ 41 + int block_size = SQUASHFS_FILE_SIZE; 42 + @@ -1624,6 +1626,9 @@ static void unlock_fragments() 41 43 * queue at this time. 42 44 */ 43 45 while(!queue_empty(locked_fragment)) { ··· 47 49 write_buffer = queue_get(locked_fragment); 48 50 frg = write_buffer->block; 49 51 size = SQUASHFS_COMPRESSED_SIZE_BLOCK(fragment_table[frg].size); 50 - @@ -2460,6 +2465,9 @@ static void *frag_deflator(void *arg) 52 + @@ -2627,6 +2632,9 @@ static void *frag_deflator(void *arg) 51 53 write_buffer->size = compressed_size; 52 54 pthread_mutex_lock(&fragment_mutex); 53 55 if(fragments_locked == FALSE) { ··· 57 59 fragment_table[file_buffer->block].size = c_byte; 58 60 fragment_table[file_buffer->block].start_block = bytes; 59 61 write_buffer->block = bytes; 60 - @@ -2850,6 +2858,10 @@ static struct file_info *write_file_blocks(int *status, struct dir_ent *dir_ent, 62 + @@ -3021,6 +3029,10 @@ static struct file_info *write_file_blocks(int *status, struct dir_ent *dir_ent, 61 63 struct file_info *file; 62 64 int bl_hash = 0; 63 65 ··· 68 70 if(pre_duplicate(read_size, dir_ent->inode, read_buffer, &bl_hash)) 69 71 return write_file_blocks_dup(status, dir_ent, read_buffer, dup, bl_hash); 70 72 71 - @@ -5975,6 +5987,7 @@ static void print_options(FILE *stream, char *name, int total_mem) 72 - fprintf(stream, "actions from <f>\n"); 73 - fprintf(stream, "-false-action-file <f>\tas -false-action, but read "); 74 - fprintf(stream, "actions from <f>\n"); 73 + @@ -6169,6 +6181,7 @@ static void print_options(FILE *stream, char *name, int total_mem) 74 + fprintf(stream, "or metadata. This is\n\t\t\tequivalent to "); 75 + fprintf(stream, "specifying -noI -noD -noF and -noX\n"); 76 + fprintf(stream, "\nFilesystem build options:\n"); 75 77 + fprintf(stream, "-4k-align\t\tenables 4k alignment of all files\n"); 76 - fprintf(stream, "\nFilesystem filter options:\n"); 77 - fprintf(stream, "-p <pseudo-definition>\tAdd pseudo file definition\n"); 78 - fprintf(stream, "-pf <pseudo-file>\tAdd list of pseudo file definitions\n"); 79 - @@ -6198,6 +6211,7 @@ static void print_summary() 78 + fprintf(stream, "-tar\t\t\tread uncompressed tar file from standard in (stdin)\n"); 79 + fprintf(stream, "-no-strip\t\tact like tar, and do not strip leading "); 80 + fprintf(stream, "directories\n\t\t\tfrom source files\n"); 81 + @@ -6690,6 +6703,7 @@ static void print_summary() 80 82 "compressed", no_fragments ? "no" : noF ? "uncompressed" : 81 83 "compressed", no_xattrs ? "no" : noX ? "uncompressed" : 82 84 "compressed", noI || noId ? "uncompressed" : "compressed"); ··· 84 86 printf("\tduplicates are %sremoved\n", duplicate_checking ? "" : 85 87 "not "); 86 88 printf("Filesystem size %.2f Kbytes (%.2f Mbytes)\n", bytes / 1024.0, 87 - @@ -7499,6 +7513,9 @@ print_compressor_options: 88 - root_name = argv[i]; 89 - } else if(strcmp(argv[i], "-version") == 0) { 90 - print_version("mksquashfs"); 91 - + 89 + @@ -8417,6 +8431,8 @@ print_compressor_options: 90 + } else if(strcmp(argv[i], "-comp") == 0) { 91 + /* parsed previously */ 92 + i++; 92 93 + } else if(strcmp(argv[i], "-4k-align") == 0) { 93 94 + do_4k_align = TRUE; 94 95 } else { 95 96 ERROR("%s: invalid option\n\n", argv[0]); 96 97 print_options(stderr, argv[0], total_mem); 97 98 -- 98 - 2.32.0 99 + 2.39.2 100 +
+2 -7
pkgs/tools/filesystems/squashfs/default.nix
··· 14 14 15 15 stdenv.mkDerivation rec { 16 16 pname = "squashfs"; 17 - version = "4.5.1"; 17 + version = "4.6.1"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "plougher"; 21 21 repo = "squashfs-tools"; 22 22 rev = version; 23 - sha256 = "sha256-Y3ZPjeE9HN1F+NtGe6EchYziWrTPVQ4SuKaCvNbXMKI="; 23 + hash = "sha256-C/awQpp1Q/0adx3YVNTq6ruEAzcjL5G7SkOCgpvAA50="; 24 24 }; 25 25 26 26 patches = [ 27 - # remove once https://github.com/plougher/squashfs-tools/pull/177 is merged and in a release 28 - (fetchpatch { 29 - url = "https://github.com/plougher/squashfs-tools/commit/6100e82c7e7f18f503c003c67c87791025d5f01b.patch"; 30 - sha256 = "sha256-bMBQsbSKQ4E7r9avns2QaomGAYl3s82m58gYyTQdB08="; 31 - }) 32 27 # This patch adds an option to pad filesystems (increasing size) in 33 28 # exchange for better chunking / binary diff calculation. 34 29 ./4k-align.patch
+5 -1
pkgs/tools/graphics/vulkan-cts/default.nix
··· 18 18 , vulkan-loader 19 19 , wayland 20 20 , wayland-protocols 21 + , wayland-scanner 21 22 , zlib 22 23 }: 23 24 let ··· 126 127 ninja 127 128 pkg-config 128 129 python3 130 + wayland-scanner 129 131 ]; 130 132 131 - # Fix cts cmake not coping with absolute install dirs 132 133 cmakeFlags = [ 134 + # Fix cts cmake not coping with absolute install dirs 133 135 "-DCMAKE_INSTALL_BINDIR=bin" 134 136 "-DCMAKE_INSTALL_LIBDIR=lib" 135 137 "-DCMAKE_INSTALL_INCLUDEDIR=include" 138 + 139 + "-DWAYLAND_SCANNER=wayland-scanner" 136 140 ]; 137 141 138 142 postInstall = ''
+2 -15
pkgs/tools/misc/fontforge/default.nix
··· 14 14 15 15 stdenv.mkDerivation rec { 16 16 pname = "fontforge"; 17 - version = "20220308"; 17 + version = "20230101"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = pname; 21 21 repo = pname; 22 22 rev = version; 23 - sha256 = "sha256-q+71PDPODl5fEEy3d1icRl+rBGY7AhH+2dMUKeBWGgI="; 23 + sha256 = "sha256-/RYhvL+Z4n4hJ8dmm+jbA1Ful23ni2DbCRZC5A3+pP0="; 24 24 }; 25 - 26 - patches = [ 27 - # Allow installing contrib files (e.g. extras and tools). 28 - # Taken from https://salsa.debian.org/fonts-team/fontforge/-/blob/master/debian/patches/0001-add-extra-cmake-install-rules.patch 29 - (fetchpatch { 30 - url = "https://salsa.debian.org/fonts-team/fontforge/raw/76bffe6ccf8ab20a0c81476a80a87ad245e2fd1c/debian/patches/0001-add-extra-cmake-install-rules.patch"; 31 - excludes = [ 32 - # Already handled upstream: https://github.com/fontforge/fontforge/commit/f97a2cd7b344ec8fcb9f8bfb908e1b6f36326d20 33 - "contrib/cidmap/CMakeLists.txt" 34 - ]; 35 - sha256 = "iQwaGeBHUais979hGVbU2NxKozQSQkpYXjApxPuLI/4="; 36 - }) 37 - ]; 38 25 39 26 # use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps 40 27 postPatch = ''
+18 -3
pkgs/tools/misc/hdf5/default.nix
··· 91 91 moveToOutput 'bin/h5pcc' "''${!outputDev}" 92 92 ''; 93 93 94 + # Remove reference to /build, which get introduced 95 + # into AM_CPPFLAGS since hdf5-1.14.0. Cmake of various 96 + # packages using HDF5 gets confused trying access the non-existent path. 97 + postFixup = '' 98 + for i in h5cc h5pcc h5c++; do 99 + if [ -f $dev/bin/$i ]; then 100 + substituteInPlace $dev/bin/$i --replace \ 101 + '-I/build/hdf5-${version}/src/H5FDsubfiling' "" 102 + fi 103 + done 104 + ''; 105 + 106 + enableParallelBuilding = true; 107 + 94 108 passthru.tests = { 95 109 inherit (python3.pkgs) h5py; 96 110 }; 97 111 98 - meta = { 112 + meta = with lib; { 99 113 description = "Data model, library, and file format for storing and managing data"; 100 114 longDescription = '' 101 115 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient ··· 103 117 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 104 118 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 105 119 ''; 106 - license = lib.licenses.bsd3; # Lawrence Berkeley National Labs BSD 3-Clause variant 120 + license = licenses.bsd3; # Lawrence Berkeley National Labs BSD 3-Clause variant 121 + maintainers = [ maintainers.markuskowa ]; 107 122 homepage = "https://www.hdfgroup.org/HDF5/"; 108 - platforms = lib.platforms.unix; 123 + platforms = platforms.unix; 109 124 }; 110 125 }
+2 -2
pkgs/tools/networking/tcpdump/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "tcpdump"; 5 - version = "4.99.3"; 5 + version = "4.99.4"; 6 6 7 7 src = fetchurl { 8 8 url = "http://www.tcpdump.org/release/tcpdump-${version}.tar.gz"; 9 - sha256 = "sha256-rXWm7T3A2XMpRbLlSDy0Hci0tSihaTFeSZxoYZUuc7M="; 9 + hash = "sha256-AjIjG7LynWvyQm5woIp+DGOg1ZqbRIY7f14jV6bkn+o="; 10 10 }; 11 11 12 12 postPatch = ''
-34
pkgs/tools/security/gnupg/0001-dirmngr-Only-use-SKS-pool-CA-for-SKS-pool.patch
··· 1 - From 1c9cc97e9d47d73763810dcb4a36b6cdf31a2254 Mon Sep 17 00:00:00 2001 2 - From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> 3 - Date: Sun, 30 Jun 2019 11:54:35 -0400 4 - Subject: [PATCH] dirmngr: Only use SKS pool CA for SKS pool 5 - 6 - * dirmngr/http.c (http_session_new): when checking whether the 7 - keyserver is the HKPS pool, check specifically against the pool name, 8 - as ./configure might have been used to select a different default 9 - keyserver. It makes no sense to apply Kristian's certificate 10 - authority to anything other than the literal host 11 - hkps.pool.sks-keyservers.net. 12 - 13 - Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> 14 - GnuPG-Bug-Id: 4593 15 - --- 16 - dirmngr/http.c | 2 +- 17 - 1 file changed, 1 insertion(+), 1 deletion(-) 18 - 19 - diff --git a/dirmngr/http.c b/dirmngr/http.c 20 - index 384f2569d..8e5d53939 100644 21 - --- a/dirmngr/http.c 22 - +++ b/dirmngr/http.c 23 - @@ -767,7 +767,7 @@ http_session_new (http_session_t *r_session, 24 - 25 - is_hkps_pool = (intended_hostname 26 - && !ascii_strcasecmp (intended_hostname, 27 - - get_default_keyserver (1))); 28 - + "hkps.pool.sks-keyservers.net")); 29 - 30 - /* If the user has not specified a CA list, and they are looking 31 - * for the hkps pool from sks-keyservers.net, then default to 32 - -- 33 - 2.22.0 34 -
+104
pkgs/tools/security/gnupg/22.nix
··· 1 + { lib, stdenv, fetchurl, buildPackages 2 + , pkg-config, texinfo 3 + , gettext, libassuan, libgcrypt, libgpg-error, libiconv, libksba, npth 4 + , adns, bzip2, gnutls, libusb1, openldap, readline, sqlite, zlib 5 + , enableMinimal ? false 6 + , withPcsc ? !enableMinimal, pcsclite 7 + , guiSupport ? stdenv.isDarwin, pinentry 8 + }: 9 + 10 + assert guiSupport -> enableMinimal == false; 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "gnupg"; 14 + version = "2.2.41"; 15 + 16 + src = fetchurl { 17 + url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2"; 18 + hash = "sha256-E/MpEAel6FRvy3vAxmEM5EqqmzmVBZ1PgUW6Cf1b4+E="; 19 + }; 20 + 21 + depsBuildBuild = [ buildPackages.stdenv.cc ]; 22 + nativeBuildInputs = [ pkg-config texinfo ]; 23 + buildInputs = [ 24 + gettext libassuan libgcrypt libgpg-error libiconv libksba npth 25 + ] ++ lib.optionals (!enableMinimal) [ 26 + adns bzip2 gnutls libusb1 openldap readline sqlite zlib 27 + ]; 28 + 29 + patches = [ 30 + ./fix-libusb-include-path.patch 31 + ./tests-add-test-cases-for-import-without-uid.patch 32 + ./accept-subkeys-with-a-good-revocation-but-no-self-sig.patch 33 + ./22-allow-import-of-previously-known-keys-even-without-UI.patch 34 + ]; 35 + 36 + postPatch = '' 37 + sed -i 's,hkps://hkps.pool.sks-keyservers.net,hkps://keys.openpgp.org,g' configure doc/dirmngr.texi doc/gnupg.info-1 38 + # Fix broken SOURCE_DATE_EPOCH usage - remove on the next upstream update 39 + sed -i 's/$SOURCE_DATE_EPOCH/''${SOURCE_DATE_EPOCH}/' doc/Makefile.am 40 + sed -i 's/$SOURCE_DATE_EPOCH/''${SOURCE_DATE_EPOCH}/' doc/Makefile.in 41 + '' + lib.optionalString (stdenv.isLinux && withPcsc) '' 42 + sed -i 's,"libpcsclite\.so[^"]*","${lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c 43 + ''; 44 + 45 + configureFlags = [ 46 + "--with-libgpg-error-prefix=${libgpg-error.dev}" 47 + "--with-libgcrypt-prefix=${libgcrypt.dev}" 48 + "--with-libassuan-prefix=${libassuan.dev}" 49 + "--with-ksba-prefix=${libksba.dev}" 50 + "--with-npth-prefix=${npth}" 51 + ] 52 + ++ lib.optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentry.binaryPath or "bin/pinentry"}" 53 + ++ lib.optional stdenv.isDarwin "--disable-ccid-driver"; 54 + 55 + postInstall = if enableMinimal 56 + then '' 57 + rm -r $out/{libexec,sbin,share} 58 + for f in $(find $out/bin -type f -not -name gpg) 59 + do 60 + rm $f 61 + done 62 + '' else '' 63 + mkdir -p $out/lib/systemd/user 64 + for f in doc/examples/systemd-user/*.{service,socket} ; do 65 + substitute $f $out/lib/systemd/user/$(basename $f) \ 66 + --replace /usr/bin $out/bin 67 + done 68 + 69 + # add gpg2 symlink to make sure git does not break when signing commits 70 + ln -s $out/bin/gpg $out/bin/gpg2 71 + 72 + # Make libexec tools available in PATH 73 + for f in $out/libexec/; do 74 + if [[ "$(basename $f)" == "gpg-wks-client" ]]; then continue; fi 75 + ln -s $f $out/bin/$(basename $f) 76 + done 77 + 78 + ln -s -t $out/bin $out/libexec/* 79 + ''; 80 + 81 + enableParallelBuilding = true; 82 + 83 + passthru.tests.connman = lib.nixosTests.gnupg; 84 + 85 + meta = with lib; { 86 + homepage = "https://gnupg.org"; 87 + description = "LTS release of the GNU Privacy Guard, a GPL OpenPGP implementation"; 88 + license = licenses.gpl3Plus; 89 + longDescription = '' 90 + The GNU Privacy Guard is the GNU project's complete and free 91 + implementation of the OpenPGP standard as defined by RFC4880. GnuPG 92 + "modern" (2.1) is the latest development with a lot of new features. 93 + GnuPG allows to encrypt and sign your data and communication, features a 94 + versatile key management system as well as access modules for all kind of 95 + public key directories. GnuPG, also known as GPG, is a command line tool 96 + with features for easy integration with other applications. A wealth of 97 + frontend applications and libraries are available. Version 2 of GnuPG 98 + also provides support for S/MIME. 99 + ''; 100 + maintainers = with maintainers; [ fpletz vrthra ]; 101 + platforms = platforms.all; 102 + mainProgram = "gpg"; 103 + }; 104 + }
+107
pkgs/tools/security/gnupg/24-allow-import-of-previously-known-keys-even-without-UI.patch
··· 1 + From: Vincent Breitmoser <look@my.amazin.horse> 2 + Date: Thu, 13 Jun 2019 21:27:42 +0200 3 + Subject: gpg: allow import of previously known keys, even without UIDs 4 + 5 + * g10/import.c (import_one): Accept an incoming OpenPGP certificate that 6 + has no user id, as long as we already have a local variant of the cert 7 + that matches the primary key. 8 + 9 + -- 10 + 11 + This fixes two of the three broken tests in import-incomplete.scm. 12 + 13 + GnuPG-Bug-id: 4393 14 + Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> 15 + --- 16 + g10/import.c | 44 +++++++++++--------------------------------- 17 + 1 file changed, 11 insertions(+), 33 deletions(-) 18 + 19 + 20 + diff --git a/g10/import.c b/g10/import.c 21 + index 9fab46ca6..61896a6bf 100644 22 + --- a/g10/import.c 23 + +++ b/g10/import.c 24 + @@ -1954,7 +1954,6 @@ import_one_real (ctrl_t ctrl, 25 + size_t an; 26 + char pkstrbuf[PUBKEY_STRING_SIZE]; 27 + int merge_keys_done = 0; 28 + - int any_filter = 0; 29 + KEYDB_HANDLE hd = NULL; 30 + 31 + if (r_valid) 32 + @@ -1992,13 +1991,6 @@ import_one_real (ctrl_t ctrl, 33 + } 34 + 35 + 36 + - if (!uidnode) 37 + - { 38 + - if (!silent) 39 + - log_error( _("key %s: no user ID\n"), keystr_from_pk(pk)); 40 + - return 0; 41 + - } 42 + - 43 + if (screener && screener (keyblock, screener_arg)) 44 + { 45 + log_error (_("key %s: %s\n"), keystr_from_pk (pk), 46 + @@ -2078,18 +2070,10 @@ import_one_real (ctrl_t ctrl, 47 + } 48 + } 49 + 50 + - /* Delete invalid parts and bail out if there are no user ids left. */ 51 + - if (!delete_inv_parts (ctrl, keyblock, keyid, options, otherrevsigs)) 52 + - { 53 + - if (!silent) 54 + - { 55 + - log_error ( _("key %s: no valid user IDs\n"), keystr_from_pk(pk)); 56 + - if (!opt.quiet) 57 + - log_info(_("this may be caused by a missing self-signature\n")); 58 + - } 59 + - stats->no_user_id++; 60 + - return 0; 61 + - } 62 + + /* Delete invalid parts, and note if we have any valid ones left. 63 + + * We will later abort import if this key is new but contains 64 + + * no valid uids. */ 65 + + delete_inv_parts (ctrl, keyblock, keyid, options, otherrevsigs); 66 + 67 + /* Get rid of deleted nodes. */ 68 + commit_kbnode (&keyblock); 69 + @@ -2099,24 +2083,11 @@ import_one_real (ctrl_t ctrl, 70 + { 71 + apply_keep_uid_filter (ctrl, keyblock, import_filter.keep_uid); 72 + commit_kbnode (&keyblock); 73 + - any_filter = 1; 74 + } 75 + if (import_filter.drop_sig) 76 + { 77 + apply_drop_sig_filter (ctrl, keyblock, import_filter.drop_sig); 78 + commit_kbnode (&keyblock); 79 + - any_filter = 1; 80 + - } 81 + - 82 + - /* If we ran any filter we need to check that at least one user id 83 + - * is left in the keyring. Note that we do not use log_error in 84 + - * this case. */ 85 + - if (any_filter && !any_uid_left (keyblock)) 86 + - { 87 + - if (!opt.quiet ) 88 + - log_info ( _("key %s: no valid user IDs\n"), keystr_from_pk (pk)); 89 + - stats->no_user_id++; 90 + - return 0; 91 + } 92 + 93 + /* The keyblock is valid and ready for real import. */ 94 + @@ -2174,6 +2145,13 @@ import_one_real (ctrl_t ctrl, 95 + err = 0; 96 + stats->skipped_new_keys++; 97 + } 98 + + else if (err && !any_uid_left (keyblock)) 99 + + { 100 + + if (!silent) 101 + + log_info( _("key %s: new key but contains no user ID - skipped\n"), keystr(keyid)); 102 + + err = 0; 103 + + stats->no_user_id++; 104 + + } 105 + else if (err) /* Insert this key. */ 106 + { 107 + /* Note: ERR can only be NO_PUBKEY or UNUSABLE_PUBKEY. */
+26 -21
pkgs/tools/security/gnupg/24.nix
··· 1 - { fetchurl, fetchpatch, lib, stdenv, pkg-config, libgcrypt, libassuan, libksba 2 - , libgpg-error, libiconv, npth, gettext, texinfo, buildPackages 3 - , nixosTests 4 - , guiSupport ? stdenv.isDarwin, enableMinimal ? false 5 - , adns, bzip2, gnutls, libusb1, openldap 6 - , pinentry, readline, sqlite, zlib 1 + { lib, stdenv, fetchurl, buildPackages 2 + , pkg-config, texinfo 3 + , gettext, libassuan, libgcrypt, libgpg-error, libiconv, libksba, npth 4 + , adns, bzip2, gnutls, libusb1, openldap, readline, sqlite, zlib 5 + , enableMinimal ? false 7 6 , withPcsc ? !enableMinimal, pcsclite 7 + , guiSupport ? stdenv.isDarwin, pinentry 8 8 , withTpm2Tss ? !stdenv.isDarwin && !enableMinimal, tpm2-tss 9 9 }: 10 10 ··· 16 16 17 17 src = fetchurl { 18 18 url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2"; 19 - sha256 = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM="; 19 + hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM="; 20 20 }; 21 21 22 22 depsBuildBuild = [ buildPackages.stdenv.cc ]; 23 23 nativeBuildInputs = [ pkg-config texinfo ]; 24 24 buildInputs = [ 25 - libgcrypt libassuan libksba libiconv npth gettext 26 - ] ++ lib.optionals (!enableMinimal) ([ 27 - readline libusb1 gnutls adns openldap zlib bzip2 sqlite 28 - ] ++ lib.optional withTpm2Tss tpm2-tss); 25 + gettext libassuan libgcrypt libgpg-error libiconv libksba npth 26 + ] ++ lib.optionals (!enableMinimal) [ 27 + adns bzip2 gnutls libusb1 openldap readline sqlite zlib 28 + ] ++ lib.optionals withTpm2Tss [ tpm2-tss ]; 29 29 30 30 patches = [ 31 31 ./fix-libusb-include-path.patch 32 32 ./tests-add-test-cases-for-import-without-uid.patch 33 - # TODO: Refresh patch? Doesn't apply on 2.4.0 34 - #./allow-import-of-previously-known-keys-even-without-UI.patch 35 33 ./accept-subkeys-with-a-good-revocation-but-no-self-sig.patch 36 - 34 + ./24-allow-import-of-previously-known-keys-even-without-UI.patch 37 35 # Patch for DoS vuln from https://seclists.org/oss-sec/2022/q3/27 38 36 ./v3-0001-Disallow-compressed-signatures-and-certificates.patch 39 - 40 37 ]; 38 + 41 39 postPatch = '' 42 40 sed -i 's,\(hkps\|https\)://keyserver.ubuntu.com,hkps://keys.openpgp.org,g' configure configure.ac doc/dirmngr.texi doc/gnupg.info-1 43 - '' + lib.optionalString (stdenv.isLinux && withPcsc) '' 44 - sed -i 's,"libpcsclite\.so[^"]*","${lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c 45 - ''; 41 + '' + lib.optionalString (stdenv.isLinux && withPcsc) '' 42 + sed -i 's,"libpcsclite\.so[^"]*","${lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c 43 + ''; 46 44 47 - pinentryBinaryPath = pinentry.binaryPath or "bin/pinentry"; 48 45 configureFlags = [ 46 + "--sysconfdir=/etc" 49 47 "--with-libgpg-error-prefix=${libgpg-error.dev}" 50 48 "--with-libgcrypt-prefix=${libgcrypt.dev}" 51 49 "--with-libassuan-prefix=${libassuan.dev}" 52 50 "--with-ksba-prefix=${libksba.dev}" 53 51 "--with-npth-prefix=${npth}" 54 - ] ++ lib.optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentryBinaryPath}" 52 + ] 53 + ++ lib.optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentry.binaryPath or "bin/pinentry"}" 55 54 ++ lib.optional withTpm2Tss "--with-tss=intel" 56 55 ++ lib.optional stdenv.isDarwin "--disable-ccid-driver"; 56 + 57 57 postInstall = if enableMinimal 58 58 then '' 59 59 rm -r $out/{libexec,sbin,share} ··· 76 76 if [[ "$(basename $f)" == "gpg-wks-client" ]]; then continue; fi 77 77 ln -s $f $out/bin/$(basename $f) 78 78 done 79 + 80 + for f in $out/libexec/; do 81 + if [[ "$(basename $f)" == "gpg-wks-client" ]]; then continue; fi 82 + ln -s $f $out/bin/$(basename $f) 83 + done 79 84 ''; 80 85 81 86 enableParallelBuilding = true; 82 87 83 - passthru.tests.connman = nixosTests.gnupg; 88 + passthru.tests.connman = lib.nixosTests.gnupg; 84 89 85 90 meta = with lib; { 86 91 homepage = "https://gnupg.org";
+13 -13
pkgs/tools/security/gnupg/allow-import-of-previously-known-keys-even-without-UI.patch pkgs/tools/security/gnupg/22-allow-import-of-previously-known-keys-even-without-UI.patch
··· 16 16 g10/import.c | 44 +++++++++++--------------------------------- 17 17 1 file changed, 11 insertions(+), 33 deletions(-) 18 18 19 + 19 20 diff --git a/g10/import.c b/g10/import.c 20 - index 5d3162c..f9acf95 100644 21 + index cd3363fc7..8f10771db 100644 21 22 --- a/g10/import.c 22 23 +++ b/g10/import.c 23 - @@ -1788,7 +1788,6 @@ import_one_real (ctrl_t ctrl, 24 + @@ -1858,7 +1858,6 @@ import_one_real (ctrl_t ctrl, 24 25 size_t an; 25 26 char pkstrbuf[PUBKEY_STRING_SIZE]; 26 27 int merge_keys_done = 0; ··· 28 29 KEYDB_HANDLE hd = NULL; 29 30 30 31 if (r_valid) 31 - @@ -1825,14 +1824,6 @@ import_one_real (ctrl_t ctrl, 32 - log_printf ("\n"); 32 + @@ -1896,13 +1895,6 @@ import_one_real (ctrl_t ctrl, 33 33 } 34 34 35 - - 36 - - if (!uidnode) 35 + 36 + - if (!uidnode ) 37 37 - { 38 38 - if (!silent) 39 39 - log_error( _("key %s: no user ID\n"), keystr_from_pk(pk)); ··· 43 43 if (screener && screener (keyblock, screener_arg)) 44 44 { 45 45 log_error (_("key %s: %s\n"), keystr_from_pk (pk), 46 - @@ -1907,18 +1898,10 @@ import_one_real (ctrl_t ctrl, 46 + @@ -1977,18 +1969,10 @@ import_one_real (ctrl_t ctrl, 47 47 } 48 48 } 49 49 50 50 - /* Delete invalid parts and bail out if there are no user ids left. */ 51 - - if (!delete_inv_parts (ctrl, keyblock, keyid, options)) 51 + - if (!delete_inv_parts (ctrl, keyblock, keyid, options, otherrevsigs)) 52 52 - { 53 53 - if (!silent) 54 54 - { 55 - - log_error ( _("key %s: no valid user IDs\n"), keystr_from_pk(pk)); 56 - - if (!opt.quiet) 55 + - log_error( _("key %s: no valid user IDs\n"), keystr_from_pk(pk)); 56 + - if (!opt.quiet ) 57 57 - log_info(_("this may be caused by a missing self-signature\n")); 58 58 - } 59 59 - stats->no_user_id++; ··· 62 62 + /* Delete invalid parts, and note if we have any valid ones left. 63 63 + * We will later abort import if this key is new but contains 64 64 + * no valid uids. */ 65 - + delete_inv_parts (ctrl, keyblock, keyid, options); 65 + + delete_inv_parts (ctrl, keyblock, keyid, options, otherrevsigs); 66 66 67 67 /* Get rid of deleted nodes. */ 68 68 commit_kbnode (&keyblock); 69 - @@ -1927,24 +1911,11 @@ import_one_real (ctrl_t ctrl, 69 + @@ -1998,24 +1982,11 @@ import_one_real (ctrl_t ctrl, 70 70 { 71 71 apply_keep_uid_filter (ctrl, keyblock, import_filter.keep_uid); 72 72 commit_kbnode (&keyblock); ··· 91 91 } 92 92 93 93 /* The keyblock is valid and ready for real import. */ 94 - @@ -2002,6 +1973,13 @@ import_one_real (ctrl_t ctrl, 94 + @@ -2073,6 +2044,13 @@ import_one_real (ctrl_t ctrl, 95 95 err = 0; 96 96 stats->skipped_new_keys++; 97 97 }
+36 -6
pkgs/tools/typesetting/tex/texlive/bin.nix
··· 38 38 # http://mirrors.ctan.org/systems/doc/kpathsea/kpathsea.pdf for more 39 39 # details 40 40 sed -i '/^#define ST_NLINK_TRICK/d' texk/kpathsea/config.h 41 - ''; 41 + '' + 42 + # when cross compiling, we must use himktables from PATH 43 + # (i.e. from buildPackages.texlive.bin.core.dev) 44 + lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 45 + sed -i 's|\./himktables|himktables|' texk/web2c/Makefile.in 46 + '' 47 + ; 42 48 43 49 configureFlags = [ 44 50 "--with-banner-add=/nixos.org" ··· 75 81 76 82 inherit (common) src prePatch; 77 83 78 - outputs = [ "out" "doc" ]; 84 + outputs = [ "out" "doc" "dev" ]; 79 85 80 86 nativeBuildInputs = [ 81 87 pkg-config 82 - ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 88 + ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 83 89 # configure: error: tangle was not found but is required when cross-compiling. 90 + # dev (himktables) is used when building hitex to generate the additional source file hitables.c 84 91 texlive.bin.core 92 + texlive.bin.core.dev 85 93 ]; 86 94 87 95 buildInputs = [ ··· 159 167 mv "$out"/share/{man,info} "$doc"/doc 160 168 '' + /* remove manpages for utils that live in texlive.texlive-scripts to avoid a conflict in buildEnv */ '' 161 169 (cd "$doc"/doc/man/man1; rm {fmtutil-sys.1,fmtutil.1,mktexfmt.1,mktexmf.1,mktexpk.1,mktextfm.1,texhash.1,updmap-sys.1,updmap.1}) 170 + '' + /* install himktables in separate output for use in cross compilation */ '' 171 + mkdir -p $dev/bin 172 + cp texk/web2c/.libs/himktables $dev/bin/himktables 162 173 '' + cleanBrokenLinks; 163 174 164 175 setupHook = ./setup-hook.sh; # TODO: maybe texmf-nix -> texmf (and all references) ··· 195 206 196 207 hardeningDisable = [ "format" ]; 197 208 198 - inherit (core) nativeBuildInputs; 209 + inherit (core) nativeBuildInputs depsBuildBuild; 199 210 buildInputs = core.buildInputs ++ [ core cairo harfbuzz icu graphite2 libX11 ]; 200 211 201 212 configureFlags = common.configureFlags ··· 210 221 # we use static libtexlua, because it's only used by a single binary 211 222 postConfigure = let 212 223 luajit = lib.optionalString withLuaJIT ",luajit"; 213 - in '' 224 + in 225 + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) 226 + # without this, the native builds attempt to use the binary 227 + # ${target-triple}-gcc, but we need to use the wrapper script. 228 + '' 229 + export BUILDCC=${buildPackages.stdenv.cc}/bin/cc 230 + '' 231 + + 232 + '' 214 233 mkdir ./WorkDir && cd ./WorkDir 215 234 for path in libs/{pplib,teckit,lua53${luajit}} texk/web2c; do 216 235 ( ··· 219 238 else 220 239 extraConfig="" 221 240 fi 222 - 241 + '' + lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) 242 + # results of the tests performed by the configure scripts are 243 + # toolchain-dependent, so native components and cross components cannot use 244 + # the same cached test results. 245 + # Disable the caching for components with native subcomponents. 246 + '' 247 + if [[ "$path" =~ "libs/luajit" ]] || [[ "$path" =~ "texk/web2c" ]]; then 248 + extraConfig="$extraConfig --cache-file=/dev/null" 249 + fi 250 + '' 251 + + 252 + '' 223 253 mkdir -p "$path" && cd "$path" 224 254 "../../../$path/configure" $configureFlags $extraConfig 225 255
+42 -48
pkgs/top-level/all-packages.nix
··· 5882 5882 enableExtraPlugins = true; 5883 5883 }; 5884 5884 5885 - asciidoctor = callPackage ../tools/typesetting/asciidoctor { 5886 - bundlerApp = bundlerApp.override { 5887 - # asciidoc supports both ruby 2 and 3, 5888 - # but we don't want to be stuck on it: 5889 - ruby = ruby_3_1; 5890 - }; 5891 - }; 5885 + asciidoctor = callPackage ../tools/typesetting/asciidoctor { }; 5892 5886 5893 5887 asciidoctor-with-extensions = callPackage ../tools/typesetting/asciidoctor-with-extensions { }; 5894 5888 ··· 7920 7914 gnupg1orig = callPackage ../tools/security/gnupg/1.nix { }; 7921 7915 gnupg1compat = callPackage ../tools/security/gnupg/1compat.nix { }; 7922 7916 gnupg1 = gnupg1compat; # use config.packageOverrides if you prefer original gnupg1 7917 + 7918 + gnupg22 = callPackage ../tools/security/gnupg/22.nix { 7919 + pinentry = if stdenv.isDarwin then pinentry_mac else pinentry-gtk2; 7920 + libgcrypt = libgcrypt_1_8; 7921 + }; 7922 + 7923 7923 gnupg24 = callPackage ../tools/security/gnupg/24.nix { 7924 - guiSupport = stdenv.isDarwin; 7925 7924 pinentry = if stdenv.isDarwin then pinentry_mac else pinentry-gtk2; 7926 7925 }; 7927 7926 gnupg = gnupg24; ··· 8445 8444 hostess = callPackage ../development/tools/hostess { }; 8446 8445 8447 8446 hostname-debian = callPackage ../tools/networking/hostname-debian { }; 8447 + 8448 + hotdoc = python3Packages.callPackage ../development/tools/hotdoc { }; 8448 8449 8449 8450 hotpatch = callPackage ../development/libraries/hotpatch { }; 8450 8451 ··· 13980 13981 13981 13982 xxv = callPackage ../tools/misc/xxv { }; 13982 13983 13983 - xvfb-run = callPackage ../tools/misc/xvfb-run { inherit (texFunctions) fontsConf; }; 13984 + xvfb-run = callPackage ../tools/misc/xvfb-run { 13985 + inherit (texFunctions) fontsConf; 13986 + 13987 + # xvfb-run is used by a bunch of things to run tests 13988 + # and doesn't support hardware accelerated rendering 13989 + # so remove it from the rebuild heavy path for mesa 13990 + xorgserver = xorg.xorgserver.overrideAttrs(old: { 13991 + buildInputs = lib.filter (pkg: lib.getName pkg != "mesa") old.buildInputs; 13992 + configureFlags = old.configureFlags ++ [ 13993 + "--disable-glamor" 13994 + "--disable-glx" 13995 + "--disable-dri" 13996 + "--disable-dri2" 13997 + "--disable-dri3" 13998 + ]; 13999 + }); 14000 + }; 13984 14001 13985 14002 xvkbd = callPackage ../tools/X11/xvkbd { }; 13986 14003 ··· 14943 14960 profiledCompiler = false; 14944 14961 }); 14945 14962 14946 - gfortran-tmp-noisystem = wrapCCWith { grossHackForStagingNext = true; cc = (gcc.cc.override { 14947 - name = "gfortran"; 14948 - langFortran = true; 14949 - langCC = false; 14950 - langC = false; 14951 - profiledCompiler = false; 14952 - disableBootstrap = false; 14953 - }); }; 14954 - 14955 14963 gfortran48 = wrapCC (gcc48.cc.override { 14956 14964 name = "gfortran"; 14957 14965 langFortran = true; ··· 15433 15441 julia_16-bin = callPackage ../development/compilers/julia/1.6-bin.nix { }; 15434 15442 julia_18-bin = callPackage ../development/compilers/julia/1.8-bin.nix { }; 15435 15443 15436 - julia_18 = callPackage ../development/compilers/julia/1.8.nix { 15437 - gfortran = gfortran-tmp-noisystem; 15438 - }; 15439 - julia_19 = callPackage ../development/compilers/julia/1.9.nix { 15440 - gfortran = gfortran-tmp-noisystem; 15441 - }; 15444 + julia_18 = callPackage ../development/compilers/julia/1.8.nix { }; 15445 + julia_19 = callPackage ../development/compilers/julia/1.9.nix { }; 15442 15446 15443 15447 julia-lts-bin = julia_16-bin; 15444 15448 julia-stable-bin = julia_18-bin; ··· 15637 15641 llvmPackages_latest = llvmPackages_14; 15638 15642 15639 15643 llvmPackages_rocm = recurseIntoAttrs (callPackage ../development/compilers/llvm/rocm { }); 15640 - 15641 - # temporary hack; see PR #225846 15642 - stdenv-tmpDropB = overrideCC stdenv (wrapCCWith { tmpDropB = true; inherit (stdenv.cc) cc; }); 15643 15644 15644 15645 lorri = callPackage ../tools/misc/lorri { 15645 15646 inherit (darwin.apple_sdk.frameworks) CoreServices Security; ··· 17078 17079 ruby_3_1 17079 17080 ruby_3_2; 17080 17081 17081 - ruby = ruby_2_7; 17082 - rubyPackages = rubyPackages_2_7; 17082 + ruby = ruby_3_1; 17083 + rubyPackages = rubyPackages_3_1; 17083 17084 17084 17085 rubyPackages_2_7 = recurseIntoAttrs ruby_2_7.gems; 17085 17086 rubyPackages_3_0 = recurseIntoAttrs ruby_3_0.gems; ··· 21631 21632 21632 21633 libgcrypt = callPackage ../development/libraries/libgcrypt { }; 21633 21634 21634 - libgcrypt_1_5 = callPackage ../development/libraries/libgcrypt/1.5.nix { }; 21635 + libgcrypt_1_8 = callPackage ../development/libraries/libgcrypt/1.8.nix { }; 21635 21636 21636 21637 libgdiplus = callPackage ../development/libraries/libgdiplus { 21637 21638 inherit (darwin.apple_sdk.frameworks) Carbon; ··· 22659 22660 # Default libGLU 22660 22661 libGLU = mesa_glu; 22661 22662 22662 - # When a new patch is out, add a new mesa attribute with the exact patch version 22663 - # Remove old mesa attributes when they're unused. 22664 - # Try to keep the previous version around for a bit in case there are new bugs. 22665 - mesa_22_3_7 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.7.nix { 22663 + # Keep Mesa 22.3 for now because 23.0 does not build on Darwin. 22664 + # FIXME: remove, also investigate why we even need Mesa on Darwin. 22665 + mesa_22_3 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.nix { 22666 22666 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22667 22667 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 22668 22668 }; 22669 - mesa_23_0_1 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.1.nix { 22669 + mesa_23_0 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.nix { 22670 22670 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22671 22671 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 22672 22672 }; 22673 - # Bump this immediately on patches; wait a bit for minor versions 22674 - mesa_22 = mesa_22_3_7; 22675 - mesa_23 = mesa_23_0_1; 22676 - # Bump on staging only, tonnes of packages depend on it. 22677 - # See https://github.com/NixOS/nixpkgs/issues/218232 22678 - # Major versions should be bumped when they have proven to be reasonably stable 22679 - # FIXME: split up libgbm properly 22680 - # darwin: deferred until stabilized; e.g. see around: 22681 - # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21859 22682 - mesa = if stdenv.isDarwin then mesa_22_3_7 else mesa_23_0_1; 22673 + mesa = if stdenv.isDarwin then mesa_22_3 else mesa_23_0; 22683 22674 22684 22675 mesa_glu = callPackage ../development/libraries/mesa-glu { 22685 22676 inherit (darwin.apple_sdk.frameworks) ApplicationServices; ··· 24711 24702 pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.3.0"; }; 24712 24703 faslExt = "fasl"; 24713 24704 }; 24714 - sbcl = sbcl_2_3_0; 24705 + sbcl_2_3_2 = wrapLisp { 24706 + pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.3.2"; }; 24707 + faslExt = "fasl"; 24708 + }; 24709 + sbcl = sbcl_2_3_2; 24715 24710 24716 24711 sbclPackages = recurseIntoAttrs sbcl.pkgs; 24717 24712 ··· 27352 27347 withHomed = false; 27353 27348 withHwdb = false; 27354 27349 withImportd = false; 27355 - withKmod = false; 27356 27350 withLibBPF = false; 27357 27351 withLibidn2 = false; 27358 27352 withLocaled = false; ··· 30070 30064 flwrap = callPackage ../applications/radio/flwrap { stdenv = gcc10StdenvCompat; }; 30071 30065 30072 30066 fluidsynth = callPackage ../applications/audio/fluidsynth { 30073 - inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices; 30067 + inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreAudio CoreMIDI CoreServices; 30074 30068 }; 30075 30069 30076 30070 fmit = libsForQt5.callPackage ../applications/audio/fmit { };
+4
pkgs/top-level/python-packages.nix
··· 2328 2328 2329 2329 dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { }; 2330 2330 2331 + dbus-deviation = callPackage ../development/python-modules/dbus-deviation { }; 2332 + 2331 2333 dbus-fast = callPackage ../development/python-modules/dbus-fast { }; 2332 2334 2333 2335 dbus-next = callPackage ../development/python-modules/dbus-next { }; ··· 12687 12689 wheel-filename = callPackage ../development/python-modules/wheel-filename { }; 12688 12690 12689 12691 wheel-inspect = callPackage ../development/python-modules/wheel-inspect { }; 12692 + 12693 + wheezy-template = callPackage ../development/python-modules/wheezy-template { }; 12690 12694 12691 12695 whichcraft = callPackage ../development/python-modules/whichcraft { }; 12692 12696