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

+1890 -986
+1 -11
nixos/tests/installed-tests/pipewire.nix
··· 1 - { pkgs, lib, makeInstalledTest, ... }: 2 3 makeInstalledTest { 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 }
··· 1 + { pkgs, makeInstalledTest, ... }: 2 3 makeInstalledTest { 4 tested = pkgs.pipewire; 5 }
+4 -4
pkgs/applications/audio/fluidsynth/default.nix
··· 1 { stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake 2 , alsa-lib, glib, libjack2, libsndfile, libpulseaudio 3 - , AudioUnit, CoreAudio, CoreMIDI, CoreServices 4 }: 5 6 stdenv.mkDerivation rec { 7 pname = "fluidsynth"; 8 - version = "2.3.1"; 9 10 src = fetchFromGitHub { 11 owner = "FluidSynth"; 12 repo = "fluidsynth"; 13 rev = "v${version}"; 14 - sha256 = "05lr9f0q4x1kvgfa3xrfmagpwvijv9m1s316aa9figqlkcc5vv4k"; 15 }; 16 17 nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ]; 18 19 buildInputs = [ glib libsndfile libjack2 ] 20 ++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] 21 - ++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ]; 22 23 cmakeFlags = [ 24 "-Denable-framework=off"
··· 1 { stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake 2 , alsa-lib, glib, libjack2, libsndfile, libpulseaudio 3 + , AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices 4 }: 5 6 stdenv.mkDerivation rec { 7 pname = "fluidsynth"; 8 + version = "2.3.2"; 9 10 src = fetchFromGitHub { 11 owner = "FluidSynth"; 12 repo = "fluidsynth"; 13 rev = "v${version}"; 14 + sha256 = "sha256-BSJu3jB7b5G2ThXBUHUNnBGl55EXe3nIzdBdgfOWDSM="; 15 }; 16 17 nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ]; 18 19 buildInputs = [ glib libsndfile libjack2 ] 20 ++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] 21 + ++ lib.optionals stdenv.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ]; 22 23 cmakeFlags = [ 24 "-Denable-framework=off"
+2 -2
pkgs/applications/audio/mpg123/default.nix
··· 21 22 stdenv.mkDerivation rec { 23 pname = "${lib.optionalString libOnly "lib"}mpg123"; 24 - version = "1.31.2"; 25 26 src = fetchurl { 27 url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; 28 - sha256 = "sha256-sX8ikF4x9DtrQB399qce0Ru30Fb2jbRJ1wufmug5x94="; 29 }; 30 31 outputs = [ "out" ] ++ lib.optional withConplay "conplay";
··· 21 22 stdenv.mkDerivation rec { 23 pname = "${lib.optionalString libOnly "lib"}mpg123"; 24 + version = "1.31.3"; 25 26 src = fetchurl { 27 url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; 28 + hash = "sha256-HKd9Omml/4RbegU294P+5VThBBE5prl49q/hT1gUrRo="; 29 }; 30 31 outputs = [ "out" ] ++ lib.optional withConplay "conplay";
+10 -1
pkgs/applications/editors/vim/default.nix
··· 15 stdenv.mkDerivation { 16 pname = "vim"; 17 18 - inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta; 19 20 nativeBuildInputs = [ gettext pkg-config ]; 21 buildInputs = [ ncurses bash gawk ] ··· 50 ln -s $out/bin/vim $out/bin/vi 51 mkdir -p $out/share/vim 52 cp "${vimrc}" $out/share/vim/vimrc 53 ''; 54 55 __impureHostDeps = [ "/dev/ptmx" ];
··· 15 stdenv.mkDerivation { 16 pname = "vim"; 17 18 + inherit (common) version src postPatch hardeningDisable enableParallelBuilding enableParallelInstalling meta; 19 20 nativeBuildInputs = [ gettext pkg-config ]; 21 buildInputs = [ ncurses bash gawk ] ··· 50 ln -s $out/bin/vim $out/bin/vi 51 mkdir -p $out/share/vim 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 62 ''; 63 64 __impureHostDeps = [ "/dev/ptmx" ];
+2 -1
pkgs/applications/misc/privacyidea/default.nix
··· 11 packageOverrides = self: super: { 12 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 13 version = "1.3.24"; 14 - src = oldAttrs.src.override { 15 inherit version; 16 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 17 };
··· 11 packageOverrides = self: super: { 12 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 13 version = "1.3.24"; 14 + src = super.fetchPypi { 15 + inherit (oldAttrs) pname; 16 inherit version; 17 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 18 };
+4
pkgs/applications/networking/mailreaders/notmuch/default.nix
··· 42 43 substituteInPlace lib/Makefile.local \ 44 --replace '-install_name $(libdir)' "-install_name $out/lib" 45 '' + lib.optionalString withEmacs '' 46 substituteInPlace emacs/notmuch-emacs-mua \ 47 --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
··· 42 43 substituteInPlace lib/Makefile.local \ 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"' "" 49 '' + lib.optionalString withEmacs '' 50 substituteInPlace emacs/notmuch-emacs-mua \ 51 --replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
+3
pkgs/applications/office/libreoffice/default.nix
··· 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 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 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 # This to avoid using /lib:/usr/lib at linking 361 + ''
··· 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 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 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 362 '' 363 # This to avoid using /lib:/usr/lib at linking 364 + ''
+7 -6
pkgs/applications/version-management/git/default.nix
··· 28 assert svnSupport -> perlSupport; 29 30 let 31 - version = "2.39.2"; 32 svn = subversionClient.override { perlBindings = perlSupport; }; 33 gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; 34 in ··· 41 42 src = fetchurl { 43 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 44 - sha256 = "R1918Tc7LNTkOHBhhRdZZtXBH2jE2x5IwmJXxD3c8tY="; 45 }; 46 47 outputs = [ "out" ] ++ lib.optional withManual "doc"; ··· 185 186 # Fix references to the perl, sed, awk and various coreutil binaries used by 187 # shell scripts that git calls (e.g. filter-branch) 188 SCRIPT="$(cat <<'EOS' 189 BEGIN{ 190 @a=( 191 '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk', 192 '${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname', 193 - '${coreutils}/bin/wc', '${coreutils}/bin/tr' 194 ${lib.optionalString perlSupport ", '${perlPackages.perl}/bin/perl'"} 195 ); 196 } ··· 201 EOS 202 )" 203 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} 205 206 207 # Also put git-http-backend into $PATH, so that we can use smart ··· 213 makeWrapper "$out/share/git/contrib/credential/netrc/git-credential-netrc.perl" $out/bin/git-credential-netrc \ 214 --set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 215 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 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 219 wrapProgram $out/libexec/git-core/git-archimport \ 220 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}"
··· 28 assert svnSupport -> perlSupport; 29 30 let 31 + version = "2.40.0"; 32 svn = subversionClient.override { perlBindings = perlSupport; }; 33 gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; 34 in ··· 41 42 src = fetchurl { 43 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 44 + hash = "sha256-sXpZj79Ycp7xO1d0ZeuTstSE3xIBUYtwi1BE/2I79G0="; 45 }; 46 47 outputs = [ "out" ] ++ lib.optional withManual "doc"; ··· 185 186 # Fix references to the perl, sed, awk and various coreutil binaries used by 187 # shell scripts that git calls (e.g. filter-branch) 188 + # and completion scripts 189 SCRIPT="$(cat <<'EOS' 190 BEGIN{ 191 @a=( 192 '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk', 193 '${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname', 194 + '${coreutils}/bin/wc', '${coreutils}/bin/tr', 195 + '${coreutils}/bin/ls' 196 ${lib.optionalString perlSupport ", '${perlPackages.perl}/bin/perl'"} 197 ); 198 } ··· 203 EOS 204 )" 205 perl -0777 -i -pe "$SCRIPT" \ 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} 208 209 210 # Also put git-http-backend into $PATH, so that we can use smart ··· 216 makeWrapper "$out/share/git/contrib/credential/netrc/git-credential-netrc.perl" $out/bin/git-credential-netrc \ 217 --set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 218 wrapProgram $out/libexec/git-core/git-cvsimport \ 219 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}" 220 wrapProgram $out/libexec/git-core/git-archimport \ 221 --set GITPERLLIB "$out/${perlPackages.perl.libPrefix}:${perlPackages.makePerlPath perlLibs}"
+3 -2
pkgs/applications/version-management/gitlab/default.nix
··· 1 { stdenv, lib, fetchurl, fetchpatch, fetchFromGitLab, bundlerEnv 2 - , ruby, tzdata, git, nettools, nixosTests, nodejs, openssl 3 , gitlabEnterprise ? false, callPackage, yarn 4 , fixup_yarn_lock, replace, file, cacert, fetchYarnDeps, makeWrapper, pkg-config 5 }: ··· 17 18 rubyEnv = bundlerEnv rec { 19 name = "gitlab-env-${version}"; 20 - inherit ruby; 21 gemdir = ./rubyEnv; 22 gemset = 23 let x = import (gemdir + "/gemset.nix") src;
··· 1 { stdenv, lib, fetchurl, fetchpatch, fetchFromGitLab, bundlerEnv 2 + , ruby_2_7, tzdata, git, nettools, nixosTests, nodejs, openssl 3 , gitlabEnterprise ? false, callPackage, yarn 4 , fixup_yarn_lock, replace, file, cacert, fetchYarnDeps, makeWrapper, pkg-config 5 }: ··· 17 18 rubyEnv = bundlerEnv rec { 19 name = "gitlab-env-${version}"; 20 + # GitLab doesn't support Ruby 3 https://gitlab.com/groups/gitlab-org/-/epics/5149 21 + ruby = ruby_2_7; 22 gemdir = ./rubyEnv; 23 gemset = 24 let x = import (gemdir + "/gemset.nix") src;
+2
pkgs/applications/version-management/subversion/default.nix
··· 61 (lib.withFeatureAs httpSupport "serf" serf) 62 "--with-zlib=${zlib.dev}" 63 "--with-sqlite=${sqlite.dev}" 64 ] ++ lib.optionals javahlBindings [ 65 "--enable-javahl" 66 "--with-jdk=${jdk}"
··· 61 (lib.withFeatureAs httpSupport "serf" serf) 62 "--with-zlib=${zlib.dev}" 63 "--with-sqlite=${sqlite.dev}" 64 + "--with-apr=${apr.dev}" 65 + "--with-apr-util=${aprutil.dev}" 66 ] ++ lib.optionals javahlBindings [ 67 "--enable-javahl" 68 "--with-jdk=${jdk}"
+9 -5
pkgs/applications/window-managers/dwl/default.nix
··· 9 , pixman 10 , pkg-config 11 , substituteAll 12 , wayland 13 , wayland-protocols 14 , wlroots_0_16 ··· 36 nativeBuildInputs = [ 37 installShellFiles 38 pkg-config 39 ]; 40 41 buildInputs = [ ··· 61 else writeText "config.def.h" conf; 62 in lib.optionalString (conf != null) "cp ${configFile} config.def.h"; 63 64 preBuild = '' 65 makeFlagsArray+=( 66 XWAYLAND=${lib.optionalString enableXWayland "-DXWAYLAND"} 67 XLIBS=${lib.optionalString enableXWayland "xcb\\ xcb-icccm"} 68 ) 69 ''; 70 - 71 - installFlags = [ 72 - "PREFIX=$(out)" 73 - "MANDIR=$(man)/share/man/man1" 74 - ]; 75 76 meta = { 77 homepage = "https://github.com/djpohly/dwl/";
··· 9 , pixman 10 , pkg-config 11 , substituteAll 12 + , wayland-scanner 13 , wayland 14 , wayland-protocols 15 , wlroots_0_16 ··· 37 nativeBuildInputs = [ 38 installShellFiles 39 pkg-config 40 + wayland-scanner 41 ]; 42 43 buildInputs = [ ··· 63 else writeText "config.def.h" conf; 64 in lib.optionalString (conf != null) "cp ${configFile} config.def.h"; 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 + 73 preBuild = '' 74 makeFlagsArray+=( 75 XWAYLAND=${lib.optionalString enableXWayland "-DXWAYLAND"} 76 XLIBS=${lib.optionalString enableXWayland "xcb\\ xcb-icccm"} 77 ) 78 ''; 79 80 meta = { 81 homepage = "https://github.com/djpohly/dwl/";
+4
pkgs/applications/window-managers/labwc/default.nix
··· 8 , libxcb 9 , libxkbcommon 10 , libxml2 11 , meson 12 , ninja 13 , pango 14 , pkg-config 15 , scdoc 16 , wayland 17 , wayland-protocols 18 , wlroots_0_16 ··· 35 }; 36 37 nativeBuildInputs = [ 38 meson 39 ninja 40 pkg-config 41 scdoc 42 ]; 43 44 buildInputs = [
··· 8 , libxcb 9 , libxkbcommon 10 , libxml2 11 + , gettext 12 , meson 13 , ninja 14 , pango 15 , pkg-config 16 , scdoc 17 + , wayland-scanner 18 , wayland 19 , wayland-protocols 20 , wlroots_0_16 ··· 37 }; 38 39 nativeBuildInputs = [ 40 + gettext 41 meson 42 ninja 43 pkg-config 44 scdoc 45 + wayland-scanner 46 ]; 47 48 buildInputs = [
+7 -1
pkgs/applications/window-managers/sway/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, substituteAll, swaybg 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 , wayland, libxkbcommon, pcre2, json_c, libevdev 4 , pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg ··· 37 (substituteAll { 38 src = ./fix-paths.patch; 39 inherit swaybg; 40 }) 41 ] ++ lib.optionals (!isNixOS) [ 42 # References to /nix/store/... will get GC'ed which causes problems when
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, swaybg 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 , wayland, libxkbcommon, pcre2, json_c, libevdev 4 , pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg ··· 37 (substituteAll { 38 src = ./fix-paths.patch; 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="; 46 }) 47 ] ++ lib.optionals (!isNixOS) [ 48 # References to /nix/store/... will get GC'ed which causes problems when
+1
pkgs/applications/window-managers/wayfire/default.nix
··· 73 "--sysconfdir /etc" 74 "-Duse_system_wlroots=enabled" 75 "-Duse_system_wfconfig=enabled" 76 ]; 77 78 passthru.providedSessions = [ "wayfire" ];
··· 73 "--sysconfdir /etc" 74 "-Duse_system_wlroots=enabled" 75 "-Duse_system_wfconfig=enabled" 76 + (lib.mesonEnable "wf-touch:tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform)) 77 ]; 78 79 passthru.providedSessions = [ "wayfire" ];
+4
pkgs/applications/window-managers/wayfire/wf-config.nix
··· 44 # CMake is just used for finding doctest. 45 dontUseCmakeConfigure = true; 46 47 doCheck = true; 48 49 meta = with lib; {
··· 44 # CMake is just used for finding doctest. 45 dontUseCmakeConfigure = true; 46 47 + mesonFlags = [ 48 + (lib.mesonEnable "tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform)) 49 + ]; 50 + 51 doCheck = true; 52 53 meta = with lib; {
+2 -4
pkgs/build-support/cc-wrapper/default.nix
··· 17 , isGNU ? false, isClang ? cc.isClang or false, isCcache ? cc.isCcache or false, gnugrep ? null 18 , buildPackages ? {} 19 , libcxx ? null 20 - , grossHackForStagingNext ? false 21 22 # Whether or not to add `-B` and `-L` to `nix-support/cc-{c,ld}flags` 23 , useCcForLibs ? ··· 52 53 # the derivation at which the `-B` and `-L` flags added by `useCcForLibs` will point 54 , gccForLibs ? if useCcForLibs then cc else null 55 - , tmpDropB ? false # temporary hack; see PR #225846 56 }: 57 58 with lib; ··· 336 ## 337 ## GCC libs for non-GCC support 338 ## 339 - + optionalString (useGccForLibs && !tmpDropB) '' 340 341 echo "-B${gccForLibs}/lib/gcc/${targetPlatform.config}/${gccForLibs.version}" >> $out/nix-support/cc-cflags 342 '' ··· 415 # already knows how to find its own libstdc++, and adding 416 # additional -isystem flags will confuse gfortran (see 417 # https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1500550903) 418 - + optionalString (libcxx == null && (if grossHackForStagingNext then isClang else true) && (useGccForLibs && gccForLibs.langCC or false)) '' 419 for dir in ${gccForLibs}${lib.optionalString (hostPlatform != targetPlatform) "/${targetPlatform.config}"}/include/c++/*; do 420 echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags 421 done
··· 17 , isGNU ? false, isClang ? cc.isClang or false, isCcache ? cc.isCcache or false, gnugrep ? null 18 , buildPackages ? {} 19 , libcxx ? null 20 21 # Whether or not to add `-B` and `-L` to `nix-support/cc-{c,ld}flags` 22 , useCcForLibs ? ··· 51 52 # the derivation at which the `-B` and `-L` flags added by `useCcForLibs` will point 53 , gccForLibs ? if useCcForLibs then cc else null 54 }: 55 56 with lib; ··· 334 ## 335 ## GCC libs for non-GCC support 336 ## 337 + + optionalString (useGccForLibs && isClang) '' 338 339 echo "-B${gccForLibs}/lib/gcc/${targetPlatform.config}/${gccForLibs.version}" >> $out/nix-support/cc-cflags 340 '' ··· 413 # already knows how to find its own libstdc++, and adding 414 # additional -isystem flags will confuse gfortran (see 415 # https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1500550903) 416 + + optionalString (libcxx == null && isClang && (useGccForLibs && gccForLibs.langCC or false)) '' 417 for dir in ${gccForLibs}${lib.optionalString (hostPlatform != targetPlatform) "/${targetPlatform.config}"}/include/c++/*; do 418 echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags 419 done
+15 -5
pkgs/build-support/setup-hooks/auto-patchelf.py
··· 167 found: bool = False # Whether it was found somewhere 168 169 170 - def auto_patchelf_file(path: Path, runtime_deps: list[Path]) -> list[Dependency]: 171 try: 172 with open_elf(path) as elf: 173 ··· 235 dependencies.append(Dependency(path, dep, False)) 236 print(f" {dep} -> not found!") 237 238 # Dedup the rpath 239 rpath_str = ":".join(dict.fromkeys(map(Path.as_posix, rpath))) 240 ··· 251 paths_to_patch: List[Path], 252 lib_dirs: List[Path], 253 runtime_deps: List[Path], 254 - recursive: bool =True, 255 - ignore_missing: List[str] = []) -> None: 256 257 if not paths_to_patch: 258 sys.exit("No paths to patch, stopping.") ··· 265 dependencies = [] 266 for path in chain.from_iterable(glob(p, '*', recursive) for p in paths_to_patch): 267 if not path.is_symlink() and path.is_file(): 268 - dependencies += auto_patchelf_file(path, runtime_deps) 269 270 missing = [dep for dep in dependencies if not dep.found] 271 ··· 312 parser.add_argument( 313 "--runtime-dependencies", nargs="*", type=Path, 314 help="Paths to prepend to the runtime path of executable binaries.") 315 316 print("automatically fixing dependencies for ELF files") 317 args = parser.parse_args() ··· 322 args.libs, 323 args.runtime_dependencies, 324 args.recursive, 325 - args.ignore_missing) 326 327 328 interpreter_path: Path = None # type: ignore
··· 167 found: bool = False # Whether it was found somewhere 168 169 170 + def auto_patchelf_file(path: Path, runtime_deps: list[Path], append_rpaths: List[Path] = []) -> list[Dependency]: 171 try: 172 with open_elf(path) as elf: 173 ··· 235 dependencies.append(Dependency(path, dep, False)) 236 print(f" {dep} -> not found!") 237 238 + rpath.extend(append_rpaths) 239 + 240 # Dedup the rpath 241 rpath_str = ":".join(dict.fromkeys(map(Path.as_posix, rpath))) 242 ··· 253 paths_to_patch: List[Path], 254 lib_dirs: List[Path], 255 runtime_deps: List[Path], 256 + recursive: bool = True, 257 + ignore_missing: List[str] = [], 258 + append_rpaths: List[Path] = []) -> None: 259 260 if not paths_to_patch: 261 sys.exit("No paths to patch, stopping.") ··· 268 dependencies = [] 269 for path in chain.from_iterable(glob(p, '*', recursive) for p in paths_to_patch): 270 if not path.is_symlink() and path.is_file(): 271 + dependencies += auto_patchelf_file(path, runtime_deps, append_rpaths) 272 273 missing = [dep for dep in dependencies if not dep.found] 274 ··· 315 parser.add_argument( 316 "--runtime-dependencies", nargs="*", type=Path, 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 + ) 324 325 print("automatically fixing dependencies for ELF files") 326 args = parser.parse_args() ··· 331 args.libs, 332 args.runtime_dependencies, 333 args.recursive, 334 + args.ignore_missing, 335 + append_rpaths=args.append_rpaths) 336 337 338 interpreter_path: Path = None # type: ignore
+3 -1
pkgs/build-support/setup-hooks/auto-patchelf.sh
··· 61 ignoreMissingDepsArray=( "*" ) 62 fi 63 64 local runtimeDependenciesArray=($runtimeDependencies) 65 @pythonInterpreter@ @autoPatchelfScript@ \ 66 ${norecurse:+--no-recurse} \ ··· 68 --paths "$@" \ 69 --libs "${autoPatchelfLibs[@]}" \ 70 "${extraAutoPatchelfLibs[@]}" \ 71 - --runtime-dependencies "${runtimeDependenciesArray[@]/%//lib}" 72 } 73 74 # XXX: This should ultimately use fixupOutputHooks but we currently don't have
··· 61 ignoreMissingDepsArray=( "*" ) 62 fi 63 64 + local appendRunpathsArray=($appendRunpaths) 65 local runtimeDependenciesArray=($runtimeDependencies) 66 @pythonInterpreter@ @autoPatchelfScript@ \ 67 ${norecurse:+--no-recurse} \ ··· 69 --paths "$@" \ 70 --libs "${autoPatchelfLibs[@]}" \ 71 "${extraAutoPatchelfLibs[@]}" \ 72 + --runtime-dependencies "${runtimeDependenciesArray[@]/%//lib}" \ 73 + --append-rpaths "${appendRunpathsArray[@]}" 74 } 75 76 # XXX: This should ultimately use fixupOutputHooks but we currently don't have
+2 -2
pkgs/build-support/setup-hooks/strip.sh
··· 39 if [[ "${dontStrip-}" || "${flag-}" ]] || ! type -f "${stripCmd-}" 2>/dev/null 1>&2 40 then continue; fi 41 42 - stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S}" 43 - stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s}" 44 done 45 } 46
··· 39 if [[ "${dontStrip-}" || "${flag-}" ]] || ! type -f "${stripCmd-}" 2>/dev/null 1>&2 40 then continue; fi 41 42 + stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}" 43 + stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}" 44 done 45 } 46
+6
pkgs/development/compilers/cudatoolkit/redist/build-cuda-redist-package.nix
··· 38 stdenv.cc.cc.lib 39 ]; 40 41 dontBuild = true; 42 43 # TODO: choose whether to install static/dynamic libs
··· 38 stdenv.cc.cc.lib 39 ]; 40 41 + # Picked up by autoPatchelf 42 + # Needed e.g. for libnvrtc to locate (dlopen) libnvrtc-builtins 43 + appendRunpaths = [ 44 + "$ORIGIN" 45 + ]; 46 + 47 dontBuild = true; 48 49 # TODO: choose whether to install static/dynamic libs
+1 -1
pkgs/development/compilers/gcc/12/default.nix
··· 29 , buildPackages 30 , libxcrypt 31 , disableGdbPlugin ? !enablePlugin 32 - , disableBootstrap ? !stdenv.hostPlatform.isDarwin 33 , nukeReferences 34 , callPackage 35 }: ··· 57 58 let majorVersion = "12"; 59 version = "${majorVersion}.2.0"; 60 61 inherit (stdenv) buildPlatform hostPlatform targetPlatform; 62
··· 29 , buildPackages 30 , libxcrypt 31 , disableGdbPlugin ? !enablePlugin 32 , nukeReferences 33 , callPackage 34 }: ··· 56 57 let majorVersion = "12"; 58 version = "${majorVersion}.2.0"; 59 + disableBootstrap = !stdenv.hostPlatform.isDarwin; 60 61 inherit (stdenv) buildPlatform hostPlatform targetPlatform; 62
+1 -1
pkgs/development/compilers/gcc/builder.sh
··· 262 fi 263 264 # Get rid of some "fixed" header files 265 - rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h} 266 267 # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. 268 for i in $out/bin/*-gcc*; do
··· 262 fi 263 264 # Get rid of some "fixed" header files 265 + rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h,bits/statx.h} 266 267 # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. 268 for i in $out/bin/*-gcc*; do
+4 -1
pkgs/development/compilers/gcc/common/configure-flags.nix
··· 44 inherit (stdenv) 45 buildPlatform hostPlatform targetPlatform; 46 47 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; 48 crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem"; 49 ··· 217 # TODO: aarch64-darwin has clang stdenv and its arch and cpu flag values are incompatible with gcc 218 ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) (import ../common/platform-flags.nix { inherit (stdenv) targetPlatform; inherit lib; }) 219 ++ lib.optionals (targetPlatform != hostPlatform) crossConfigureFlags 220 - ++ lib.optional disableBootstrap "--disable-bootstrap" 221 222 # Platform-specific flags 223 ++ lib.optional (targetPlatform == hostPlatform && targetPlatform.isx86_32) "--with-arch=${stdenv.hostPlatform.parsed.cpu.name}"
··· 44 inherit (stdenv) 45 buildPlatform hostPlatform targetPlatform; 46 47 + # See https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1500550903 48 + disableBootstrap' = disableBootstrap && !langFortran; 49 + 50 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; 51 crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem"; 52 ··· 220 # TODO: aarch64-darwin has clang stdenv and its arch and cpu flag values are incompatible with gcc 221 ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) (import ../common/platform-flags.nix { inherit (stdenv) targetPlatform; inherit lib; }) 222 ++ lib.optionals (targetPlatform != hostPlatform) crossConfigureFlags 223 + ++ lib.optional disableBootstrap' "--disable-bootstrap" 224 225 # Platform-specific flags 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 { lib, targetPlatform }: 2 3 let 4 - p = targetPlatform.gcc or {} 5 // targetPlatform.parsed.abi; 6 in lib.concatLists [ 7 (lib.optional (!targetPlatform.isx86_64 && p ? arch) "--with-arch=${p.arch}") # --with-arch= is unknown flag on x86_64 ··· 10 (lib.optional (p ? fpu) "--with-fpu=${p.fpu}") 11 (lib.optional (p ? float) "--with-float=${p.float}") 12 (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") 16 ]
··· 1 { lib, targetPlatform }: 2 3 let 4 + gcc = targetPlatform.gcc or {}; 5 + p = gcc 6 // targetPlatform.parsed.abi; 7 in lib.concatLists [ 8 (lib.optional (!targetPlatform.isx86_64 && p ? arch) "--with-arch=${p.arch}") # --with-arch= is unknown flag on x86_64 ··· 11 (lib.optional (p ? fpu) "--with-fpu=${p.fpu}") 12 (lib.optional (p ? float) "--with-float=${p.float}") 13 (lib.optional (p ? mode) "--with-mode=${p.mode}") 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 + ])) 28 ]
+2 -3
pkgs/development/compilers/llvm/13/default.nix
··· 1 { lowPrio, newScope, pkgs, lib, stdenv, cmake 2 - , stdenv-tmpDropB 3 , gccForLibs, preLibcCrossHeaders 4 , libxml2, python3, isl, fetchFromGitHub, overrideCC, wrapCCWith, wrapBintoolsWith 5 , buildLlvmTools # tools, but from the previous stage, for cross ··· 237 inherit llvm_meta; 238 stdenv = if stdenv.hostPlatform.useLLVM or false 239 then overrideCC stdenv buildLlvmTools.clangNoCompilerRtWithLibc 240 - else stdenv-tmpDropB; 241 }; 242 243 compiler-rt-no-libc = callPackage ./compiler-rt { 244 inherit llvm_meta; 245 stdenv = if stdenv.hostPlatform.useLLVM or false 246 then overrideCC stdenv buildLlvmTools.clangNoCompilerRt 247 - else stdenv-tmpDropB; 248 }; 249 250 # N.B. condition is safe because without useLLVM both are the same.
··· 1 { lowPrio, newScope, pkgs, lib, stdenv, cmake 2 , gccForLibs, preLibcCrossHeaders 3 , libxml2, python3, isl, fetchFromGitHub, overrideCC, wrapCCWith, wrapBintoolsWith 4 , buildLlvmTools # tools, but from the previous stage, for cross ··· 236 inherit llvm_meta; 237 stdenv = if stdenv.hostPlatform.useLLVM or false 238 then overrideCC stdenv buildLlvmTools.clangNoCompilerRtWithLibc 239 + else stdenv; 240 }; 241 242 compiler-rt-no-libc = callPackage ./compiler-rt { 243 inherit llvm_meta; 244 stdenv = if stdenv.hostPlatform.useLLVM or false 245 then overrideCC stdenv buildLlvmTools.clangNoCompilerRt 246 + else stdenv; 247 }; 248 249 # N.B. condition is safe because without useLLVM both are the same.
-3
pkgs/development/compilers/llvm/rocm/default.nix
··· 1 { lib 2 , stdenv 3 - , stdenv-tmpDropB 4 , callPackage 5 , overrideCC 6 , wrapCCWith ··· 79 80 # Runtimes 81 runtimes = callPackage ./llvm.nix { 82 - stdenv = stdenv-tmpDropB; 83 - 84 buildDocs = false; 85 buildMan = false; 86 buildTests = false;
··· 1 { lib 2 , stdenv 3 , callPackage 4 , overrideCC 5 , wrapCCWith ··· 78 79 # Runtimes 80 runtimes = callPackage ./llvm.nix { 81 buildDocs = false; 82 buildMan = false; 83 buildTests = false;
+12 -2
pkgs/development/compilers/rust/1_68.nix
··· 17 , makeRustPlatform 18 , llvmPackages_11 19 , llvmPackages_15, llvm_15 20 } @ args: 21 22 import ./default.nix { ··· 57 58 selectRustPackage = pkgs: pkgs.rust_1_68; 59 60 - rustcPatches = [ ]; 61 } 62 63 - (builtins.removeAttrs args [ "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"])
··· 17 , makeRustPlatform 18 , llvmPackages_11 19 , llvmPackages_15, llvm_15 20 + , fetchpatch 21 } @ args: 22 23 import ./default.nix { ··· 58 59 selectRustPackage = pkgs: pkgs.rust_1_68; 60 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 + ]; 71 } 72 73 + (builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"])
+1 -1
pkgs/development/compilers/rust/rustc.nix
··· 21 inherit (lib) optionals optional optionalString concatStringsSep; 22 inherit (darwin.apple_sdk.frameworks) Security; 23 in stdenv.mkDerivation rec { 24 - pname = "rustc"; 25 inherit version; 26 27 src = fetchurl {
··· 21 inherit (lib) optionals optional optionalString concatStringsSep; 22 inherit (darwin.apple_sdk.frameworks) Security; 23 in stdenv.mkDerivation rec { 24 + pname = "${pkgsBuildTarget.targetPackages.stdenv.cc.targetPrefix}rustc"; 25 inherit version; 26 27 src = fetchurl {
+4
pkgs/development/compilers/sbcl/2.x.nix
··· 26 "2.3.0" = { 27 sha256 = "sha256-v3Q5SXEq4Cy3ST87i1fOJBlIv2ETHjaGDdszTaFDnJc="; 28 }; 29 }; 30 31 in with versionMap.${version};
··· 26 "2.3.0" = { 27 sha256 = "sha256-v3Q5SXEq4Cy3ST87i1fOJBlIv2ETHjaGDdszTaFDnJc="; 28 }; 29 + 30 + "2.3.2" = { 31 + sha256 = "sha256-RMwWLPpjMqmojHoSHRkDiCikuk9r/7d+8cexdAfLHqo="; 32 + }; 33 }; 34 35 in with versionMap.${version};
+4 -4
pkgs/development/interpreters/python/default.nix
··· 121 sourceVersion = { 122 major = "3"; 123 minor = "10"; 124 - patch = "10"; 125 suffix = ""; 126 }; 127 - hash = "sha256-BBnpCFv1G3pnIAmz9Q2/GFms3xi6cl0OwZqlyFA/DqM="; 128 }; 129 130 python311 = { 131 sourceVersion = { 132 major = "3"; 133 minor = "11"; 134 - patch = "2"; 135 suffix = ""; 136 }; 137 - hash = "sha256-KeS49fFlhUKowT4t0nc1jJxI8rL3MYZS7xZ15AK50q8="; 138 }; 139 }; 140
··· 121 sourceVersion = { 122 major = "3"; 123 minor = "10"; 124 + patch = "11"; 125 suffix = ""; 126 }; 127 + hash = "sha256-PDvDBIMDchyQSgPrgya2Mekh8RzDvimIRWpC8RXa8Ew="; 128 }; 129 130 python311 = { 131 sourceVersion = { 132 major = "3"; 133 minor = "11"; 134 + patch = "3"; 135 suffix = ""; 136 }; 137 + hash = "sha256-il25nJYafs8nx1lWGJyWAslodR8R2+riuQDb/xwIW14="; 138 }; 139 }; 140
+1 -1
pkgs/development/interpreters/ruby/default.nix
··· 51 , buildEnv, bundler, bundix 52 , libiconv, libobjc, libunwind, Foundation 53 , makeBinaryWrapper, buildRubyGem, defaultGemConfig 54 - , baseRuby ? buildPackages.ruby_3_1.override { 55 docSupport = false; 56 rubygemsSupport = false; 57 }
··· 51 , buildEnv, bundler, bundix 52 , libiconv, libobjc, libunwind, Foundation 53 , makeBinaryWrapper, buildRubyGem, defaultGemConfig 54 + , baseRuby ? buildPackages.ruby.override { 55 docSupport = false; 56 rubygemsSupport = false; 57 }
+2 -2
pkgs/development/interpreters/ruby/rubygems/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rubygems"; 5 - version = "3.4.8"; 6 7 src = fetchurl { 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 - sha256 = "sha256-0FlDZJNJJGVkvBmKWNBqNRaTto6ciCOuQEK6uq6dotQ="; 10 }; 11 12 patches = [
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rubygems"; 5 + version = "3.4.12"; 6 7 src = fetchurl { 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 + sha256 = "sha256-WFCnwvw4DN09pwShznuwSNQtSACTPfULiSAmW1hF4Vs="; 10 }; 11 12 patches = [
+7 -5
pkgs/development/libraries/SDL2/default.nix
··· 23 , wayland 24 , wayland-protocols 25 , wayland-scanner 26 - , drmSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid 27 , libdrm 28 , mesa 29 , libxkbcommon ··· 86 87 nativeBuildInputs = [ pkg-config ] ++ lib.optionals waylandSupport [ wayland wayland-scanner ]; 88 89 - propagatedBuildInputs = dlopenPropagatedBuildInputs; 90 - 91 dlopenPropagatedBuildInputs = [ ] 92 # Propagated for #include <GLES/gl.h> in SDL_opengles.h. 93 ++ lib.optional openglSupport libGL 94 # Propagated for #include <X11/Xlib.h> and <X11/Xatom.h> in SDL_syswm.h. 95 - ++ lib.optionals x11Support [ libX11 xorgproto ]; 96 97 dlopenBuildInputs = lib.optionals alsaSupport [ alsa-lib audiofile ] 98 ++ lib.optional dbusSupport dbus ··· 100 ++ lib.optional pipewireSupport pipewire 101 ++ lib.optional pulseaudioSupport libpulseaudio 102 ++ lib.optional udevSupport udev 103 - ++ lib.optionals waylandSupport [ wayland wayland-protocols libxkbcommon ] 104 ++ lib.optionals x11Support [ libICE libXi libXScrnSaver libXcursor libXinerama libXext libXrandr libXxf86vm ] 105 ++ lib.optionals drmSupport [ libdrm mesa ]; 106 107 buildInputs = [ libiconv ] 108 ++ dlopenBuildInputs 109 ++ lib.optional ibusSupport ibus 110 ++ lib.optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ]; 111 112 enableParallelBuilding = true;
··· 23 , wayland 24 , wayland-protocols 25 , wayland-scanner 26 + , drmSupport ? false 27 , libdrm 28 , mesa 29 , libxkbcommon ··· 86 87 nativeBuildInputs = [ pkg-config ] ++ lib.optionals waylandSupport [ wayland wayland-scanner ]; 88 89 dlopenPropagatedBuildInputs = [ ] 90 # Propagated for #include <GLES/gl.h> in SDL_opengles.h. 91 ++ lib.optional openglSupport libGL 92 # Propagated for #include <X11/Xlib.h> and <X11/Xatom.h> in SDL_syswm.h. 93 + ++ lib.optionals x11Support [ libX11 ]; 94 + 95 + propagatedBuildInputs = lib.optionals x11Support [ xorgproto ] 96 + ++ dlopenPropagatedBuildInputs; 97 98 dlopenBuildInputs = lib.optionals alsaSupport [ alsa-lib audiofile ] 99 ++ lib.optional dbusSupport dbus ··· 101 ++ lib.optional pipewireSupport pipewire 102 ++ lib.optional pulseaudioSupport libpulseaudio 103 ++ lib.optional udevSupport udev 104 + ++ lib.optionals waylandSupport [ wayland libxkbcommon ] 105 ++ lib.optionals x11Support [ libICE libXi libXScrnSaver libXcursor libXinerama libXext libXrandr libXxf86vm ] 106 ++ lib.optionals drmSupport [ libdrm mesa ]; 107 108 buildInputs = [ libiconv ] 109 ++ dlopenBuildInputs 110 ++ lib.optional ibusSupport ibus 111 + ++ lib.optionals waylandSupport [ wayland-protocols ] 112 ++ lib.optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ]; 113 114 enableParallelBuilding = true;
+2
pkgs/development/libraries/apr-util/default.nix
··· 48 lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 49 substituteInPlace Makefile \ 50 --replace "-ldb-6.9" "-ldb" 51 ''; 52 53 propagatedBuildInputs = [ apr expat libiconv libxcrypt ]
··· 48 lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 49 substituteInPlace Makefile \ 50 --replace "-ldb-6.9" "-ldb" 51 + substituteInPlace apu-1-config \ 52 + --replace "-ldb-6.9" "-ldb" 53 ''; 54 55 propagatedBuildInputs = [ apr expat libiconv libxcrypt ]
+2
pkgs/development/libraries/audiofile/default.nix
··· 26 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"; 27 }; 28 29 # fix build with gcc9 30 NIX_CFLAGS_LINK = lib.optional (stdenv.system == "i686-linux") "-lgcc"; 31
··· 26 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"; 27 }; 28 29 + outputs = [ "out" "dev" "man" ]; 30 + 31 # fix build with gcc9 32 NIX_CFLAGS_LINK = lib.optional (stdenv.system == "i686-linux") "-lgcc"; 33
+2
pkgs/development/libraries/celt/generic.nix
··· 12 13 inherit src; 14 15 inherit prePatch; 16 17 buildInputs = []
··· 12 13 inherit src; 14 15 + outputs = [ "out" "dev" ]; 16 + 17 inherit prePatch; 18 19 buildInputs = []
+8
pkgs/development/libraries/directfb/default.nix
··· 25 }) 26 ]; 27 28 nativeBuildInputs = [ autoreconfHook perl pkg-config flux ]; 29 30 buildInputs = [ zlib libjpeg freetype giflib libpng ]
··· 25 }) 26 ]; 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 + 36 nativeBuildInputs = [ autoreconfHook perl pkg-config flux ]; 37 38 buildInputs = [ zlib libjpeg freetype giflib libpng ]
+2 -2
pkgs/development/libraries/directx-headers/default.nix
··· 1 { lib, stdenv, fetchFromGitHub, meson, ninja }: 2 stdenv.mkDerivation rec { 3 pname = "directx-headers"; 4 - version = "1.608.2b"; 5 6 src = fetchFromGitHub { 7 owner = "microsoft"; 8 repo = "DirectX-Headers"; 9 rev = "v${version}"; 10 - hash = "sha256-o4p8L2VKvMHdu1L2I1JI6pwIRtnyVCoKebg9yKTk1T8="; 11 }; 12 13 nativeBuildInputs = [ meson ninja ];
··· 1 { lib, stdenv, fetchFromGitHub, meson, ninja }: 2 stdenv.mkDerivation rec { 3 pname = "directx-headers"; 4 + version = "1.610.0"; 5 6 src = fetchFromGitHub { 7 owner = "microsoft"; 8 repo = "DirectX-Headers"; 9 rev = "v${version}"; 10 + hash = "sha256-lPYXAMFSyU3FopWdE6dDRWD6sVKcjxDVsTbgej/T2sk="; 11 }; 12 13 nativeBuildInputs = [ meson ninja ];
+2 -2
pkgs/development/libraries/egl-wayland/default.nix
··· 7 , wayland-scanner 8 , libGL 9 , libX11 10 - , mesa 11 , wayland 12 , wayland-protocols 13 }: ··· 68 eglexternalplatform 69 libGL 70 libX11 71 - mesa 72 wayland 73 wayland-protocols 74 ];
··· 7 , wayland-scanner 8 , libGL 9 , libX11 10 + , libdrm 11 , wayland 12 , wayland-protocols 13 }: ··· 68 eglexternalplatform 69 libGL 70 libX11 71 + libdrm 72 wayland 73 wayland-protocols 74 ];
+5 -1
pkgs/development/libraries/ffmpeg/generic.nix
··· 52 , withIlbc ? withFullDeps 53 , withJack ? withFullDeps && !stdenv.isDarwin # Jack audio 54 , withLadspa ? withFullDeps # LADSPA audio filtering 55 , withLzma ? withHeadlessDeps # xz-utils 56 , withMfx ? withFullDeps && (with stdenv.targetPlatform; isLinux && !isAarch) # Hardware acceleration via intel-media-sdk/libmfx 57 , withModplug ? withFullDeps && !stdenv.isDarwin # ModPlug support ··· 209 , libogg 210 , libopenmpt 211 , libopus 212 , librsvg 213 , libssh 214 , libtheora ··· 288 */ 289 290 let 291 - inherit (lib) optional optionals optionalString enableFeature; 292 in 293 294 ··· 469 (enableFeature withModplug "libmodplug") 470 (enableFeature withMysofa "libmysofa") 471 (enableFeature withOpus "libopus") 472 (enableFeature withSvg "librsvg") 473 (enableFeature withSrt "libsrt") 474 (enableFeature withSsh "libssh") ··· 571 ++ optionals withIconv [ libiconv ] # On Linux this should be in libc, do we really need it? 572 ++ optionals withJack [ libjack2 ] 573 ++ optionals withLadspa [ ladspaH ] 574 ++ optionals withLzma [ xz ] 575 ++ optionals withMfx [ intel-media-sdk ] 576 ++ optionals withModplug [ libmodplug ]
··· 52 , withIlbc ? withFullDeps 53 , withJack ? withFullDeps && !stdenv.isDarwin # Jack audio 54 , withLadspa ? withFullDeps # LADSPA audio filtering 55 + , withLibplacebo ? withFullDeps && !stdenv.isDarwin # libplacebo video processing library 56 , withLzma ? withHeadlessDeps # xz-utils 57 , withMfx ? withFullDeps && (with stdenv.targetPlatform; isLinux && !isAarch) # Hardware acceleration via intel-media-sdk/libmfx 58 , withModplug ? withFullDeps && !stdenv.isDarwin # ModPlug support ··· 210 , libogg 211 , libopenmpt 212 , libopus 213 + , libplacebo 214 , librsvg 215 , libssh 216 , libtheora ··· 290 */ 291 292 let 293 + inherit (lib) optional optionals optionalString enableFeature versionAtLeast; 294 in 295 296 ··· 471 (enableFeature withModplug "libmodplug") 472 (enableFeature withMysofa "libmysofa") 473 (enableFeature withOpus "libopus") 474 + (optionalString (versionAtLeast version "5.0" && withLibplacebo) "--enable-libplacebo") 475 (enableFeature withSvg "librsvg") 476 (enableFeature withSrt "libsrt") 477 (enableFeature withSsh "libssh") ··· 574 ++ optionals withIconv [ libiconv ] # On Linux this should be in libc, do we really need it? 575 ++ optionals withJack [ libjack2 ] 576 ++ optionals withLadspa [ ladspaH ] 577 + ++ optionals withLibplacebo [ libplacebo vulkan-headers ] 578 ++ optionals withLzma [ xz ] 579 ++ optionals withMfx [ intel-media-sdk ] 580 ++ optionals withModplug [ libmodplug ]
+11 -1
pkgs/development/libraries/gettext/default.nix
··· 1 - { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }: 2 3 # Note: this package is used for bootstrapping fetchurl, and thus 4 # cannot use fetchpatch! All mutable patches (generated by GitHub or ··· 45 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 46 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 47 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 48 ''; 49 50 strictDeps = true;
··· 1 + { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash 2 + , gnulib 3 + }: 4 5 # Note: this package is used for bootstrapping fetchurl, and thus 6 # cannot use fetchpatch! All mutable patches (generated by GitHub or ··· 47 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 48 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 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} 58 ''; 59 60 strictDeps = true;
+7
pkgs/development/libraries/glibc/default.nix
··· 63 # Same for musl: https://github.com/NixOS/nixpkgs/issues/78805 64 "-Wno-error=missing-attributes" 65 ]) 66 ]); 67 }; 68
··· 63 # Same for musl: https://github.com/NixOS/nixpkgs/issues/78805 64 "-Wno-error=missing-attributes" 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 + ]) 73 ]); 74 }; 75
+5 -5
pkgs/development/libraries/gnu-config/default.nix
··· 1 { lib, stdenv, fetchurl }: 2 3 let 4 - rev = "6faca61810d335c7837f320733fe8e15a1431fc2"; 5 6 # Don't use fetchgit as this is needed during Aarch64 bootstrapping 7 configGuess = fetchurl { 8 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}"; 9 - sha256 = "06wkkhpbx9slmknr2g7mcd8x3zsdhnmmay25l31h3rkdp1wkq7kx"; 10 }; 11 configSub = fetchurl { 12 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}"; 13 - sha256 = "1qkph8cqanmgy3s4a18bm1a4vk62i8pf8cy5pc1hkpqwn4g6l0di"; 14 }; 15 in stdenv.mkDerivation { 16 pname = "gnu-config"; 17 - version = "2021-01-25"; 18 19 buildCommand = '' 20 mkdir -p $out ··· 34 # configuration script generated by Autoconf, you may include it under 35 # the same distribution terms that you use for the rest of that 36 # program. 37 - maintainers = [ maintainers.dezgeg ]; 38 platforms = platforms.all; 39 }; 40 }
··· 1 { lib, stdenv, fetchurl }: 2 3 let 4 + rev = "63acb96f92473ceb5e21d873d7c0aee266b3d6d3"; 5 6 # Don't use fetchgit as this is needed during Aarch64 bootstrapping 7 configGuess = fetchurl { 8 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}"; 9 + sha256 = "049qgfh4xjd4fxd7ygm1phd5faqphfvhfcv8dsdldprsp86lf55v"; 10 }; 11 configSub = fetchurl { 12 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}"; 13 + sha256 = "1rk30y27mzls49wyfdb5jhzjr08hkxl7xqhnxmhcmkvqlmpsjnxl"; 14 }; 15 in stdenv.mkDerivation { 16 pname = "gnu-config"; 17 + version = "2023-01-21"; 18 19 buildCommand = '' 20 mkdir -p $out ··· 34 # configuration script generated by Autoconf, you may include it under 35 # the same distribution terms that you use for the rest of that 36 # program. 37 + maintainers = with maintainers; [ dezgeg emilytrau ]; 38 platforms = platforms.all; 39 }; 40 }
-1
pkgs/development/libraries/goffice/default.nix
··· 27 buildInputs = [ libxslt librsvg ]; 28 29 enableParallelBuilding = true; 30 - doCheck = !stdenv.hostPlatform.isPower64; 31 32 passthru = { 33 updateScript = gnome.updateScript {
··· 27 buildInputs = [ libxslt librsvg ]; 28 29 enableParallelBuilding = true; 30 31 passthru = { 32 updateScript = gnome.updateScript {
+2
pkgs/development/libraries/gpgme/default.nix
··· 98 ++ lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64" 99 ); 100 101 # prevent tests from being run during the buildPhase 102 makeFlags = [ "tests=" ]; 103
··· 98 ++ lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64" 99 ); 100 101 + enableParallelBuilding = true; 102 + 103 # prevent tests from being run during the buildPhase 104 makeFlags = [ "tests=" ]; 105
+20 -10
pkgs/development/libraries/gstreamer/bad/default.nix
··· 57 , neon 58 , openal 59 , opencv4 60 - , openexr 61 , openh264 62 , libopenmpt 63 , pango ··· 80 , libGLU 81 , libGL 82 , addOpenGLRunpath 83 , libintl 84 , game-music-emu 85 , openssl ··· 92 , VideoToolbox 93 , AudioToolbox 94 , AVFoundation 95 , CoreMedia 96 , CoreVideo 97 , Foundation 98 , MediaToolbox 99 , enableGplPlugins ? true 100 , bluezSupport ? stdenv.isLinux 101 }: 102 103 stdenv.mkDerivation rec { 104 pname = "gst-plugins-bad"; 105 - version = "1.20.3"; 106 107 outputs = [ "out" "dev" ]; 108 109 src = fetchurl { 110 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 111 - sha256 = "sha256-ehHBO1XdHSOG3ZAiGeQcv83ajh4Ko+c4GGyVB0s12k8="; 112 }; 113 114 patches = [ ··· 128 gettext 129 gstreamer # for gst-tester-1.0 130 gobject-introspection 131 ] ++ lib.optionals stdenv.isLinux [ 132 wayland # for wayland-scanner 133 ]; ··· 164 neon 165 openal 166 opencv4 167 - openexr 168 openh264 169 rtmpdump 170 pango ··· 177 gnutls 178 libGL 179 libGLU 180 game-music-emu 181 openssl 182 libxml2 ··· 233 VideoToolbox 234 AudioToolbox 235 AVFoundation 236 CoreMedia 237 CoreVideo 238 Foundation ··· 241 242 mesonFlags = [ 243 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 244 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 245 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 246 247 "-Davtp=disabled" 248 "-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 "-Dzbar=${if enableZbar then "enabled" else "disabled"}" 250 "-Dfaac=${if faacSupport then "enabled" else "disabled"}" ··· 278 "-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing 279 "-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx` 280 "-Dbluez=${if bluezSupport then "enabled" else "disabled"}" 281 ] 282 ++ lib.optionals (!stdenv.isLinux) [ 283 "-Dva=disabled" # see comment on `libva` in `buildInputs` 284 ] 285 ++ lib.optionals stdenv.isDarwin [ ··· 297 "-Dladspa=disabled" # requires lrdf 298 "-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs 299 "-Dwildmidi=disabled" # see dependencies above 300 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 301 "-Dgl=disabled" 302 ] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [ 303 "-Dwayland=disabled" 304 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 305 # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`, ··· 323 postPatch = '' 324 patchShebangs \ 325 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 ''; 332 333 # This package has some `_("string literal")` string formats
··· 57 , neon 58 , openal 59 , opencv4 60 + , openexr_3 61 , openh264 62 , libopenmpt 63 , pango ··· 80 , libGLU 81 , libGL 82 , addOpenGLRunpath 83 + , gtk3 84 , libintl 85 , game-music-emu 86 , openssl ··· 93 , VideoToolbox 94 , AudioToolbox 95 , AVFoundation 96 + , Cocoa 97 , CoreMedia 98 , CoreVideo 99 , Foundation 100 , MediaToolbox 101 , enableGplPlugins ? true 102 , bluezSupport ? stdenv.isLinux 103 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 104 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 105 }: 106 107 stdenv.mkDerivation rec { 108 pname = "gst-plugins-bad"; 109 + version = "1.22.2"; 110 111 outputs = [ "out" "dev" ]; 112 113 src = fetchurl { 114 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 115 + hash = "sha256-PY+vHONALIU1zjqMThpslg5LVlXb2mtVlD25rHkCLQ8="; 116 }; 117 118 patches = [ ··· 132 gettext 133 gstreamer # for gst-tester-1.0 134 gobject-introspection 135 + ] ++ lib.optionals enableDocumentation [ 136 + hotdoc 137 ] ++ lib.optionals stdenv.isLinux [ 138 wayland # for wayland-scanner 139 ]; ··· 170 neon 171 openal 172 opencv4 173 + openexr_3 174 openh264 175 rtmpdump 176 pango ··· 183 gnutls 184 libGL 185 libGLU 186 + gtk3 187 game-music-emu 188 openssl 189 libxml2 ··· 240 VideoToolbox 241 AudioToolbox 242 AVFoundation 243 + Cocoa 244 CoreMedia 245 CoreVideo 246 Foundation ··· 249 250 mesonFlags = [ 251 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 252 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 253 254 + "-Damfcodec=disabled" # Windows-only 255 "-Davtp=disabled" 256 + "-Ddirectshow=disabled" # Windows-only 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" 258 "-Dzbar=${if enableZbar then "enabled" else "disabled"}" 259 "-Dfaac=${if faacSupport then "enabled" else "disabled"}" ··· 287 "-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing 288 "-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx` 289 "-Dbluez=${if bluezSupport then "enabled" else "disabled"}" 290 + (lib.mesonEnable "doc" enableDocumentation) 291 ] 292 ++ lib.optionals (!stdenv.isLinux) [ 293 + "-Ddoc=disabled" # needs gstcuda to be enabled which is Linux-only 294 + "-Dnvcodec=disabled" # Linux-only 295 "-Dva=disabled" # see comment on `libva` in `buildInputs` 296 ] 297 ++ lib.optionals stdenv.isDarwin [ ··· 309 "-Dladspa=disabled" # requires lrdf 310 "-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs 311 "-Dwildmidi=disabled" # see dependencies above 312 + ] ++ lib.optionals (!stdenv.isLinux || !stdenv.isx86_64) [ 313 + "-Dqsv=disabled" # Linux (and Windows) x86 only 314 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 315 "-Dgl=disabled" 316 ] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [ 317 + "-Dgtk3=disabled" # Wayland-based GTK sink 318 "-Dwayland=disabled" 319 ] ++ lib.optionals (!gst-plugins-base.glEnabled) [ 320 # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`, ··· 338 postPatch = '' 339 patchShebangs \ 340 scripts/extract-release-date-from-doap-file.py 341 ''; 342 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) 6 return TRUE; 7 8 module = g_module_open (filename, G_MODULE_BIND_LAZY); 9 + 10 + if (module == NULL) { 11 - + module = g_module_open("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY); 12 + } 13 + 14 if (module == NULL) { 15 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 16 return FALSE; 17 diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c 18 - index 3c7505ca36..eeb376fa80 100644 19 --- a/sys/nvcodec/gstcuvidloader.c 20 +++ b/sys/nvcodec/gstcuvidloader.c 21 @@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver) ··· 31 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 32 return FALSE; 33 diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c 34 - index 19637671ad..39858ccdee 100644 35 --- a/sys/nvcodec/gstnvenc.c 36 +++ b/sys/nvcodec/gstnvenc.c 37 - @@ -874,6 +874,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver) 38 }; 39 40 module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
··· 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 return TRUE; 7 8 module = g_module_open (filename, G_MODULE_BIND_LAZY); 9 + 10 + if (module == NULL) { 11 + + module = g_module_open ("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY); 12 + } 13 + 14 if (module == NULL) { 15 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 16 return FALSE; 17 diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c 18 + index e957e062e0..004ec2dcd5 100644 19 --- a/sys/nvcodec/gstcuvidloader.c 20 +++ b/sys/nvcodec/gstcuvidloader.c 21 @@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver) ··· 31 GST_WARNING ("Could not open library %s, %s", filename, g_module_error ()); 32 return FALSE; 33 diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c 34 + index 106857a954..3bab9989f0 100644 35 --- a/sys/nvcodec/gstnvenc.c 36 +++ b/sys/nvcodec/gstnvenc.c 37 + @@ -907,6 +907,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver) 38 }; 39 40 module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
+18 -12
pkgs/development/libraries/gstreamer/base/default.nix
··· 7 , gettext 8 , python3 9 , gstreamer 10 , orc 11 , pango 12 , libtheora ··· 20 , libGL 21 , gobject-introspection 22 , enableX11 ? stdenv.isLinux 23 , libXv 24 - , libXext 25 , enableWayland ? stdenv.isLinux 26 , wayland 27 , wayland-protocols 28 , enableAlsa ? stdenv.isLinux 29 , 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 34 , Cocoa 35 , OpenGL 36 , enableGl ? (enableX11 || enableWayland || enableCocoa) ··· 38 , cdparanoia 39 , glib 40 , testers 41 }: 42 43 stdenv.mkDerivation (finalAttrs: { 44 pname = "gst-plugins-base"; 45 - version = "1.20.3"; 46 47 outputs = [ "out" "dev" ]; 48 ··· 50 inherit (finalAttrs) pname version; 51 in fetchurl { 52 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 53 - sha256 = "sha256-fjCz3YGnA4D/dVT5mEcdaZb/drvm/FRHCW+FHiRHPJ8="; 54 }; 55 56 strictDeps = true; ··· 66 orc 67 glib 68 gstreamer 69 - # docs 70 - # TODO add hotdoc here 71 gobject-introspection 72 - ] ++ lib.optional enableWayland wayland; 73 74 buildInputs = [ 75 gobject-introspection 76 orc 77 libtheora 78 libintl ··· 91 alsa-lib 92 ] ++ lib.optionals enableX11 [ 93 libXext 94 libXv 95 ] ++ lib.optionals enableWayland [ 96 wayland ··· 104 105 mesonFlags = [ 106 "-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 # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices 110 "-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}" 111 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 112 "-Dtests=disabled" 113 ]
··· 7 , gettext 8 , python3 9 , gstreamer 10 + , graphene 11 , orc 12 , pango 13 , libtheora ··· 21 , libGL 22 , gobject-introspection 23 , enableX11 ? stdenv.isLinux 24 + , libXext 25 + , libXi 26 , libXv 27 , enableWayland ? stdenv.isLinux 28 , wayland 29 , wayland-protocols 30 , enableAlsa ? stdenv.isLinux 31 , alsa-lib 32 + # TODO: fix once x86_64-darwin sdk updated 33 + , enableCocoa ? (stdenv.isDarwin && stdenv.isAarch64) 34 , Cocoa 35 , OpenGL 36 , enableGl ? (enableX11 || enableWayland || enableCocoa) ··· 38 , cdparanoia 39 , glib 40 , testers 41 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 42 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform 43 + , hotdoc 44 }: 45 46 stdenv.mkDerivation (finalAttrs: { 47 pname = "gst-plugins-base"; 48 + version = "1.22.2"; 49 50 outputs = [ "out" "dev" ]; 51 ··· 53 inherit (finalAttrs) pname version; 54 in fetchurl { 55 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 56 + hash = "sha256-62USDE7nm3oVPDwZctXAFYwhUYd8xR7Hclu6V0lnnUk="; 57 }; 58 59 strictDeps = true; ··· 69 orc 70 glib 71 gstreamer 72 gobject-introspection 73 + ] ++ lib.optionals enableDocumentation [ 74 + hotdoc 75 + ] ++ lib.optionals enableWayland [ 76 + wayland 77 + ]; 78 79 buildInputs = [ 80 gobject-introspection 81 + graphene 82 orc 83 libtheora 84 libintl ··· 97 alsa-lib 98 ] ++ lib.optionals enableX11 [ 99 libXext 100 + libXi 101 libXv 102 ] ++ lib.optionals enableWayland [ 103 wayland ··· 111 112 mesonFlags = [ 113 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 114 # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices 115 "-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}" 116 + (lib.mesonEnable "doc" enableDocumentation) 117 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 118 "-Dtests=disabled" 119 ]
+9 -10
pkgs/development/libraries/gstreamer/core/default.nix
··· 11 , makeWrapper 12 , libcap 13 , libunwind 14 - , darwin 15 , elfutils # for libdw 16 , bash-completion 17 , lib 18 , CoreServices 19 , gobject-introspection 20 , testers 21 }: 22 23 stdenv.mkDerivation (finalAttrs: { 24 pname = "gstreamer"; 25 - version = "1.20.3"; 26 27 outputs = [ 28 "bin" 29 "out" 30 "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 ]; 35 36 src = let 37 inherit (finalAttrs) pname version; 38 in fetchurl { 39 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 40 - sha256 = "sha256-YH2vZLu9X7GK+dF+IcDSLE1wL//oOyPLItGxryyiOio="; 41 }; 42 43 depsBuildBuild = [ ··· 57 glib 58 bash-completion 59 gobject-introspection 60 - 61 - # documentation 62 - # TODO add hotdoc here 63 ] ++ lib.optionals stdenv.isLinux [ 64 libcap # for setcap binary 65 ]; 66 67 buildInputs = [ ··· 72 libunwind 73 elfutils 74 ] ++ lib.optionals stdenv.isDarwin [ 75 CoreServices 76 ]; 77 ··· 82 mesonFlags = [ 83 "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those 84 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 85 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 86 ] ++ lib.optionals stdenv.isDarwin [ 87 # darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it. 88 "-Dlibunwind=disabled"
··· 11 , makeWrapper 12 , libcap 13 , libunwind 14 , elfutils # for libdw 15 , bash-completion 16 , lib 17 + , Cocoa 18 , CoreServices 19 , gobject-introspection 20 , testers 21 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 22 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 23 }: 24 25 stdenv.mkDerivation (finalAttrs: { 26 pname = "gstreamer"; 27 + version = "1.22.2"; 28 29 outputs = [ 30 "bin" 31 "out" 32 "dev" 33 ]; 34 35 src = let 36 inherit (finalAttrs) pname version; 37 in fetchurl { 38 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 39 + hash = "sha256-sq/nNgOSHGCLpIlp27fXQ3dnRL/l2AWeziQRN7f4jiE="; 40 }; 41 42 depsBuildBuild = [ ··· 56 glib 57 bash-completion 58 gobject-introspection 59 ] ++ lib.optionals stdenv.isLinux [ 60 libcap # for setcap binary 61 + ] ++ lib.optionals enableDocumentation [ 62 + hotdoc 63 ]; 64 65 buildInputs = [ ··· 70 libunwind 71 elfutils 72 ] ++ lib.optionals stdenv.isDarwin [ 73 + Cocoa 74 CoreServices 75 ]; 76 ··· 81 mesonFlags = [ 82 "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those 83 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 84 + (lib.mesonEnable "doc" enableDocumentation) 85 ] ++ lib.optionals stdenv.isDarwin [ 86 # darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it. 87 "-Dlibunwind=disabled"
+2 -2
pkgs/development/libraries/gstreamer/default.nix
··· 16 }: 17 18 { 19 - gstreamer = callPackage ./core { inherit CoreServices; }; 20 21 gstreamermm = callPackage ./gstreamermm { }; 22 ··· 24 25 gst-plugins-good = callPackage ./good { inherit Cocoa; }; 26 27 - gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; }; 28 29 gst-plugins-ugly = callPackage ./ugly { inherit CoreFoundation DiskArbitration IOKit; }; 30
··· 16 }: 17 18 { 19 + gstreamer = callPackage ./core { inherit Cocoa CoreServices; }; 20 21 gstreamermm = callPackage ./gstreamermm { }; 22 ··· 24 25 gst-plugins-good = callPackage ./good { inherit Cocoa; }; 26 27 + gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation Cocoa CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; }; 28 29 gst-plugins-ugly = callPackage ./ugly { inherit CoreFoundation DiskArbitration IOKit; }; 30
+7 -7
pkgs/development/libraries/gstreamer/devtools/default.nix
··· 11 , python3 12 , gobject-introspection 13 , json-glib 14 }: 15 16 stdenv.mkDerivation rec { 17 pname = "gst-devtools"; 18 - version = "1.20.3"; 19 20 src = fetchurl { 21 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 22 - sha256 = "sha256-u71F6tcDNn6o9L6bPAgte2K+9HskCjkIPyeETih1jEc="; 23 }; 24 25 outputs = [ 26 "out" 27 "dev" 28 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 29 ]; 30 31 depsBuildBuild = [ ··· 37 ninja 38 pkg-config 39 gobject-introspection 40 - 41 - # documentation 42 - # TODO add hotdoc here 43 ]; 44 45 buildInputs = [ ··· 57 ]; 58 59 mesonFlags = [ 60 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 61 ]; 62 63 meta = with lib; {
··· 11 , python3 12 , gobject-introspection 13 , json-glib 14 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 15 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 16 }: 17 18 stdenv.mkDerivation rec { 19 pname = "gst-devtools"; 20 + version = "1.22.2"; 21 22 src = fetchurl { 23 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 24 + hash = "sha256-62JybT4nqHgjaaJP1jZKiIXtJGKzu9qwkd/8gTnuBtg="; 25 }; 26 27 outputs = [ 28 "out" 29 "dev" 30 ]; 31 32 depsBuildBuild = [ ··· 38 ninja 39 pkg-config 40 gobject-introspection 41 + ] ++ lib.optionals enableDocumentation [ 42 + hotdoc 43 ]; 44 45 buildInputs = [ ··· 57 ]; 58 59 mesonFlags = [ 60 + (lib.mesonEnable "doc" enableDocumentation) 61 ]; 62 63 meta = with lib; {
+7 -7
pkgs/development/libraries/gstreamer/ges/default.nix
··· 12 , flex 13 , gettext 14 , gobject-introspection 15 }: 16 17 stdenv.mkDerivation rec { 18 pname = "gst-editing-services"; 19 - version = "1.20.3"; 20 21 outputs = [ 22 "out" 23 "dev" 24 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 25 ]; 26 27 src = fetchurl { 28 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 29 - sha256 = "sha256-X9iW3mn74kQh62sP+NL4tMPLo/MCXOrNMCFy85qKuqI="; 30 }; 31 32 nativeBuildInputs = [ ··· 37 gobject-introspection 38 python3 39 flex 40 - 41 - # documentation 42 - # TODO add hotdoc here 43 ]; 44 45 buildInputs = [ ··· 56 ]; 57 58 mesonFlags = [ 59 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 60 ]; 61 62 postPatch = ''
··· 12 , flex 13 , gettext 14 , gobject-introspection 15 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 16 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "gst-editing-services"; 21 + version = "1.22.2"; 22 23 outputs = [ 24 "out" 25 "dev" 26 ]; 27 28 src = fetchurl { 29 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 30 + hash = "sha256-RTsUZPw4V94mmnyw69lmr+Ahcdl772cqC4oKbUPgzr8="; 31 }; 32 33 nativeBuildInputs = [ ··· 38 gobject-introspection 39 python3 40 flex 41 + ] ++ lib.optionals enableDocumentation [ 42 + hotdoc 43 ]; 44 45 buildInputs = [ ··· 56 ]; 57 58 mesonFlags = [ 59 + (lib.mesonEnable "doc" enableDocumentation) 60 ]; 61 62 postPatch = ''
+17 -3
pkgs/development/libraries/gstreamer/good/default.nix
··· 31 , twolame 32 , gtkSupport ? false, gtk3 33 , qt5Support ? false, qt5 34 , raspiCameraSupport ? false, libraspberrypi 35 , enableJack ? true, libjack2 36 , libXdamage ··· 43 , libgudev 44 , wavpack 45 , glib 46 }: 47 48 assert raspiCameraSupport -> (stdenv.isLinux && stdenv.isAarch64); 49 50 stdenv.mkDerivation rec { 51 pname = "gst-plugins-good"; 52 - version = "1.20.3"; 53 54 outputs = [ "out" "dev" ]; 55 56 src = fetchurl { 57 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 58 - sha256 = "sha256-+PPCBr9c2rwAlTkgtHs1da8O8V6fhxwLaWb20KpYaLc="; 59 }; 60 61 strictDeps = true; ··· 72 orc 73 libshout 74 glib 75 ] ++ lib.optionals qt5Support (with qt5; [ 76 qtbase 77 ]) ++ lib.optionals stdenv.isLinux [ 78 wayland-protocols 79 ]; ··· 114 qtdeclarative 115 qtwayland 116 qtx11extras 117 ]) ++ lib.optionals stdenv.isDarwin [ 118 Cocoa 119 ] ++ lib.optionals stdenv.isLinux [ ··· 129 130 mesonFlags = [ 131 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 132 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 133 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 134 ] ++ lib.optionals (!qt5Support) [ 135 "-Dqt5=disabled" 136 ] ++ lib.optionals (!gtkSupport) [ 137 "-Dgtk3=disabled" 138 ] ++ lib.optionals (!enableJack) [
··· 31 , twolame 32 , gtkSupport ? false, gtk3 33 , qt5Support ? false, qt5 34 + , qt6Support ? false, qt6 35 , raspiCameraSupport ? false, libraspberrypi 36 , enableJack ? true, libjack2 37 , libXdamage ··· 44 , libgudev 45 , wavpack 46 , glib 47 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 48 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 49 }: 50 51 assert raspiCameraSupport -> (stdenv.isLinux && stdenv.isAarch64); 52 53 stdenv.mkDerivation rec { 54 pname = "gst-plugins-good"; 55 + version = "1.22.2"; 56 57 outputs = [ "out" "dev" ]; 58 59 src = fetchurl { 60 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 61 + hash = "sha256-fIzFlCXysjL2DKfRPlbt1hXaT3Eec90Bp8/6Rua8DN0="; 62 }; 63 64 strictDeps = true; ··· 75 orc 76 libshout 77 glib 78 + ] ++ lib.optionals enableDocumentation [ 79 + hotdoc 80 ] ++ lib.optionals qt5Support (with qt5; [ 81 qtbase 82 + ]) ++ lib.optionals qt6Support (with qt6; [ 83 + qtbase 84 + qttools 85 ]) ++ lib.optionals stdenv.isLinux [ 86 wayland-protocols 87 ]; ··· 122 qtdeclarative 123 qtwayland 124 qtx11extras 125 + ]) ++ lib.optionals qt6Support (with qt6; [ 126 + qtbase 127 + qtdeclarative 128 + qtwayland 129 ]) ++ lib.optionals stdenv.isDarwin [ 130 Cocoa 131 ] ++ lib.optionals stdenv.isLinux [ ··· 141 142 mesonFlags = [ 143 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 144 "-Dglib-asserts=disabled" # asserts should be disabled on stable releases 145 + (lib.mesonEnable "doc" enableDocumentation) 146 ] ++ lib.optionals (!qt5Support) [ 147 "-Dqt5=disabled" 148 + ] ++ lib.optionals (!qt6Support) [ 149 + "-Dqt6=disabled" 150 ] ++ lib.optionals (!gtkSupport) [ 151 "-Dgtk3=disabled" 152 ] ++ lib.optionals (!enableJack) [
+7 -3
pkgs/development/libraries/gstreamer/libav/default.nix
··· 9 , gst-plugins-base 10 , gettext 11 , libav 12 }: 13 14 # Note that since gst-libav-1.6, libav is actually ffmpeg. See ··· 16 17 stdenv.mkDerivation rec { 18 pname = "gst-libav"; 19 - version = "1.20.3"; 20 21 src = fetchurl { 22 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 23 - sha256 = "sha256-P+3RBWD836obZGLL95o4xOe1fX85A1k5P8DO9tvyff4="; 24 }; 25 26 outputs = [ "out" "dev" ]; ··· 31 gettext 32 pkg-config 33 python3 34 ]; 35 36 buildInputs = [ ··· 40 ]; 41 42 mesonFlags = [ 43 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 44 ]; 45 46 postPatch = ''
··· 9 , gst-plugins-base 10 , gettext 11 , libav 12 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 13 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 14 }: 15 16 # Note that since gst-libav-1.6, libav is actually ffmpeg. See ··· 18 19 stdenv.mkDerivation rec { 20 pname = "gst-libav"; 21 + version = "1.22.2"; 22 23 src = fetchurl { 24 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 25 + hash = "sha256-/Kr5h4/o87yCMX7xOhVYgky2jfH4loxnl/VWxeM7z/0="; 26 }; 27 28 outputs = [ "out" "dev" ]; ··· 33 gettext 34 pkg-config 35 python3 36 + ] ++ lib.optionals enableDocumentation [ 37 + hotdoc 38 ]; 39 40 buildInputs = [ ··· 44 ]; 45 46 mesonFlags = [ 47 + (lib.mesonEnable "doc" enableDocumentation) 48 ]; 49 50 postPatch = ''
+7 -7
pkgs/development/libraries/gstreamer/rtsp-server/default.nix
··· 9 , gobject-introspection 10 , gst-plugins-base 11 , gst-plugins-bad 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "gst-rtsp-server"; 16 - version = "1.20.3"; 17 18 src = fetchurl { 19 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 20 - sha256 = "sha256-7kAnGL6bEn8OXmbKTBtPQuSSbsk7owe3zMpdxsyXlMo="; 21 }; 22 23 outputs = [ 24 "out" 25 "dev" 26 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 27 ]; 28 29 nativeBuildInputs = [ ··· 33 gobject-introspection 34 pkg-config 35 python3 36 - 37 - # documentation 38 - # TODO add hotdoc here 39 ]; 40 41 buildInputs = [ ··· 46 47 mesonFlags = [ 48 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 49 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 50 ]; 51 52 postPatch = ''
··· 9 , gobject-introspection 10 , gst-plugins-base 11 , gst-plugins-bad 12 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 13 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 14 }: 15 16 stdenv.mkDerivation rec { 17 pname = "gst-rtsp-server"; 18 + version = "1.22.2"; 19 20 src = fetchurl { 21 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 22 + hash = "sha256-K+Suz7iHEBAOpxFe0CFkA+gJQ0Tr8UYJQnG41Nc4KL8="; 23 }; 24 25 outputs = [ 26 "out" 27 "dev" 28 ]; 29 30 nativeBuildInputs = [ ··· 34 gobject-introspection 35 pkg-config 36 python3 37 + ] ++ lib.optionals enableDocumentation [ 38 + hotdoc 39 ]; 40 41 buildInputs = [ ··· 46 47 mesonFlags = [ 48 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 49 + (lib.mesonEnable "doc" enableDocumentation) 50 ]; 51 52 postPatch = ''
+7 -3
pkgs/development/libraries/gstreamer/ugly/default.nix
··· 20 , CoreFoundation 21 , DiskArbitration 22 , enableGplPlugins ? true 23 }: 24 25 stdenv.mkDerivation rec { 26 pname = "gst-plugins-ugly"; 27 - version = "1.20.3"; 28 29 outputs = [ "out" "dev" ]; 30 31 src = fetchurl { 32 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 33 - sha256 = "sha256-jKogeJoJwwS0nPVj0zzKlCGxh1uE/MGH5KOF+gHWrv0="; 34 }; 35 36 nativeBuildInputs = [ ··· 39 gettext 40 pkg-config 41 python3 42 ]; 43 44 buildInputs = [ ··· 60 ]; 61 62 mesonFlags = [ 63 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 64 "-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing 65 ] ++ (if enableGplPlugins then [ 66 "-Dgpl=enabled" 67 ] else [
··· 20 , CoreFoundation 21 , DiskArbitration 22 , enableGplPlugins ? true 23 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 24 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 25 }: 26 27 stdenv.mkDerivation rec { 28 pname = "gst-plugins-ugly"; 29 + version = "1.22.2"; 30 31 outputs = [ "out" "dev" ]; 32 33 src = fetchurl { 34 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 35 + hash = "sha256-jzD0TbC9BjcJv2++VROOOpivCry2HDYPNVgrvhDoBpE="; 36 }; 37 38 nativeBuildInputs = [ ··· 41 gettext 42 pkg-config 43 python3 44 + ] ++ lib.optionals enableDocumentation [ 45 + hotdoc 46 ]; 47 48 buildInputs = [ ··· 64 ]; 65 66 mesonFlags = [ 67 "-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing 68 + (lib.mesonEnable "doc" enableDocumentation) 69 ] ++ (if enableGplPlugins then [ 70 "-Dgpl=enabled" 71 ] else [
+12 -7
pkgs/development/libraries/gstreamer/vaapi/default.nix
··· 7 , bzip2 8 , libva 9 , wayland 10 , libdrm 11 , udev 12 , xorg ··· 17 , nasm 18 , libvpx 19 , python3 20 }: 21 22 stdenv.mkDerivation rec { 23 pname = "gstreamer-vaapi"; 24 - version = "1.20.3"; 25 26 src = fetchurl { 27 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 28 - sha256 = "sha256-bumesxar3emtNwApFb2MOGeRj2/cdLfPKsTBrg1pC0U="; 29 }; 30 31 outputs = [ 32 "out" 33 "dev" 34 - # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs 35 ]; 36 37 nativeBuildInputs = [ ··· 40 pkg-config 41 python3 42 bzip2 43 - 44 - # documentation 45 - # TODO add hotdoc here 46 ]; 47 48 buildInputs = [ ··· 51 gst-plugins-bad 52 libva 53 wayland 54 libdrm 55 udev 56 xorg.libX11 ··· 65 libvpx 66 ]; 67 68 mesonFlags = [ 69 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 70 - "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing 71 ]; 72 73 postPatch = ''
··· 7 , bzip2 8 , libva 9 , wayland 10 + , wayland-protocols 11 , libdrm 12 , udev 13 , xorg ··· 18 , nasm 19 , libvpx 20 , python3 21 + # Checks meson.is_cross_build(), so even canExecute isn't enough. 22 + , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc 23 }: 24 25 stdenv.mkDerivation rec { 26 pname = "gstreamer-vaapi"; 27 + version = "1.22.2"; 28 29 src = fetchurl { 30 url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz"; 31 + hash = "sha256-0uZC+XRfl9n3On9Qhedlmpox/iCbd05uRdrgQbQ13wY="; 32 }; 33 34 outputs = [ 35 "out" 36 "dev" 37 ]; 38 39 nativeBuildInputs = [ ··· 42 pkg-config 43 python3 44 bzip2 45 + wayland 46 + ] ++ lib.optionals enableDocumentation [ 47 + hotdoc 48 ]; 49 50 buildInputs = [ ··· 53 gst-plugins-bad 54 libva 55 wayland 56 + wayland-protocols 57 libdrm 58 udev 59 xorg.libX11 ··· 68 libvpx 69 ]; 70 71 + strictDeps = true; 72 + 73 mesonFlags = [ 74 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users 75 + (lib.mesonEnable "doc" enableDocumentation) 76 ]; 77 78 postPatch = ''
+1 -1
pkgs/development/libraries/gtk/4.x.nix
··· 168 "-Dvulkan=enabled" 169 ] ++ lib.optionals (!cupsSupport) [ 170 "-Dprint-cups=disabled" 171 - ] ++ lib.optionals stdenv.isDarwin [ 172 "-Dmedia-gstreamer=disabled" # requires gstreamer-gl 173 ] ++ lib.optionals (!x11Support) [ 174 "-Dx11-backend=false"
··· 168 "-Dvulkan=enabled" 169 ] ++ lib.optionals (!cupsSupport) [ 170 "-Dprint-cups=disabled" 171 + ] ++ lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ 172 "-Dmedia-gstreamer=disabled" # requires gstreamer-gl 173 ] ++ lib.optionals (!x11Support) [ 174 "-Dx11-backend=false"
+7
pkgs/development/libraries/ldacbt/default.nix
··· 15 fetchSubmodules = true; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 ]; 21 22 meta = with lib; {
··· 15 fetchSubmodules = true; 16 }; 17 18 + outputs = [ "out" "dev" ]; 19 + 20 nativeBuildInputs = [ 21 cmake 22 + ]; 23 + 24 + cmakeFlags = [ 25 + # CMakeLists.txt by default points to $out 26 + "-DINSTALL_INCLUDEDIR=${placeholder "dev"}/include" 27 ]; 28 29 meta = with lib; {
+5
pkgs/development/libraries/libcbor/default.nix
··· 22 sha256 = "sha256-ZTa+wG1g9KsVoqJG/yqxo2fJ7OhPnaI9QcfOmpOT3pg="; 23 }; 24 25 nativeBuildInputs = [ cmake ]; 26 27 cmakeFlags = lib.optional finalAttrs.doCheck "-DWITH_TESTS=ON" 28 ++ lib.optional (!stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=ON";
··· 22 sha256 = "sha256-ZTa+wG1g9KsVoqJG/yqxo2fJ7OhPnaI9QcfOmpOT3pg="; 23 }; 24 25 + strictDeps = true; 26 nativeBuildInputs = [ cmake ]; 27 + 28 + buildInputs = [ 29 + cmocka # cmake expects cmocka module 30 + ]; 31 32 cmakeFlags = lib.optional finalAttrs.doCheck "-DWITH_TESTS=ON" 33 ++ lib.optional (!stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=ON";
+22 -2
pkgs/development/libraries/libde265/default.nix
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , autoreconfHook 5 , pkg-config 6 7 # for passthru.tests 8 , imagemagick ··· 11 , gst_all_1 12 }: 13 14 - stdenv.mkDerivation rec { 15 version = "1.0.11"; 16 pname = "libde265"; 17 ··· 22 sha256 = "sha256-0aRUh5h49fnjBjy42A5fWYHnhnQ4CFoeSIXZilZewW8="; 23 }; 24 25 nativeBuildInputs = [ autoreconfHook pkg-config ]; 26 27 enableParallelBuilding = true; ··· 29 passthru.tests = { 30 inherit imagemagick libheif imlib2Full; 31 inherit (gst_all_1) gst-plugins-bad; 32 }; 33 34 meta = { ··· 38 platforms = lib.platforms.unix; 39 maintainers = with lib.maintainers; [ gebner ]; 40 }; 41 - }
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 + , fetchpatch 5 , autoreconfHook 6 , pkg-config 7 + 8 + , callPackage 9 10 # for passthru.tests 11 , imagemagick ··· 14 , gst_all_1 15 }: 16 17 + stdenv.mkDerivation (finalAttrs: rec { 18 version = "1.0.11"; 19 pname = "libde265"; 20 ··· 25 sha256 = "sha256-0aRUh5h49fnjBjy42A5fWYHnhnQ4CFoeSIXZilZewW8="; 26 }; 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 + 41 nativeBuildInputs = [ autoreconfHook pkg-config ]; 42 43 enableParallelBuilding = true; ··· 45 passthru.tests = { 46 inherit imagemagick libheif imlib2Full; 47 inherit (gst_all_1) gst-plugins-bad; 48 + 49 + test-corpus-decode = callPackage ./test-corpus-decode.nix { 50 + libde265 = finalAttrs.finalPackage; 51 + }; 52 }; 53 54 meta = { ··· 58 platforms = lib.platforms.unix; 59 maintainers = with lib.maintainers; [ gebner ]; 60 }; 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 sha256 = "0qdg3r7k086wzszr969s0ljlqdvfqm31zpl8p5h397bw076zr6p2"; 27 }; 28 29 strictDeps = true; 30 31 nativeBuildInputs = [
··· 26 sha256 = "0qdg3r7k086wzszr969s0ljlqdvfqm31zpl8p5h397bw076zr6p2"; 27 }; 28 29 + outputs = [ "out" "dev" ]; 30 + 31 strictDeps = true; 32 33 nativeBuildInputs = [
+2 -3
pkgs/development/libraries/libdisplay-info/default.nix
··· 21 sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk="; 22 }; 23 24 - nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ]; 25 - 26 - buildInputs = [ hwdata ]; 27 28 postPatch = '' 29 patchShebangs tool/gen-search-table.py
··· 21 sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk="; 22 }; 23 24 + depsBuildBuild = [ pkg-config ]; 25 + nativeBuildInputs = [ meson pkg-config ninja edid-decode hwdata python3 ]; 26 27 postPatch = '' 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 3 stdenv.mkDerivation rec { 4 pname = "libhwy"; 5 - version = "1.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "google"; 9 repo = "highway"; 10 rev = version; 11 - hash = "sha256-CHzDLzOnu/QfejWiRKE9I5UUyRxoEooNtYVe8FQwu7c="; 12 }; 13 14 nativeBuildInputs = [ cmake ninja ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "libhwy"; 5 + version = "1.0.4"; 6 7 src = fetchFromGitHub { 8 owner = "google"; 9 repo = "highway"; 10 rev = version; 11 + hash = "sha256-bQtfye+gn7GOyzCtji4st5hsV40rPzuaYDP7N1tZ8wg="; 12 }; 13 14 nativeBuildInputs = [ cmake ninja ];
+3 -2
pkgs/development/libraries/libinput/default.nix
··· 45 46 stdenv.mkDerivation rec { 47 pname = "libinput"; 48 - version = "1.22.1"; 49 50 outputs = [ "bin" "out" "dev" ]; 51 ··· 54 owner = "libinput"; 55 repo = "libinput"; 56 rev = version; 57 - sha256 = "RgwEp60Anr+CpJws6srIv/Qzk2r9NoekeNQ0UT3FRZ0="; 58 }; 59 60 patches = [ ··· 132 license = licenses.mit; 133 platforms = platforms.unix; 134 maintainers = with maintainers; [ codyopel ] ++ teams.freedesktop.members; 135 }; 136 }
··· 45 46 stdenv.mkDerivation rec { 47 pname = "libinput"; 48 + version = "1.23.0"; 49 50 outputs = [ "bin" "out" "dev" ]; 51 ··· 54 owner = "libinput"; 55 repo = "libinput"; 56 rev = version; 57 + sha256 = "7Wxriy1fVsfAhcfhOhuvLehhmQYrQ2IgZTK53bt12HI="; 58 }; 59 60 patches = [ ··· 132 license = licenses.mit; 133 platforms = platforms.unix; 134 maintainers = with maintainers; [ codyopel ] ++ teams.freedesktop.members; 135 + changelog = "https://gitlab.freedesktop.org/libinput/libinput/-/releases/${version}"; 136 }; 137 }
+10
pkgs/development/libraries/libjxl/default.nix
··· 1 { stdenv, lib, fetchFromGitHub 2 , brotli 3 , cmake 4 , giflib ··· 32 # There are various submodules in `third_party/`. 33 fetchSubmodules = true; 34 }; 35 36 nativeBuildInputs = [ 37 cmake
··· 1 { stdenv, lib, fetchFromGitHub 2 + , fetchpatch 3 , brotli 4 , cmake 5 , giflib ··· 33 # There are various submodules in `third_party/`. 34 fetchSubmodules = true; 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 + ]; 45 46 nativeBuildInputs = [ 47 cmake
+2
pkgs/development/libraries/liblc3/default.nix
··· 20 sha256 = "sha256-Be+dPUnxC2+cHzqL2FAqXOU7NjEAHiPBKh7spuYkvhc="; 21 }; 22 23 nativeBuildInputs = [ 24 meson 25 ninja
··· 20 sha256 = "sha256-Be+dPUnxC2+cHzqL2FAqXOU7NjEAHiPBKh7spuYkvhc="; 21 }; 22 23 + outputs = [ "out" "dev" ]; 24 + 25 nativeBuildInputs = [ 26 meson 27 ninja
+7 -5
pkgs/development/libraries/libmodplug/default.nix
··· 4 pname = "libmodplug"; 5 version = "0.8.9.0"; 6 7 preConfigure = '' 8 substituteInPlace configure \ 9 --replace ' -mmacosx-version-min=10.5' "" \ ··· 16 license = licenses.publicDomain; 17 platforms = platforms.unix; 18 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 }; 25 }
··· 4 pname = "libmodplug"; 5 version = "0.8.9.0"; 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 + 14 preConfigure = '' 15 substituteInPlace configure \ 16 --replace ' -mmacosx-version-min=10.5' "" \ ··· 23 license = licenses.publicDomain; 24 platforms = platforms.unix; 25 maintainers = with maintainers; [ raskin ]; 26 }; 27 }
+2 -2
pkgs/development/libraries/libnice/default.nix
··· 18 19 stdenv.mkDerivation rec { 20 pname = "libnice"; 21 - version = "0.1.18"; 22 23 outputs = [ "bin" "out" "dev" ] 24 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; 25 26 src = fetchurl { 27 url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz"; 28 - sha256 = "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy"; 29 }; 30 31 patches = [
··· 18 19 stdenv.mkDerivation rec { 20 pname = "libnice"; 21 + version = "0.1.21"; 22 23 outputs = [ "bin" "out" "dev" ] 24 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; 25 26 src = fetchurl { 27 url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz"; 28 + hash = "sha256-cuc6Ks8g9ZCT4h1WAWBuQFhzUD6zXzRvpiHeI+mbOzk="; 29 }; 30 31 patches = [
+2 -2
pkgs/development/libraries/libpcap/default.nix
··· 13 14 stdenv.mkDerivation rec { 15 pname = "libpcap"; 16 - version = "1.10.3"; 17 18 src = fetchurl { 19 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 20 - sha256 = "sha256-KoiFxANRbPewkz7UsU1sqjDgIFJInr1BTcdaxS51WeY="; 21 }; 22 23 buildInputs = lib.optionals stdenv.isLinux [ libnl ]
··· 13 14 stdenv.mkDerivation rec { 15 pname = "libpcap"; 16 + version = "1.10.4"; 17 18 src = fetchurl { 19 url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; 20 + hash = "sha256-7RmgOD+tcuOtQ1/SOdfNgNZJFrhyaVUBWdIORxYOvl8="; 21 }; 22 23 buildInputs = lib.optionals stdenv.isLinux [ libnl ]
+4 -1
pkgs/development/libraries/libqmi/default.nix
··· 22 pname = "libqmi"; 23 version = "1.32.2"; 24 25 - outputs = [ "out" "dev" "devdoc" ]; 26 27 src = fetchFromGitLab { 28 domain = "gitlab.freedesktop.org"; ··· 47 pkg-config 48 gobject-introspection 49 python3 50 gtk-doc 51 docbook-xsl-nons 52 docbook_xml_dtd_43 ··· 68 "-Dudevdir=${placeholder "out"}/lib/udev" 69 (lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform)) 70 (lib.mesonBool "introspection" (stdenv.buildPlatform == stdenv.hostPlatform)) 71 ]; 72 73 doCheck = true;
··· 22 pname = "libqmi"; 23 version = "1.32.2"; 24 25 + outputs = [ "out" "dev" ] 26 + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; 27 28 src = fetchFromGitLab { 29 domain = "gitlab.freedesktop.org"; ··· 48 pkg-config 49 gobject-introspection 50 python3 51 + ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ 52 gtk-doc 53 docbook-xsl-nons 54 docbook_xml_dtd_43 ··· 70 "-Dudevdir=${placeholder "out"}/lib/udev" 71 (lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform)) 72 (lib.mesonBool "introspection" (stdenv.buildPlatform == stdenv.hostPlatform)) 73 + (lib.mesonBool "man" (stdenv.buildPlatform == stdenv.hostPlatform)) 74 ]; 75 76 doCheck = true;
+10 -5
pkgs/development/libraries/libtiff/default.nix
··· 1 - { lib, stdenv 2 , fetchFromGitLab 3 , fetchpatch 4 , nix-update-script ··· 12 , xz 13 , zlib 14 15 - # for passthru.tests 16 , libgeotiff 17 , python3Packages 18 , imagemagick ··· 84 # sure cross-compilation works first! 85 nativeBuildInputs = [ autoreconfHook pkg-config sphinx ]; 86 87 - propagatedBuildInputs = [ libjpeg xz zlib ]; #TODO: opengl support (bogus configure detection) 88 - 89 - buildInputs = [ libdeflate ]; 90 91 enableParallelBuilding = true; 92
··· 1 + { lib 2 + , stdenv 3 , fetchFromGitLab 4 , fetchpatch 5 , nix-update-script ··· 13 , xz 14 , zlib 15 16 + # for passthru.tests 17 , libgeotiff 18 , python3Packages 19 , imagemagick ··· 85 # sure cross-compilation works first! 86 nativeBuildInputs = [ autoreconfHook pkg-config sphinx ]; 87 88 + # TODO: opengl support (bogus configure detection) 89 + propagatedBuildInputs = [ 90 + libdeflate 91 + libjpeg 92 + xz 93 + zlib 94 + ]; 95 96 enableParallelBuilding = true; 97
+2
pkgs/development/libraries/libva/default.nix
··· 25 26 outputs = [ "dev" "out" ]; 27 28 nativeBuildInputs = [ meson pkg-config ninja wayland-scanner ]; 29 30 buildInputs = [ libdrm ]
··· 25 26 outputs = [ "dev" "out" ]; 27 28 + depsBuildBuild = [ pkg-config ]; 29 + 30 nativeBuildInputs = [ meson pkg-config ninja wayland-scanner ]; 31 32 buildInputs = [ libdrm ]
+10
pkgs/development/libraries/libwebp/default.nix
··· 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libtool 2 , threadingSupport ? true # multi-threading 3 , openglSupport ? false, freeglut, libGL, libGLU # OpenGL (required for vwebp) 4 , pngSupport ? true, libpng # PNG image format ··· 35 rev = "v${version}"; 36 hash = "sha256-nhXkq+qKpaa75YQB/W/cRozslTIFPdXeqj1y6emQeHk="; 37 }; 38 39 configureFlags = [ 40 (lib.enableFeature threadingSupport "threading")
··· 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libtool 2 + , fetchpatch 3 , threadingSupport ? true # multi-threading 4 , openglSupport ? false, freeglut, libGL, libGLU # OpenGL (required for vwebp) 5 , pngSupport ? true, libpng # PNG image format ··· 36 rev = "v${version}"; 37 hash = "sha256-nhXkq+qKpaa75YQB/W/cRozslTIFPdXeqj1y6emQeHk="; 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 + ]; 48 49 configureFlags = [ 50 (lib.enableFeature threadingSupport "threading")
+2 -2
pkgs/development/libraries/libxml2/default.nix
··· 34 let 35 libxml = stdenv.mkDerivation rec { 36 pname = "libxml2"; 37 - version = "2.10.3"; 38 39 outputs = [ "bin" "dev" "out" "doc" ] 40 ++ lib.optional pythonSupport "py" ··· 43 44 src = fetchurl { 45 url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz"; 46 - sha256 = "XSzD14vsPb4hKp1/pimtolp9qSivQyyTBg/1wX7iipw="; 47 }; 48 49 patches = [
··· 34 let 35 libxml = stdenv.mkDerivation rec { 36 pname = "libxml2"; 37 + version = "2.10.4"; 38 39 outputs = [ "bin" "dev" "out" "doc" ] 40 ++ lib.optional pythonSupport "py" ··· 43 44 src = fetchurl { 45 url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz"; 46 + sha256 = "7QyRxYRQCPGTZznk7uIDVTHByUdCxlQfRO5m2IWUjUU="; 47 }; 48 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 134 ./opencl.patch 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 ]; 144 145 postPatch = ''
··· 133 134 ./opencl.patch 135 ./disk_cache-include-dri-driver-path-in-cache-key.patch 136 ]; 137 138 postPatch = ''
+7 -3
pkgs/development/libraries/mpfr/default.nix
··· 28 # mpfr.h requires gmp.h 29 propagatedBuildInputs = [ gmp ]; 30 31 - configureFlags = 32 - lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" ++ 33 - lib.optional stdenv.hostPlatform.is64bit "--with-pic"; 34 35 doCheck = true; # not cross; 36
··· 28 # mpfr.h requires gmp.h 29 propagatedBuildInputs = [ gmp ]; 30 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 + ]; 38 39 doCheck = true; # not cross; 40
+1 -1
pkgs/development/libraries/openjpeg/default.nix
··· 50 51 nativeBuildInputs = [ cmake pkg-config ]; 52 53 - buildInputs = [ libdeflate libpng libtiff zlib lcms2 ] 54 ++ lib.optionals jpipServerSupport [ curl fcgi ] 55 ++ lib.optional (jpipLibSupport) jdk; 56
··· 50 51 nativeBuildInputs = [ cmake pkg-config ]; 52 53 + buildInputs = [ libpng libtiff zlib lcms2 ] 54 ++ lib.optionals jpipServerSupport [ curl fcgi ] 55 ++ lib.optional (jpipLibSupport) jdk; 56
+11 -23
pkgs/development/libraries/openssl/default.nix
··· 1 - { lib, stdenv, fetchurl, buildPackages, perl, coreutils 2 , withCryptodev ? false, cryptodev 3 , withZlib ? false, zlib 4 , enableSSL2 ? false 5 , enableSSL3 ? false 6 , enableKTLS ? stdenv.isLinux 7 , 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 # path to openssl.cnf file. will be placed in $etc/etc/ssl/openssl.cnf to replace the default 13 , conf ? null 14 , removeReferencesTo ··· 72 !(stdenv.hostPlatform.useLLVM or false) && 73 stdenv.cc.isGNU; 74 75 - nativeBuildInputs = [ perl ] 76 ++ lib.optionals static [ removeReferencesTo ]; 77 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 ++ lib.optional withZlib zlib; 82 83 # TODO(@Ericson2314): Improve with mass rebuild ··· 172 173 # 'etc' is a separate output on static builds only. 174 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 - '' + '' 189 mkdir -p $bin 190 mv $out/bin $bin/bin 191 192 mkdir $dev 193 mv $out/include $dev/
··· 1 + { lib, stdenv, fetchurl, buildPackages, perl, coreutils, writeShellScript 2 + , makeWrapper 3 , withCryptodev ? false, cryptodev 4 , withZlib ? false, zlib 5 , enableSSL2 ? false 6 , enableSSL3 ? false 7 , enableKTLS ? stdenv.isLinux 8 , static ? stdenv.hostPlatform.isStatic 9 # path to openssl.cnf file. will be placed in $etc/etc/ssl/openssl.cnf to replace the default 10 , conf ? null 11 , removeReferencesTo ··· 69 !(stdenv.hostPlatform.useLLVM or false) && 70 stdenv.cc.isGNU; 71 72 + nativeBuildInputs = [ makeWrapper perl ] 73 ++ lib.optionals static [ removeReferencesTo ]; 74 buildInputs = lib.optional withCryptodev cryptodev 75 ++ lib.optional withZlib zlib; 76 77 # TODO(@Ericson2314): Improve with mass rebuild ··· 166 167 # 'etc' is a separate output on static builds only. 168 etc=$out 169 + '') + '' 170 mkdir -p $bin 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" 179 180 mkdir $dev 181 mv $out/include $dev/
+13 -11
pkgs/development/libraries/pipewire/0090-pipewire-config-template-paths.patch
··· 1 diff --git a/src/daemon/minimal.conf.in b/src/daemon/minimal.conf.in 2 - index 6464839a0..05546201f 100644 3 --- a/src/daemon/minimal.conf.in 4 +++ b/src/daemon/minimal.conf.in 5 - @@ -110,7 +110,7 @@ context.modules = [ 6 # access.allowed to list an array of paths of allowed 7 # apps. 8 #access.allowed = [ ··· 11 #] 12 13 # An array of rejected paths. 14 - @@ -298,5 +298,5 @@ context.exec = [ 15 # It can be interesting to start another daemon here that listens 16 # on another address with the -a option (eg. -a tcp:4713). 17 # ··· 19 + #@pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" } 20 ] 21 diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in 22 - index a948a1b9b..4ece43c6f 100644 23 --- a/src/daemon/pipewire.conf.in 24 +++ b/src/daemon/pipewire.conf.in 25 - @@ -132,7 +132,7 @@ context.modules = [ 26 # access.allowed to list an array of paths of allowed 27 # apps. 28 #access.allowed = [ ··· 31 #] 32 33 # An array of rejected paths. 34 - @@ -246,12 +246,12 @@ context.exec = [ 35 # but it is better to start it as a systemd service. 36 # Run the session manager with -h for options. 37 # 38 - - @sm_comment@{ path = "@session_manager_path@" args = "@session_manager_args@" } 39 - + @sm_comment@{ path = "<session_manager_path>" args = "@session_manager_args@" } 40 # 41 # You can optionally start the pulseaudio-server here as well 42 - # but it is better to start it as a systemd service. 43 # It can be interesting to start another daemon here that listens 44 # on another address with the -a option (eg. -a tcp:4713). 45 # 46 - - @pulse_comment@{ path = "@pipewire_path@" args = "-c pipewire-pulse.conf" } 47 - + @pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" } 48 ]
··· 1 diff --git a/src/daemon/minimal.conf.in b/src/daemon/minimal.conf.in 2 + index 9c885a38f..c474eb45d 100644 3 --- a/src/daemon/minimal.conf.in 4 +++ b/src/daemon/minimal.conf.in 5 + @@ -111,7 +111,7 @@ context.modules = [ 6 # access.allowed to list an array of paths of allowed 7 # apps. 8 #access.allowed = [ ··· 11 #] 12 13 # An array of rejected paths. 14 + @@ -359,5 +359,5 @@ context.exec = [ 15 # It can be interesting to start another daemon here that listens 16 # on another address with the -a option (eg. -a tcp:4713). 17 # ··· 19 + #@pulse_comment@{ path = "<pipewire_path>" args = "-c pipewire-pulse.conf" } 20 ] 21 diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in 22 + index 697bf094d..3a7b54ddd 100644 23 --- a/src/daemon/pipewire.conf.in 24 +++ b/src/daemon/pipewire.conf.in 25 + @@ -142,7 +142,7 @@ context.modules = [ 26 # access.allowed to list an array of paths of allowed 27 # apps. 28 #access.allowed = [ ··· 31 #] 32 33 # An array of rejected paths. 34 + @@ -294,7 +294,7 @@ context.exec = [ 35 # but it is better to start it as a systemd service. 36 # Run the session manager with -h for options. 37 # 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 } ] } 41 # 42 # You can optionally start the pulseaudio-server here as well 43 + @@ -302,6 +302,6 @@ context.exec = [ 44 # It can be interesting to start another daemon here that listens 45 # on another address with the -a option (eg. -a tcp:4713). 46 # 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 } ] } 50 ]
+2 -9
pkgs/development/libraries/pipewire/default.nix
··· 73 74 self = stdenv.mkDerivation rec { 75 pname = "pipewire"; 76 - version = "0.3.68"; 77 78 outputs = [ 79 "out" ··· 91 owner = "pipewire"; 92 repo = "pipewire"; 93 rev = version; 94 - sha256 = "sha256-dm+mgtvXJEBjCYMBbiBHZq42ikfsEDaybMzLMPLxBcE="; 95 }; 96 97 patches = [ ··· 107 ./0090-pipewire-config-template-paths.patch 108 # Place SPA data files in lib output to avoid dependency cycles 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 ]; 118 119 strictDeps = true;
··· 73 74 self = stdenv.mkDerivation rec { 75 pname = "pipewire"; 76 + version = "0.3.70"; 77 78 outputs = [ 79 "out" ··· 91 owner = "pipewire"; 92 repo = "pipewire"; 93 rev = version; 94 + sha256 = "sha256-xhJzE6JcfNcLMm+TqTIPaBEnEthEqUZiTqhWz1fO5Ng="; 95 }; 96 97 patches = [ ··· 107 ./0090-pipewire-config-template-paths.patch 108 # Place SPA data files in lib output to avoid dependency cycles 109 ./0095-spa-data-dir.patch 110 ]; 111 112 strictDeps = true;
+1 -1
pkgs/development/libraries/qt-5/5.15/default.nix
··· 230 231 wrapQtAppsHook = makeSetupHook { 232 name = "wrap-qt5-apps-hook"; 233 - propagatedBuildInputs = [ self.qtbase.dev buildPackages.makeWrapper ] 234 ++ lib.optional stdenv.isLinux self.qtwayland.dev; 235 } ../hooks/wrap-qt-apps-hook.sh; 236 } // lib.optionalAttrs config.allowAliases {
··· 230 231 wrapQtAppsHook = makeSetupHook { 232 name = "wrap-qt5-apps-hook"; 233 + propagatedBuildInputs = [ self.qtbase.dev buildPackages.makeBinaryWrapper ] 234 ++ lib.optional stdenv.isLinux self.qtwayland.dev; 235 } ../hooks/wrap-qt-apps-hook.sh; 236 } // lib.optionalAttrs config.allowAliases {
+82 -82
pkgs/development/libraries/qt-5/5.15/srcs-generated.json
··· 1 { 2 "qt3d": { 3 "url": "https://invent.kde.org/qt/qt/qt3d.git", 4 - "rev": "c3c7e6ebc29cce466d954f72f340a257d76b5ec2", 5 - "sha256": "13ixg0gx7sp90k0db2xn7r2rj1w3zw3vs84pav0v8fwfvph9ki98" 6 }, 7 "qtactiveqt": { 8 "url": "https://invent.kde.org/qt/qt/qtactiveqt.git", 9 - "rev": "2334cafc110c4e63bec3a5c7abdcd67e5e5ee754", 10 - "sha256": "0p7pydqsrws5x9l74y37ldffd3yz4riyizl8669x6y6hj6177yd3" 11 }, 12 "qtandroidextras": { 13 "url": "https://invent.kde.org/qt/qt/qtandroidextras.git", 14 - "rev": "7ede0a6c555518a3fecba8930d5e4d9c58875d0d", 15 - "sha256": "0nvdrbqm469iikkvzwjni3zb7dxwpy3x161m9yly4irklixhxkzh" 16 }, 17 "qtbase": { 18 "url": "https://invent.kde.org/qt/qt/qtbase.git", 19 - "rev": "6c09620dc84900c31a2d307a8640dbc15b1fcfdd", 20 - "sha256": "0nr8xlfdrgjr6rrd5f99p8vzlxx6n8xch5l2z95pb2lx4w4pz26q" 21 }, 22 "qtcharts": { 23 "url": "https://invent.kde.org/qt/qt/qtcharts.git", 24 - "rev": "e30be213e483f2d6f3c40af0cbdc11a8e92e2026", 25 - "sha256": "0vn1xh40lxa6vi87vr6qpskli2vh47mxi3d5srhf8rark0m51lf4" 26 }, 27 "qtconnectivity": { 28 "url": "https://invent.kde.org/qt/qt/qtconnectivity.git", 29 - "rev": "2d241e0b79971917845a6ed448e838ef273d73d7", 30 - "sha256": "15zk9q1n9yfg4nkr0rs7agsvzim8nlrqzm1h4h9r0iwr91g9vqp5" 31 }, 32 "qtdatavis3d": { 33 "url": "https://invent.kde.org/qt/qt/qtdatavis3d.git", 34 - "rev": "9f0f50ebef04d5ac5ed0ee2a3a71e7748fce3005", 35 - "sha256": "151650nqq29m99cbf7ac02vxzw4ivm4spr4kd2ss3gwhfxby3zgj" 36 }, 37 "qtdeclarative": { 38 "url": "https://invent.kde.org/qt/qt/qtdeclarative.git", 39 - "rev": "05c3f4921d81fb1b0eb497515c24ae56221d1e0a", 40 - "sha256": "0101bbpnrj4rp51dcnn2gjcq7vw55g4c8y4lmg2nd5g69whmkl1c" 41 }, 42 "qtdoc": { 43 "url": "https://invent.kde.org/qt/qt/qtdoc.git", 44 - "rev": "79d6ef693b6241db4a86a90943c02180c4944214", 45 - "sha256": "0ldskh9dd8qwa96nz1q5sbb8r2jdfcxvq589dyw87m3gpb8v16qq" 46 }, 47 "qtgamepad": { 48 "url": "https://invent.kde.org/qt/qt/qtgamepad.git", 49 - "rev": "ad63dc64f4bdafb503f7015d04e8849cef5d99b4", 50 - "sha256": "06ag3cmg56f4z9pc3ix9lddz5ydx48pf438xc2l1z3x4wxbkfbsy" 51 }, 52 "qtgraphicaleffects": { 53 "url": "https://invent.kde.org/qt/qt/qtgraphicaleffects.git", 54 - "rev": "4119e4e6dc94447d773a01c1d6e4de0fefb9235a", 55 - "sha256": "0sdywxrbjzz9qmrywd54hqqssv59b9mlvra16hjxfd0di50brab2" 56 }, 57 "qtimageformats": { 58 "url": "https://invent.kde.org/qt/qt/qtimageformats.git", 59 - "rev": "dbc9c396199ef78e820b40ddb8a4e76c0a86d48c", 60 - "sha256": "18dhnvkv9hialjfcm80g9y38fsxfcfk4fgrrsm3hy2yda6a6g1c6" 61 }, 62 "qtlocation": { 63 "url": "https://invent.kde.org/qt/qt/qtlocation.git", 64 - "rev": "435f931a7e42172e12ceba8f0d9da06ba4ec0bee", 65 - "sha256": "1p7hz09jv8whlv0m39cnjz3yc6pjzyxkc8zinl6f0qmrska6m4gp" 66 }, 67 "qtlottie": { 68 "url": "https://invent.kde.org/qt/qt/qtlottie.git", 69 - "rev": "56f94cb8e2da9801ada7aa06f86ccf807f5a4ed8", 70 - "sha256": "1pyshl395qmf84h5lyw3rgn3gmz98sm1dq003jvr74w9i746hszf" 71 }, 72 "qtmacextras": { 73 "url": "https://invent.kde.org/qt/qt/qtmacextras.git", 74 - "rev": "bc397be87f9b02e8279cfe2fc9b893c9f95219b9", 75 - "sha256": "1dr8a7sv00dmk1hc6kzs93rhvjk2wkxx0mxl7riafdzxzyajcl7n" 76 }, 77 "qtmultimedia": { 78 "url": "https://invent.kde.org/qt/qt/qtmultimedia.git", 79 - "rev": "32557dbe01ba66005b8e28b38033eeee9819a4c6", 80 - "sha256": "09mds5v3b3jq34r40hqg2a39q16p4q648wda7cqgm2yp249j06g8" 81 }, 82 "qtnetworkauth": { 83 "url": "https://invent.kde.org/qt/qt/qtnetworkauth.git", 84 - "rev": "f082a4c84c54e888b8d023ba68b7085551403425", 85 - "sha256": "03sd0a58b8z340in4avk6lqqa9qzkzkaxnk2yn1a270sxrsq6y0l" 86 }, 87 "qtpurchasing": { 88 "url": "https://invent.kde.org/qt/qt/qtpurchasing.git", 89 - "rev": "9dfea35b04dcb52d02d7a2883df88d89ba9999ef", 90 - "sha256": "0swliqwzz3b297z7y6sr79ijgv3914s2g9ymq77plxglfdrnm74j" 91 }, 92 "qtquick3d": { 93 "url": "https://invent.kde.org/qt/qt/qtquick3d.git", 94 - "rev": "47defc8b33b7bdf1dbf289b65b301fba2def9b1c", 95 - "sha256": "0kfwkxln3yz0c5rd1kfjmw0y2drwm1gg2s7f52kajfvg4274ha9c" 96 }, 97 "qtquickcontrols": { 98 "url": "https://invent.kde.org/qt/qt/qtquickcontrols.git", 99 - "rev": "18977875d16e22ad68a1dc2d7ee0a9c9f873c941", 100 - "sha256": "0n3930zzvp4s6m715rvx1bjh2s2fg7cadjs2hq6bc8k9mwlqibk1" 101 }, 102 "qtquickcontrols2": { 103 "url": "https://invent.kde.org/qt/qt/qtquickcontrols2.git", 104 - "rev": "56ce8233382a091a8476c831edd416b5f704ae4f", 105 - "sha256": "1h68s2fdgn1pbf5hsk6c8v4icz8c4cpbxv8iirz22yhlzabc3hdm" 106 }, 107 "qtquicktimeline": { 108 "url": "https://invent.kde.org/qt/qt/qtquicktimeline.git", 109 - "rev": "4cd0142a30bfa5eef47c720ac24dd73e12764806", 110 - "sha256": "13vhlgxq8ap796p3y9c3kj645p0370bqjwm5hkz13pazm15sbc9z" 111 }, 112 "qtremoteobjects": { 113 "url": "https://invent.kde.org/qt/qt/qtremoteobjects.git", 114 - "rev": "929c7ad0676f084b9ecc469cd47a307596923cb3", 115 - "sha256": "0l94k9fdzk96j40gab2l5n4lmadzaqhvbg8s3m5f3v4im00xa2x9" 116 }, 117 "qtscript": { 118 "url": "https://invent.kde.org/qt/qt/qtscript.git", 119 - "rev": "4d8e4bd20b7100b0b7192547b19c3c239aaf7034", 120 - "sha256": "1pvihbjjmczby4934lir3h3kq0rqcvxnbw2vdkl9lhkds3lm0qhf" 121 }, 122 "qtscxml": { 123 "url": "https://invent.kde.org/qt/qt/qtscxml.git", 124 - "rev": "0c93f94a44e2dce7eed9d17d4976b0c1e14be7bb", 125 - "sha256": "1vvzvin23ws6njhyg93s2dlkxb9p50mkipc611lsx7971gv1wih0" 126 }, 127 "qtsensors": { 128 "url": "https://invent.kde.org/qt/qt/qtsensors.git", 129 - "rev": "6add85fa1a234a7e1943ba175c6fc799ccbae48e", 130 - "sha256": "1k02x3wzczwg7cqh6hav31akdsz9kk8s0vryd3q7zfrhqy9m88sh" 131 }, 132 "qtserialbus": { 133 "url": "https://invent.kde.org/qt/qt/qtserialbus.git", 134 - "rev": "ced5c7223d037aece1e7f37d4314f388252de025", 135 - "sha256": "009ajdry6lvf9pifzm2zl0w5zhkmrrxm53mjf9s76jqrsi6yqk30" 136 }, 137 "qtserialport": { 138 "url": "https://invent.kde.org/qt/qt/qtserialport.git", 139 - "rev": "e2851096dc6f6a7cfa635d69ea950b382e3658ab", 140 - "sha256": "071g8d9i3wi8rqqy4lxpp3z25a55pd2xwsy3r8v0a6s6y5g5lcpf" 141 }, 142 "qtspeech": { 143 "url": "https://invent.kde.org/qt/qt/qtspeech.git", 144 - "rev": "255845e2b2e605363762be25932d92fc10d32749", 145 - "sha256": "0apyk2z9r7i54sh0zgbs8vfncc4jrcrzzvi3q14d105pkhrschp9" 146 }, 147 "qtsvg": { 148 "url": "https://invent.kde.org/qt/qt/qtsvg.git", 149 - "rev": "a7a0f2491334e8cb4ef5731f5eb741f3f7b9af76", 150 - "sha256": "13zpzvwqv61dsd74s92nf46rhaw2rw3hl8m6d313wjlaaqi95ln6" 151 }, 152 "qttools": { 153 "url": "https://invent.kde.org/qt/qt/qttools.git", 154 - "rev": "090e526e713d01eac34c64e4a09ad961c612febf", 155 - "sha256": "1zrxv9wdnqayn5hhblwyqyrdn8mj7x2ks2f4qsr2w3cdidcjjz7y" 156 }, 157 "qttranslations": { 158 "url": "https://invent.kde.org/qt/qt/qttranslations.git", 159 - "rev": "af8cd030fed6a47cc1e8727e7ee5445e037bf712", 160 - "sha256": "14fx3r9s3p16rhv9fyrwnv6bn24nvh5xnjwcw1mb04c44ddb9r86" 161 }, 162 "qtvirtualkeyboard": { 163 "url": "https://invent.kde.org/qt/qt/qtvirtualkeyboard.git", 164 - "rev": "5f66c9571303170f07954f73b09cad4cee1ce5d0", 165 - "sha256": "0jzl7a2zr83nd9sskmz9fk2w2spn3v821j0l7kcp2hxydgyhk8v3" 166 }, 167 "qtwayland": { 168 "url": "https://invent.kde.org/qt/qt/qtwayland.git", 169 - "rev": "df41e7e3e1f0e5495c5c8c52f1c9bb5a32b0da27", 170 - "sha256": "0f292axj0ivgwgx97zc8x744243i7lgqcxbkjxham6md81m1xbwj" 171 }, 172 "qtwebchannel": { 173 "url": "https://invent.kde.org/qt/qt/qtwebchannel.git", 174 - "rev": "f8949655ccfacc2d34cfb0af23c540db84a2b9e5", 175 - "sha256": "1303hghvk6avshb7imnkv24qv1ij5d3nbljba20l6v6dsr7zg7ba" 176 }, 177 "qtwebglplugin": { 178 "url": "https://invent.kde.org/qt/qt/qtwebglplugin.git", 179 - "rev": "655be6c5406f8ba42acaca363fc55d78a6198733", 180 - "sha256": "08biydqk1lhjzvrgl3zhbrrgnjcy611pmh9scyw42avdvj2qzpc2" 181 }, 182 "qtwebsockets": { 183 "url": "https://invent.kde.org/qt/qt/qtwebsockets.git", 184 - "rev": "90f3590c3c49a0820462af9a778dd13d8df42244", 185 - "sha256": "1dxc3imh8455vy3pggrzjflb2v5382q9ha2fwplybxawld9wdw45" 186 }, 187 "qtwebview": { 188 "url": "https://invent.kde.org/qt/qt/qtwebview.git", 189 - "rev": "dfd86e07019488954cddcf2ba314df3cd0c01c0c", 190 - "sha256": "1crph9sdmxxs0787il86j2dv6k3qylmy8a83hfzczcjcx3pwcf7a" 191 }, 192 "qtwinextras": { 193 "url": "https://invent.kde.org/qt/qt/qtwinextras.git", 194 - "rev": "48318520a4031167c4c0ad559e1a11b2f4c053d6", 195 - "sha256": "04smnp9pl3szizdp05dz7qmdgg8sk57d3r40sdy7v9zwi4lwaqi4" 196 }, 197 "qtx11extras": { 198 "url": "https://invent.kde.org/qt/qt/qtx11extras.git", 199 - "rev": "e44c85e8643f2724109993a7b9eaf0dff3530fec", 200 - "sha256": "1vs1013zxw54xfmkpid99p5f38hlqds172vija7xjyjaww7j7y3b" 201 }, 202 "qtxmlpatterns": { 203 "url": "https://invent.kde.org/qt/qt/qtxmlpatterns.git", 204 - "rev": "3199d91de3f38e5ece3d36bcefe2c33b2c014f3f", 205 - "sha256": "1l6babh2cjqwaqk12cqpkkl2qy909b1fd84p0ab19raw419ncawz" 206 } 207 }
··· 1 { 2 "qt3d": { 3 "url": "https://invent.kde.org/qt/qt/qt3d.git", 4 + "rev": "e94b0fa39a2f4bf260969fb18bf075dba39b2df1", 5 + "sha256": "0mc7rym5pngpwpjghih7afjlyvvrlpdzw1wrbggykpmm8vrk5hzv" 6 }, 7 "qtactiveqt": { 8 "url": "https://invent.kde.org/qt/qt/qtactiveqt.git", 9 + "rev": "38635c3b343ce30b71e44c5a59f2f7393fba8259", 10 + "sha256": "010jh2vdlymaxs1wd0agzb2gvgms9xrhs4vb5bjiiq5pys1sgkbp" 11 }, 12 "qtandroidextras": { 13 "url": "https://invent.kde.org/qt/qt/qtandroidextras.git", 14 + "rev": "b458aee3f907f2ce1880ad4031abecb2a1eab90a", 15 + "sha256": "14vn9k80ilc2smaflnamyg5k0ddj3n4m123yfwb79rfg3lddhvs5" 16 }, 17 "qtbase": { 18 "url": "https://invent.kde.org/qt/qt/qtbase.git", 19 + "rev": "d3b21bc8b70eaa1af848371dc1d34c4617c1f73c", 20 + "sha256": "11yww09fgcqsxv4sk4cflxdsdpdqc0x9b3qw63asfpwrnv9qry0a" 21 }, 22 "qtcharts": { 23 "url": "https://invent.kde.org/qt/qt/qtcharts.git", 24 + "rev": "3d4a84eb6d62ce22a47794f309f9268729ac375f", 25 + "sha256": "047hl5hd0l337b7bsc28lfx9p9jbrnqswfdk80ndvgvp96ziblg5" 26 }, 27 "qtconnectivity": { 28 "url": "https://invent.kde.org/qt/qt/qtconnectivity.git", 29 + "rev": "0f9e49cde3b7ca40cd94e63d2f5d29f5b586d3d6", 30 + "sha256": "1iwqa98ihzqqpqgwsj0lm4zkfwgag9k634sxjnx6gxvfq0h6d4nx" 31 }, 32 "qtdatavis3d": { 33 "url": "https://invent.kde.org/qt/qt/qtdatavis3d.git", 34 + "rev": "7636478bb30f0af8afe9af429eb8512d6fbcc11b", 35 + "sha256": "08xkhxwp5mlcp4q45adqn58p37wn2z2zabw23f51qvfw8rir9g62" 36 }, 37 "qtdeclarative": { 38 "url": "https://invent.kde.org/qt/qt/qtdeclarative.git", 39 + "rev": "0e1bed3c3e27d44d86d6f68a8b93b96a4821575c", 40 + "sha256": "0v4c3pls67ww6ffiscbp05yb2vv583zrxj8p4jcy3yxa06khniy5" 41 }, 42 "qtdoc": { 43 "url": "https://invent.kde.org/qt/qt/qtdoc.git", 44 + "rev": "701325d57940c6e54353d0d4b6c3ebac6f9688a3", 45 + "sha256": "01x2075d71z3ag99dppixs1y85zrr0vck0piah62l9n0v3wz4r6p" 46 }, 47 "qtgamepad": { 48 "url": "https://invent.kde.org/qt/qt/qtgamepad.git", 49 + "rev": "7c05744e38d44afac687df3349d548c8790837db", 50 + "sha256": "0j8rak512f96i0wy4n0d4fjsgfzn283k2kfpn93d2blld4r2rd5s" 51 }, 52 "qtgraphicaleffects": { 53 "url": "https://invent.kde.org/qt/qt/qtgraphicaleffects.git", 54 + "rev": "06cfcbb6940d2729f5a6575e264873ce65ac99c3", 55 + "sha256": "02jc7q7ijmhmffdp2ql2j3fw8ag7q98xlq40pywmzgrf1ggb34sw" 56 }, 57 "qtimageformats": { 58 "url": "https://invent.kde.org/qt/qt/qtimageformats.git", 59 + "rev": "c249f58541afa45955c23b75c1fb88c5e3e4d18b", 60 + "sha256": "025fxiy6ahgfqw3w7a08r2ff4ry2m1qn65haimpnn6bmi4vp88m8" 61 }, 62 "qtlocation": { 63 "url": "https://invent.kde.org/qt/qt/qtlocation.git", 64 + "rev": "2a8a48e9101236f118c2c4f0d79fae9c9d7b3f2a", 65 + "sha256": "0ajvlqkm2641ahms34kg6a2hykvql1hxlm5nsaba7233hnfv3nsy" 66 }, 67 "qtlottie": { 68 "url": "https://invent.kde.org/qt/qt/qtlottie.git", 69 + "rev": "f9f123a97989638c36b5c2b03f4ff6261ddaed9a", 70 + "sha256": "06b5rjzqd1630c87spldxxd0bvkb94sbnaxwxbi7ac74k35ydq7s" 71 }, 72 "qtmacextras": { 73 "url": "https://invent.kde.org/qt/qt/qtmacextras.git", 74 + "rev": "209e3ddcf0a6b48ff47a7dc97f2ea38470c8780d", 75 + "sha256": "09aipbnalb44w6g3kzm9dc84ls2xmp1clwmy5zd012xsvjwqd3h5" 76 }, 77 "qtmultimedia": { 78 "url": "https://invent.kde.org/qt/qt/qtmultimedia.git", 79 + "rev": "ff4c7bc3bf7ba4b748fdeb9d09887271c2b28505", 80 + "sha256": "14wx49mkqqzvwzhbx3jhbrjngq4vb3x2kmgzrq7f6nri0g7dpss8" 81 }, 82 "qtnetworkauth": { 83 "url": "https://invent.kde.org/qt/qt/qtnetworkauth.git", 84 + "rev": "59311ee7d78a8b19d3dbe61cf49d42c5bd7c934a", 85 + "sha256": "1rdgfmfsqp3hdkkq6bi8vdxgrh45xzf1b2nryhnk8pid81wa2bzq" 86 }, 87 "qtpurchasing": { 88 "url": "https://invent.kde.org/qt/qt/qtpurchasing.git", 89 + "rev": "5737c10128c6eeb28c10df569c8492bb2e8f4230", 90 + "sha256": "0iny9npc7w7b1rz9yx659bva66rllhbfqh4af9wdwbi9ssr4x5pc" 91 }, 92 "qtquick3d": { 93 "url": "https://invent.kde.org/qt/qt/qtquick3d.git", 94 + "rev": "ccd0284235e9e3e1f97d808125af5024d3f04140", 95 + "sha256": "1mfw97v60fdszab0gqxjydw00f89rx8clw3dq72zx1rgv8rn2s67" 96 }, 97 "qtquickcontrols": { 98 "url": "https://invent.kde.org/qt/qt/qtquickcontrols.git", 99 + "rev": "eb9dead185ae209dd2364d09db74d8ab613d982d", 100 + "sha256": "1pza9cjv49x59lvzyv45hwz01z8l9zzn8a3ssazycxvcq3w0pncb" 101 }, 102 "qtquickcontrols2": { 103 "url": "https://invent.kde.org/qt/qt/qtquickcontrols2.git", 104 + "rev": "86a84eaa74c4071e5750f23b6e9911762880d391", 105 + "sha256": "1zywq3ll49bzzvl6rzn4zpp96a4mdx0b9l5ic0x6zc4dr8c8jk5m" 106 }, 107 "qtquicktimeline": { 108 "url": "https://invent.kde.org/qt/qt/qtquicktimeline.git", 109 + "rev": "dd5d4af65890baad8baa85a445a752a877a4f7e3", 110 + "sha256": "1m096pskaxhzxyvz17lksg1qlni7qacvqf3z71wvwvxzgjvs5bqh" 111 }, 112 "qtremoteobjects": { 113 "url": "https://invent.kde.org/qt/qt/qtremoteobjects.git", 114 + "rev": "27b496d5aff650e4cf9a3148857c723dce10ef25", 115 + "sha256": "0wyf1nb6wjh4jd2n8cng7a6lzv1dkwrniabsvn1adl1nqknq7asv" 116 }, 117 "qtscript": { 118 "url": "https://invent.kde.org/qt/qt/qtscript.git", 119 + "rev": "4f8c35a528586541ea55bb8b3361eaa6749e52b1", 120 + "sha256": "01jddzy51ks899mszz35lcdgmpl5czcgh5g9fb84pxdnpgaxrx9b" 121 }, 122 "qtscxml": { 123 "url": "https://invent.kde.org/qt/qt/qtscxml.git", 124 + "rev": "d30a77111835395828fdcaa89a88110c5d9f6857", 125 + "sha256": "1yid5653653qlpk305y276gdrifdxpjzfa1629csq2b8hpwkddc2" 126 }, 127 "qtsensors": { 128 "url": "https://invent.kde.org/qt/qt/qtsensors.git", 129 + "rev": "391c710b88865a3e0311b61d93fcdbbfd6996d46", 130 + "sha256": "19myf3w6g64clj9msy71is7b9krkfrzcqlyza37m3pimy7x305a0" 131 }, 132 "qtserialbus": { 133 "url": "https://invent.kde.org/qt/qt/qtserialbus.git", 134 + "rev": "f8684ae6b0c12b6b21f1547fabe38b60c39f8893", 135 + "sha256": "0k60wibb2xis7gvx9d7q14a3sq1ij1m196ax4rfwwrzsz2vviir0" 136 }, 137 "qtserialport": { 138 "url": "https://invent.kde.org/qt/qt/qtserialport.git", 139 + "rev": "7fb308ec721f034a0d673784d951577d764a8e67", 140 + "sha256": "1f8sjyd7ksy4420lr6vn18mzb64jm0p8mml5d2vpgp344w2jbqm0" 141 }, 142 "qtspeech": { 143 "url": "https://invent.kde.org/qt/qt/qtspeech.git", 144 + "rev": "4856b6e231d7e2373ec8f89e861603a0d815793a", 145 + "sha256": "0v8lx6g43apfnyn37ccgjnq7abayplgnihx62fncgl2cpmy9nkha" 146 }, 147 "qtsvg": { 148 "url": "https://invent.kde.org/qt/qt/qtsvg.git", 149 + "rev": "9b5ab29cbba1908fd4928e2bda2b93e418e36187", 150 + "sha256": "0vnwhbkk40wj9rfy3fhjm9slra3y3j1mk67n3vnrzvmzrmpl4443" 151 }, 152 "qttools": { 153 "url": "https://invent.kde.org/qt/qt/qttools.git", 154 + "rev": "5649efd376ed7dbb171905e9edebbd547d1f73eb", 155 + "sha256": "1c49v7pni6bljnf4ppxrrdr0h0hpw4i7s6an91m7ca18s8x4m1rb" 156 }, 157 "qttranslations": { 158 "url": "https://invent.kde.org/qt/qt/qttranslations.git", 159 + "rev": "2b802231af3eb21c3c781753aba804217f855e86", 160 + "sha256": "1xdp1x6qkdm0xz8yg1j2c1fpav54c1rwxlpfj116xspfik4zy7gf" 161 }, 162 "qtvirtualkeyboard": { 163 "url": "https://invent.kde.org/qt/qt/qtvirtualkeyboard.git", 164 + "rev": "4191fd9098ae25ffd5917370427460842e73f0cb", 165 + "sha256": "0jl9dw1azh961hcakmyxavfm0w7g1a89lyj2bal8dqvv9y3089cj" 166 }, 167 "qtwayland": { 168 "url": "https://invent.kde.org/qt/qt/qtwayland.git", 169 + "rev": "c4c3fc69250c01cb35aaae5ea1ea2bcc8236dff0", 170 + "sha256": "040wgrxr2kkshpyg3gwcggdxlxrjd7pbnr3fj8v63byx34sz2w9b" 171 }, 172 "qtwebchannel": { 173 "url": "https://invent.kde.org/qt/qt/qtwebchannel.git", 174 + "rev": "c508ffb1996eeddfd10dda493974746e6b375080", 175 + "sha256": "0hs7cqfiwc0mdsa9zngackfljy7d5306mpn3rwjfi5rawd85xsp0" 176 }, 177 "qtwebglplugin": { 178 "url": "https://invent.kde.org/qt/qt/qtwebglplugin.git", 179 + "rev": "64beacdd2d0f6fe0796bd291c9ab33f206a333c3", 180 + "sha256": "1vqmxkfzggsalq2ic2b902jy0b47zkgzl95gg8dia8089vfny4kn" 181 }, 182 "qtwebsockets": { 183 "url": "https://invent.kde.org/qt/qt/qtwebsockets.git", 184 + "rev": "ed7416b1b8af9de9926388408469a35f2ad6a795", 185 + "sha256": "1434bqqb1hm49b1acwb22b2lc9p936dlylg0m56h2pl4vv9w0v3b" 186 }, 187 "qtwebview": { 188 "url": "https://invent.kde.org/qt/qt/qtwebview.git", 189 + "rev": "23d67d0de3301dbed5d8c5880b6cf60bfa9eeb2a", 190 + "sha256": "16rqz6jiiswaiwa7hn6pn0cq9la8843b4jxi8di30ymq9ysivbqq" 191 }, 192 "qtwinextras": { 193 "url": "https://invent.kde.org/qt/qt/qtwinextras.git", 194 + "rev": "44d18eaff83b7491a130e41678cadcc3ba836a8d", 195 + "sha256": "10fky86gcma9fwdbk3s733x7gqgxzsg6iaf9j42b0f8c2n5jhql3" 196 }, 197 "qtx11extras": { 198 "url": "https://invent.kde.org/qt/qt/qtx11extras.git", 199 + "rev": "8bba77a558049727d1bc88736dd03d1b5c41cead", 200 + "sha256": "1lk4jm2pp0n8disxpcr1520bd798lif23fisnmkzysxcrlw1dflh" 201 }, 202 "qtxmlpatterns": { 203 "url": "https://invent.kde.org/qt/qt/qtxmlpatterns.git", 204 + "rev": "fa0c41677ab43bc50bc4d086dfce96602060b7e0", 205 + "sha256": "1wrh1m9s4pdbvlgy93jv6acn9k1an6jb086cbxscgimgw3kb867p" 206 } 207 }
+3 -3
pkgs/development/libraries/qt-5/5.15/srcs.nix
··· 1 { lib, fetchgit, fetchFromGitHub }: 2 3 let 4 - version = "5.15.8"; 5 overrides = {}; 6 7 mk = name: args: ··· 64 65 qtwebengine = 66 let 67 - branchName = "5.15.12"; 68 rev = "v${branchName}-lts"; 69 in 70 { ··· 72 73 src = fetchgit { 74 url = "https://github.com/qt/qtwebengine.git"; 75 - sha256 = "sha256-8EQqSvxw9rqf+64CIbcCb1VXhNx1GNC8eDIgLyYDyvk="; 76 inherit rev branchName; 77 fetchSubmodules = true; 78 leaveDotGit = true;
··· 1 { lib, fetchgit, fetchFromGitHub }: 2 3 let 4 + version = "5.15.9"; 5 overrides = {}; 6 7 mk = name: args: ··· 64 65 qtwebengine = 66 let 67 + branchName = "5.15.13"; 68 rev = "v${branchName}-lts"; 69 in 70 { ··· 72 73 src = fetchgit { 74 url = "https://github.com/qt/qtwebengine.git"; 75 + sha256 = "sha256-gZmhJTA5A3+GeySJoppYGffNC6Ych2pOYlsu3w+fnmw="; 76 inherit rev branchName; 77 fetchSubmodules = true; 78 leaveDotGit = true;
+1 -1
pkgs/development/libraries/qt-6/default.nix
··· 151 wrapQtAppsHook = makeSetupHook 152 { 153 name = "wrap-qt6-apps-hook"; 154 - propagatedBuildInputs = [ buildPackages.makeWrapper ]; 155 } ./hooks/wrap-qt-apps-hook.sh; 156 157 qmake = makeSetupHook
··· 151 wrapQtAppsHook = makeSetupHook 152 { 153 name = "wrap-qt6-apps-hook"; 154 + propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ]; 155 } ./hooks/wrap-qt-apps-hook.sh; 156 157 qmake = makeSetupHook
+2 -2
pkgs/development/libraries/qt-6/modules/qtmultimedia.nix
··· 26 nativeBuildInputs = [ pkg-config ]; 27 buildInputs = [ libunwind orc ] 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 ] 31 ++ lib.optionals stdenv.isDarwin [ VideoToolbox ]; 32 33 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
··· 26 nativeBuildInputs = [ pkg-config ]; 27 buildInputs = [ libunwind orc ] 28 ++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ]; 29 + propagatedBuildInputs = 30 + lib.optionals stdenv.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ] 31 ++ lib.optionals stdenv.isDarwin [ VideoToolbox ]; 32 33 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
+12 -23
pkgs/development/libraries/quictls/default.nix
··· 1 { lib, stdenv, fetchurl, buildPackages, perl, coreutils, fetchFromGitHub 2 , withCryptodev ? false, cryptodev 3 , enableSSL2 ? false 4 , enableSSL3 ? false 5 , 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 , removeReferencesTo 11 }: 12 ··· 52 !(stdenv.hostPlatform.useLLVM or false) && 53 stdenv.cc.isGNU; 54 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; 60 61 # TODO(@Ericson2314): Improve with mass rebuild 62 configurePlatforms = []; ··· 140 if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then 141 rm "$out/lib/"*.a 142 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 - '' + '' 157 mkdir -p $bin 158 mv $out/bin $bin/bin 159 mkdir $dev 160 mv $out/include $dev/ 161 # remove dependency on Perl at runtime
··· 1 { lib, stdenv, fetchurl, buildPackages, perl, coreutils, fetchFromGitHub 2 + , makeWrapper 3 , withCryptodev ? false, cryptodev 4 , enableSSL2 ? false 5 , enableSSL3 ? false 6 , static ? stdenv.hostPlatform.isStatic 7 , removeReferencesTo 8 }: 9 ··· 49 !(stdenv.hostPlatform.useLLVM or false) && 50 stdenv.cc.isGNU; 51 52 + nativeBuildInputs = [ makeWrapper perl removeReferencesTo ]; 53 + buildInputs = lib.optional withCryptodev cryptodev; 54 55 # TODO(@Ericson2314): Improve with mass rebuild 56 configurePlatforms = []; ··· 134 if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then 135 rm "$out/lib/"*.a 136 fi 137 + '') + '' 138 mkdir -p $bin 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 + 148 mkdir $dev 149 mv $out/include $dev/ 150 # remove dependency on Perl at runtime
+13 -5
pkgs/development/libraries/science/math/or-tools/default.nix
··· 47 }) 48 ]; 49 50 cmakeFlags = [ 51 "-DBUILD_DEPS=OFF" 52 "-DBUILD_PYTHON=ON" ··· 54 "-DFETCH_PYTHON_DEPS=OFF" 55 "-DUSE_GLPK=ON" 56 "-DUSE_SCIP=OFF" 57 ] ++ lib.optionals stdenv.isDarwin [ "-DCMAKE_MACOSX_RPATH=OFF" ]; 58 nativeBuildInputs = [ 59 cmake 60 ensureNewerSourcesForZipFilesHook 61 pkg-config 62 - python 63 - python.pkgs.pip 64 swig4 65 unzip 66 - ]; 67 buildInputs = [ 68 bzip2 69 cbc 70 eigen 71 glpk 72 python.pkgs.absl-py 73 - python.pkgs.mypy-protobuf 74 python.pkgs.pybind11 75 python.pkgs.setuptools 76 python.pkgs.wheel ··· 101 pip install --prefix="$python" python/ 102 ''; 103 104 - outputs = [ "out" "python" ]; 105 106 meta = with lib; { 107 homepage = "https://github.com/google/or-tools";
··· 47 }) 48 ]; 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 + 56 cmakeFlags = [ 57 "-DBUILD_DEPS=OFF" 58 "-DBUILD_PYTHON=ON" ··· 60 "-DFETCH_PYTHON_DEPS=OFF" 61 "-DUSE_GLPK=ON" 62 "-DUSE_SCIP=OFF" 63 + "-DPython3_EXECUTABLE=${python.pythonForBuild.interpreter}" 64 ] ++ lib.optionals stdenv.isDarwin [ "-DCMAKE_MACOSX_RPATH=OFF" ]; 65 nativeBuildInputs = [ 66 cmake 67 ensureNewerSourcesForZipFilesHook 68 pkg-config 69 + python.pythonForBuild 70 swig4 71 unzip 72 + ] ++ (with python.pythonForBuild.pkgs; [ 73 + pip 74 + mypy-protobuf 75 + ]); 76 buildInputs = [ 77 bzip2 78 cbc 79 eigen 80 glpk 81 python.pkgs.absl-py 82 python.pkgs.pybind11 83 python.pkgs.setuptools 84 python.pkgs.wheel ··· 109 pip install --prefix="$python" python/ 110 ''; 111 112 + outputs = [ "out" "dev" "python" ]; 113 114 meta = with lib; { 115 homepage = "https://github.com/google/or-tools";
+2 -1
pkgs/development/libraries/serf/scons.patch
··· 11 if target in build_targets: 12 return PathVariable.PathIsDirCreate(key, val, env) 13 else: 14 - @@ -155,6 +155,7 @@ if sys.platform == 'win32': 15 env = Environment(variables=opts, 16 tools=('default', 'textfile',), 17 CPPPATH=['.', ], 18 + ENV=os.environ, 19 ) 20
··· 11 if target in build_targets: 12 return PathVariable.PathIsDirCreate(key, val, env) 13 else: 14 + @@ -155,6 +155,8 @@ if sys.platform == 'win32': 15 env = Environment(variables=opts, 16 tools=('default', 'textfile',), 17 CPPPATH=['.', ], 18 + + AR=os.environ['AR'], 19 + ENV=os.environ, 20 ) 21
+3 -1
pkgs/development/python-modules/aiohttp/default.nix
··· 23 , freezegun 24 , gunicorn 25 , pytest-mock 26 , pytestCheckHook 27 , re-assert 28 , trustme ··· 79 freezegun 80 gunicorn 81 pytest-mock 82 pytestCheckHook 83 re-assert 84 ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [ ··· 116 '' + lib.optionalString stdenv.isDarwin '' 117 # Work around "OSError: AF_UNIX path too long" 118 export TMPDIR="/tmp" 119 - ''; 120 121 meta = with lib; { 122 changelog = "https://github.com/aio-libs/aiohttp/blob/v${version}/CHANGES.rst";
··· 23 , freezegun 24 , gunicorn 25 , pytest-mock 26 + , pytest-xdist 27 , pytestCheckHook 28 , re-assert 29 , trustme ··· 80 freezegun 81 gunicorn 82 pytest-mock 83 + pytest-xdist 84 pytestCheckHook 85 re-assert 86 ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [ ··· 118 '' + lib.optionalString stdenv.isDarwin '' 119 # Work around "OSError: AF_UNIX path too long" 120 export TMPDIR="/tmp" 121 + ''; 122 123 meta = with lib; { 124 changelog = "https://github.com/aio-libs/aiohttp/blob/v${version}/CHANGES.rst";
+8 -1
pkgs/development/python-modules/aioquic/default.nix
··· 25 hash = "sha256-XjhyajDawN/G1nPtkMbNe66iJCo76UpdA7PqwtxO5ag="; 26 }) 27 # https://github.com/aiortc/aioquic/pull/349, fixes test failure due pyopenssl==22 28 - (assert lib.versions.major pyopenssl.version == "22"; fetchpatch { 29 url = "https://github.com/aiortc/aioquic/commit/c3b72be85868d67ee32d49ab9bd98a4357cbcde9.patch"; 30 hash = "sha256-AjW+U9DpNXgA5yqKkWnx0OYpY2sZR9KIdQ3pSzxU+uY="; 31 }) 32 ]; 33 ··· 42 nativeCheckInputs = [ pytestCheckHook ]; 43 44 pythonImportsCheck = [ "aioquic" ]; 45 46 meta = with lib; { 47 description = "Implementation of QUIC and HTTP/3";
··· 25 hash = "sha256-XjhyajDawN/G1nPtkMbNe66iJCo76UpdA7PqwtxO5ag="; 26 }) 27 # https://github.com/aiortc/aioquic/pull/349, fixes test failure due pyopenssl==22 28 + (fetchpatch { 29 url = "https://github.com/aiortc/aioquic/commit/c3b72be85868d67ee32d49ab9bd98a4357cbcde9.patch"; 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="; 36 }) 37 ]; 38 ··· 47 nativeCheckInputs = [ pytestCheckHook ]; 48 49 pythonImportsCheck = [ "aioquic" ]; 50 + 51 + __darwinAllowLocalNetworking = true; 52 53 meta = with lib; { 54 description = "Implementation of QUIC and HTTP/3";
+6 -1
pkgs/development/python-modules/anyio/default.nix
··· 2 , lib 3 , buildPythonPackage 4 , fetchFromGitHub 5 - , fetchpatch 6 , pythonOlder 7 , setuptools 8 , setuptools-scm ··· 13 , hypothesis 14 , mock 15 , pytest-mock 16 , pytestCheckHook 17 , trio 18 , trustme ··· 55 curio 56 hypothesis 57 pytest-mock 58 pytestCheckHook 59 trio 60 trustme ··· 74 "test_exception_group_children" 75 "test_exception_group_host" 76 "test_exception_group_filtering" 77 ]; 78 79 disabledTestPaths = [
··· 2 , lib 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pythonOlder 6 , setuptools 7 , setuptools-scm ··· 12 , hypothesis 13 , mock 14 , pytest-mock 15 + , pytest-xdist 16 , pytestCheckHook 17 , trio 18 , trustme ··· 55 curio 56 hypothesis 57 pytest-mock 58 + pytest-xdist 59 pytestCheckHook 60 trio 61 trustme ··· 75 "test_exception_group_children" 76 "test_exception_group_host" 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" 82 ]; 83 84 disabledTestPaths = [
+5 -3
pkgs/development/python-modules/cryptography/default.nix
··· 11 , six 12 , isPyPy 13 , cffi 14 , pytestCheckHook 15 , pytest-benchmark 16 , pytest-subtests ··· 28 in 29 buildPythonPackage rec { 30 pname = "cryptography"; 31 - version = "39.0.1"; # Also update the hash in vectors.nix 32 format = "setuptools"; 33 disabled = pythonOlder "3.6"; 34 35 src = fetchPypi { 36 inherit pname version; 37 - hash = "sha256-0fYZjubZFIQF5JiHgDkH/olioj5sb4PqfZjxwN43VpU="; 38 }; 39 40 cargoDeps = rustPlatform.fetchCargoTarball { 41 inherit src; 42 sourceRoot = "${pname}-${version}/${cargoRoot}"; 43 name = "${pname}-${version}"; 44 - hash = "sha256-0x+KIqJznDEyIUqVuYfIESKmHBWfzirPeX2R/cWlngc="; 45 }; 46 47 cargoRoot = "src/rust"; 48 49 nativeBuildInputs = lib.optionals (!isPyPy) [ 50 cffi 51 ] ++ [ 52 rustPlatform.cargoSetupHook 53 setuptools-rust
··· 11 , six 12 , isPyPy 13 , cffi 14 + , pkg-config 15 , pytestCheckHook 16 , pytest-benchmark 17 , pytest-subtests ··· 29 in 30 buildPythonPackage rec { 31 pname = "cryptography"; 32 + version = "40.0.1"; # Also update the hash in vectors.nix 33 format = "setuptools"; 34 disabled = pythonOlder "3.6"; 35 36 src = fetchPypi { 37 inherit pname version; 38 + hash = "sha256-KAPy+LHpX2FEGZJsfm9V2CivxhTKXtYVQ4d65mjMNHI="; 39 }; 40 41 cargoDeps = rustPlatform.fetchCargoTarball { 42 inherit src; 43 sourceRoot = "${pname}-${version}/${cargoRoot}"; 44 name = "${pname}-${version}"; 45 + hash = "sha256-gFfDTc2QWBWHBCycVH1dYlCsWQMVcRZfOBIau+njtDU="; 46 }; 47 48 cargoRoot = "src/rust"; 49 50 nativeBuildInputs = lib.optionals (!isPyPy) [ 51 cffi 52 + pkg-config 53 ] ++ [ 54 rustPlatform.cargoSetupHook 55 setuptools-rust
+1 -1
pkgs/development/python-modules/cryptography/vectors.nix
··· 9 src = fetchPypi { 10 pname = "cryptography_vectors"; 11 inherit version; 12 - hash = "sha256-DLrrUL2388nXqTsmoEYu9ul8doynjZAoVP4EXDC2gMY="; 13 }; 14 15 # No tests included
··· 9 src = fetchPypi { 10 pname = "cryptography_vectors"; 11 inherit version; 12 + hash = "sha256-hGBwa1tdDOSoVXHKM4nPiPcAu2oMYTPcn+D1ovW9oEE="; 13 }; 14 15 # No tests included
+1
pkgs/development/python-modules/ctap-keyring-device/default.nix
··· 14 let 15 fido2_0 = fido2.overridePythonAttrs (oldAttrs: rec { 16 version = "0.9.3"; 17 src = fetchPypi { 18 inherit (oldAttrs) pname; 19 inherit version;
··· 14 let 15 fido2_0 = fido2.overridePythonAttrs (oldAttrs: rec { 16 version = "0.9.3"; 17 + format = "setuptools"; 18 src = fetchPypi { 19 inherit (oldAttrs) pname; 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 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , six 5 , cryptography 6 , mock ··· 10 11 buildPythonPackage rec { 12 pname = "fido2"; 13 - version = "1.1.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 - hash = "sha256-K0tOYgwhAEQsIGeODpUa1tHvs7pcqOu3IMTI1UMpNnQ="; 18 }; 19 20 propagatedBuildInputs = [ six cryptography ]; 21
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , poetry-core 5 , six 6 , cryptography 7 , mock ··· 11 12 buildPythonPackage rec { 13 pname = "fido2"; 14 + version = "1.1.1"; 15 + format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + hash = "sha256-XcSVyoxZwcM3ODtLjDFNRrktXG/GUOcZhMbX+VQHn8M="; 20 }; 21 + 22 + nativeBuildInputs = [ poetry-core ]; 23 24 propagatedBuildInputs = [ six cryptography ]; 25
+6 -4
pkgs/development/python-modules/flaky/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , mock 5 - , nose 6 , pytest 7 }: 8 9 buildPythonPackage rec { 10 pname = "flaky"; 11 version = "3.7.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 - sha256 = "3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d"; 16 }; 17 18 - nativeCheckInputs = [ mock nose pytest ]; 19 20 checkPhase = '' 21 # based on tox.ini 22 pytest -k 'example and not options' --doctest-modules test/test_pytest/ 23 pytest -k 'example and not options' test/test_pytest/ 24 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 pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py 27 ''; 28
··· 2 , buildPythonPackage 3 , fetchPypi 4 , mock 5 , pytest 6 }: 7 8 buildPythonPackage rec { 9 pname = "flaky"; 10 version = "3.7.0"; 11 + format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 + hash = "sha256-OtEAeAchoZEfV6FlgJt+omWnhjMFrLZnCCIIIMr4qg0="; 16 }; 17 18 + nativeCheckInputs = [ 19 + mock 20 + pytest 21 + ]; 22 23 checkPhase = '' 24 # based on tox.ini 25 pytest -k 'example and not options' --doctest-modules test/test_pytest/ 26 pytest -k 'example and not options' test/test_pytest/ 27 pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py 28 pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py 29 ''; 30
+2 -2
pkgs/development/python-modules/gst-python/default.nix
··· 14 15 buildPythonPackage rec { 16 pname = "gst-python"; 17 - version = "1.20.0"; 18 19 format = "other"; 20 ··· 22 23 src = fetchurl { 24 url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz"; 25 - sha256 = "j2e9xWBrozYGxryJbonefc2M9PykWfcTibG2/gdbXlQ="; 26 }; 27 28 # Python 2.x is not supported.
··· 14 15 buildPythonPackage rec { 16 pname = "gst-python"; 17 + version = "1.22.2"; 18 19 format = "other"; 20 ··· 22 23 src = fetchurl { 24 url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz"; 25 + hash = "sha256-vvKz2Czkvka3dbG7VjBcEAPuAbU1pTqC+f6JJJchU60="; 26 }; 27 28 # Python 2.x is not supported.
+4
pkgs/development/python-modules/hypothesis/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , attrs 5 , exceptiongroup ··· 13 , sphinx-rtd-theme 14 , sphinx-hoverxref 15 , sphinx-codeautolink 16 # Used to break internal dependency loop. 17 , enableDocumentation ? true 18 }: ··· 65 pexpect 66 pytest-xdist 67 pytestCheckHook 68 ]; 69 70 inherit doCheck;
··· 1 { lib 2 , buildPythonPackage 3 + , isPyPy 4 , fetchFromGitHub 5 , attrs 6 , exceptiongroup ··· 14 , sphinx-rtd-theme 15 , sphinx-hoverxref 16 , sphinx-codeautolink 17 + , tzdata 18 # Used to break internal dependency loop. 19 , enableDocumentation ? true 20 }: ··· 67 pexpect 68 pytest-xdist 69 pytestCheckHook 70 + ] ++ lib.optionals (isPyPy) [ 71 + tzdata 72 ]; 73 74 inherit doCheck;
+2 -2
pkgs/development/python-modules/kaldi-active-grammar/fork.nix
··· 9 , python3 10 , openblas 11 , zlib 12 - , gfortran-tmp-noisystem 13 }: 14 15 let ··· 56 nativeBuildInputs = [ 57 pkg-config 58 python3 59 - gfortran-tmp-noisystem 60 ]; 61 62 buildFlags = [
··· 9 , python3 10 , openblas 11 , zlib 12 + , gfortran 13 }: 14 15 let ··· 56 nativeBuildInputs = [ 57 pkg-config 58 python3 59 + gfortran 60 ]; 61 62 buildFlags = [
+2 -1
pkgs/development/python-modules/matplotlib/default.nix
··· 135 libX11 136 tcl 137 tk 138 - tkinter 139 ] ++ lib.optionals stdenv.isDarwin [ 140 Cocoa 141 ]; ··· 167 tornado 168 ] ++ lib.optionals enableNbagg [ 169 ipykernel 170 ]; 171 172 passthru.config = {
··· 135 libX11 136 tcl 137 tk 138 ] ++ lib.optionals stdenv.isDarwin [ 139 Cocoa 140 ]; ··· 166 tornado 167 ] ++ lib.optionals enableNbagg [ 168 ipykernel 169 + ] ++ lib.optionals enableTk [ 170 + tkinter 171 ]; 172 173 passthru.config = {
+2 -1
pkgs/development/python-modules/nose/default.nix
··· 26 --replace "from setuptools.command.build_py import Mixin2to3" "from distutils.util import Mixin2to3" 27 ''; 28 29 - preBuild = lib.optionalString (isPy3k && (!isPyPy)) '' 30 ${python.pythonForBuild}/bin/2to3 -wn nose functional_tests unit_tests 31 ''; 32 ··· 41 ''; 42 43 meta = with lib; { 44 description = "A unittest-based testing framework for python that makes writing and running tests easier"; 45 homepage = "https://nose.readthedocs.io/"; 46 license = licenses.lgpl3;
··· 26 --replace "from setuptools.command.build_py import Mixin2to3" "from distutils.util import Mixin2to3" 27 ''; 28 29 + preBuild = lib.optionalString (isPy3k) '' 30 ${python.pythonForBuild}/bin/2to3 -wn nose functional_tests unit_tests 31 ''; 32 ··· 41 ''; 42 43 meta = with lib; { 44 + broken = isPyPy; # missing 2to3 conversion utility 45 description = "A unittest-based testing framework for python that makes writing and running tests easier"; 46 homepage = "https://nose.readthedocs.io/"; 47 license = licenses.lgpl3;
+2
pkgs/development/python-modules/passlib/default.nix
··· 6 , cryptography 7 , pytestCheckHook 8 , pythonOlder 9 }: 10 11 buildPythonPackage rec { ··· 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ] ++ passthru.optional-dependencies.argon2 32 ++ passthru.optional-dependencies.bcrypt 33 ++ passthru.optional-dependencies.totp;
··· 6 , cryptography 7 , pytestCheckHook 8 , pythonOlder 9 + , pytest-xdist 10 }: 11 12 buildPythonPackage rec { ··· 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 + pytest-xdist 33 ] ++ passthru.optional-dependencies.argon2 34 ++ passthru.optional-dependencies.bcrypt 35 ++ passthru.optional-dependencies.totp;
+2
pkgs/development/python-modules/protobuf/default.nix
··· 41 fi 42 ''; 43 44 buildInputs = [ protobuf ]; 45 46 propagatedNativeBuildInputs = [
··· 41 fi 42 ''; 43 44 + outputs = [ "out" "dev" ]; 45 + 46 buildInputs = [ protobuf ]; 47 48 propagatedNativeBuildInputs = [
+13 -4
pkgs/development/python-modules/pybind11/default.nix
··· 11 , numpy 12 , pytestCheckHook 13 , libxcrypt 14 - }: 15 - 16 - buildPythonPackage rec { 17 pname = "pybind11"; 18 version = "2.10.4"; 19 ··· 30 31 nativeBuildInputs = [ cmake ]; 32 buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; 33 34 dontUseCmakeBuildDir = true; 35 ··· 43 cmakeFlags = [ 44 "-DBoost_INCLUDE_DIR=${lib.getDev boost}/include" 45 "-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3" 46 - "-DPYTHON_EXECUTABLE:FILEPATH=${python.pythonForBuild.interpreter}" 47 ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ 48 "-DPYBIND11_CXX_STANDARD=-std=c++17" 49 ];
··· 11 , numpy 12 , pytestCheckHook 13 , libxcrypt 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 { 26 pname = "pybind11"; 27 version = "2.10.4"; 28 ··· 39 40 nativeBuildInputs = [ cmake ]; 41 buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; 42 + propagatedBuildInputs = [ setupHook ]; 43 44 dontUseCmakeBuildDir = true; 45 ··· 53 cmakeFlags = [ 54 "-DBoost_INCLUDE_DIR=${lib.getDev boost}/include" 55 "-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3" 56 ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ 57 "-DPYBIND11_CXX_STANDARD=-std=c++17" 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 14 buildPythonPackage rec { 15 pname = "pyopenssl"; 16 - version = "23.0.0"; 17 format = "setuptools"; 18 19 src = fetchPypi { 20 pname = "pyOpenSSL"; 21 inherit version; 22 - hash = "sha256-wcxfhrys78hNrafTEXXK4bFRjV9g09C7WVpngiqGim8="; 23 }; 24 25 outputs = [
··· 13 14 buildPythonPackage rec { 15 pname = "pyopenssl"; 16 + version = "23.1.1"; 17 format = "setuptools"; 18 19 src = fetchPypi { 20 pname = "pyOpenSSL"; 21 inherit version; 22 + hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc="; 23 }; 24 25 outputs = [
+6
pkgs/development/python-modules/pyquery/default.nix
··· 22 hash = "sha256-lj6NTpAmL/bY3sBy6pcoXcN0ovacrXd29AgqvPah2K4="; 23 }; 24 25 propagatedBuildInputs = [ 26 cssselect 27 lxml
··· 22 hash = "sha256-lj6NTpAmL/bY3sBy6pcoXcN0ovacrXd29AgqvPah2K4="; 23 }; 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 + 31 propagatedBuildInputs = [ 32 cssselect 33 lxml
-3
pkgs/development/python-modules/scikit-learn/default.nix
··· 55 export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES 56 ''; 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 doCheck = !stdenv.isAarch64; 62 63 disabledTests = [
··· 55 export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES 56 ''; 57 58 doCheck = !stdenv.isAarch64; 59 60 disabledTests = [
+15 -12
pkgs/development/python-modules/sqlalchemy/default.nix
··· 1 - { stdenv 2 - , lib 3 , isPyPy 4 , pythonOlder 5 , fetchPypi 6 , buildPythonPackage 7 8 # build ··· 14 , typing-extensions 15 16 # optionals 17 , aiosqlite 18 , asyncmy 19 , asyncpg ··· 40 41 buildPythonPackage rec { 42 pname = "SQLAlchemy"; 43 - version = "2.0.6"; 44 format = "pyproject"; 45 46 disabled = pythonOlder "3.7"; 47 48 - src = fetchPypi { 49 - inherit pname version; 50 - hash = "sha256-w0PwtUZJX116I5xwv1CpmkjXMhwWW4Kvr6hIO56+v24="; 51 }; 52 53 nativeBuildInputs =[ ··· 61 typing-extensions 62 ]; 63 64 - passthru.optional-dependencies = rec { 65 asyncio = [ 66 greenlet 67 ]; ··· 100 ]; 101 postgresql_asyncpg = [ 102 asyncpg 103 - ] ++ asyncio; 104 postgresql_psycopg2binary = [ 105 psycopg2 106 ]; ··· 115 ]; 116 aiomysql = [ 117 aiomysql 118 - ] ++ asyncio; 119 asyncmy = [ 120 asyncmy 121 - ] ++ asyncio; 122 aiosqlite = [ 123 aiosqlite 124 typing-extensions 125 - ] ++ asyncio; 126 sqlcipher = [ 127 # TODO: sqlcipher3 128 ]; 129 - }; 130 131 nativeCheckInputs = [ 132 pytest-xdist
··· 1 + { lib 2 , isPyPy 3 , pythonOlder 4 , fetchPypi 5 + , fetchFromGitHub 6 , buildPythonPackage 7 8 # build ··· 14 , typing-extensions 15 16 # optionals 17 + , aiomysql 18 , aiosqlite 19 , asyncmy 20 , asyncpg ··· 41 42 buildPythonPackage rec { 43 pname = "SQLAlchemy"; 44 + version = "2.0.9"; 45 format = "pyproject"; 46 47 disabled = pythonOlder "3.7"; 48 49 + src = fetchFromGitHub { 50 + owner = "sqlalchemy"; 51 + repo = "sqlalchemy"; 52 + rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}"; 53 + hash = "sha256-0WlRZ7Kv6owtZB+PDFKk+8dxEL4p3QQrRPq8eQd2PqM="; 54 }; 55 56 nativeBuildInputs =[ ··· 64 typing-extensions 65 ]; 66 67 + passthru.optional-dependencies = lib.fix (self: { 68 asyncio = [ 69 greenlet 70 ]; ··· 103 ]; 104 postgresql_asyncpg = [ 105 asyncpg 106 + ] ++ self.asyncio; 107 postgresql_psycopg2binary = [ 108 psycopg2 109 ]; ··· 118 ]; 119 aiomysql = [ 120 aiomysql 121 + ] ++ self.asyncio; 122 asyncmy = [ 123 asyncmy 124 + ] ++ self.asyncio; 125 aiosqlite = [ 126 aiosqlite 127 typing-extensions 128 + ] ++ self.asyncio; 129 sqlcipher = [ 130 # TODO: sqlcipher3 131 ]; 132 + }); 133 134 nativeCheckInputs = [ 135 pytest-xdist
+8 -2
pkgs/development/python-modules/virtualenv/default.nix
··· 1 { lib 2 - , stdenv 3 , buildPythonPackage 4 , pythonOlder 5 , isPy27 6 , cython 7 , distlib 8 , fetchPypi ··· 12 , hatchling 13 , importlib-metadata 14 , importlib-resources 15 - , pathlib2 16 , platformdirs 17 , pytest-freezegun 18 , pytest-mock ··· 76 "test_seed_link_via_app_data" 77 # Permission Error 78 "test_bad_exe_py_info_no_raise" 79 ]; 80 81 pythonImportsCheck = [
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 , isPy27 5 + , isPyPy 6 , cython 7 , distlib 8 , fetchPypi ··· 12 , hatchling 13 , importlib-metadata 14 , importlib-resources 15 , platformdirs 16 , pytest-freezegun 17 , pytest-mock ··· 75 "test_seed_link_via_app_data" 76 # Permission Error 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" 85 ]; 86 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 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , nose 5 }: 6 ··· 12 inherit pname version; 13 hash = "sha256-o/UIXTfvfj4ATEup+bPkDFT/GQHNER8FFFrjE6fGfRs="; 14 }; 15 16 nativeCheckInputs = [ 17 nose
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , isPyPy 5 , nose 6 }: 7 ··· 13 inherit pname version; 14 hash = "sha256-o/UIXTfvfj4ATEup+bPkDFT/GQHNER8FFFrjE6fGfRs="; 15 }; 16 + 17 + # nose is unavailable on pypy 18 + doCheck = !isPyPy; 19 20 nativeCheckInputs = [ 21 nose
+2 -2
pkgs/development/ruby-modules/bundler/default.nix
··· 4 inherit ruby; 5 name = "${gemName}-${version}"; 6 gemName = "bundler"; 7 - version = "2.4.10"; 8 - source.sha256 = "sha256-uYBvqUQGOmqGdqj57Ux8d2o2w7yC8mxXYIZ6AoW0oSE="; 9 dontPatchShebangs = true; 10 11 postFixup = ''
··· 4 inherit ruby; 5 name = "${gemName}-${version}"; 6 gemName = "bundler"; 7 + version = "2.4.12"; 8 + source.sha256 = "sha256-y1VM1Pi/Rx0XeTff5vUv7mCtcLtKr3ENcnD6SiTezk0="; 9 dontPatchShebangs = true; 10 11 postFixup = ''
+11
pkgs/development/tools/gnulib/default.nix
··· 26 # do not change headers to not update all vendored build files 27 dontFixup = true; 28 29 meta = with lib; { 30 description = "Central location for code to be shared among GNU packages"; 31 homepage = "https://www.gnu.org/software/gnulib/";
··· 26 # do not change headers to not update all vendored build files 27 dontFixup = true; 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 + 40 meta = with lib; { 41 description = "Central location for code to be shared among GNU packages"; 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 { lib, stdenv, fetchurl, fetchpatch, pkg-config, musl-fts 2 , musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs 3 , argp-standalone 4 - , enableDebuginfod ? false, sqlite, curl, libmicrohttpd, libarchive 5 , gitUpdater 6 }: 7
··· 1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, musl-fts 2 , musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs 3 , argp-standalone 4 + , enableDebuginfod ? true, sqlite, curl, libmicrohttpd, libarchive 5 , gitUpdater 6 }: 7
+1 -1
pkgs/development/tools/misc/gdb/default.nix
··· 7 , ncurses, readline, gmp, mpfr, expat, libipt, zlib, zstd, dejagnu, sourceHighlight 8 9 , pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null 10 - , enableDebuginfod ? false, elfutils 11 , guile ? null 12 , hostCpuOnly ? false 13 , safePaths ? [
··· 7 , ncurses, readline, gmp, mpfr, expat, libipt, zlib, zstd, dejagnu, sourceHighlight 8 9 , pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null 10 + , enableDebuginfod ? true, elfutils 11 , guile ? null 12 , hostCpuOnly ? false 13 , safePaths ? [
+2 -2
pkgs/development/tools/misc/texinfo/7.0.nix
··· 1 import ./common.nix { 2 - version = "7.0.2"; 3 - sha256 = "sha256-8hHsMmE4PhqJ5FVak7nQF/6Ae5w5kvst/0hx2ubaVK0="; 4 }
··· 1 import ./common.nix { 2 + version = "7.0.3"; 3 + sha256 = "sha256-dLQg0J1/Uo6E+XqjMPDdaamKYFPnpOAXZ+7RFQOIB78="; 4 }
+9
pkgs/development/tools/misc/texinfo/common.nix
··· 1 { version, sha256, patches ? [] }: 2 3 { lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash 4 5 # we are a dependency of gcc, this simplifies bootstraping 6 , interactive ? false, ncurses, procps ··· 30 31 postPatch = '' 32 patchShebangs tp/maintain 33 ''; 34 35 # ncurses is required to build `makedoc' ··· 82 license = licenses.gpl3Plus; 83 platforms = platforms.all; 84 maintainers = with maintainers; [ vrthra oxij ]; 85 86 longDescription = '' 87 Texinfo is the official documentation format of the GNU project.
··· 1 { version, sha256, patches ? [] }: 2 3 { lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash 4 + , gnulib 5 6 # we are a dependency of gcc, this simplifies bootstraping 7 , interactive ? false, ncurses, procps ··· 31 32 postPatch = '' 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} 40 ''; 41 42 # ncurses is required to build `makedoc' ··· 89 license = licenses.gpl3Plus; 90 platforms = platforms.all; 91 maintainers = with maintainers; [ vrthra oxij ]; 92 + # see comment above in patches section 93 + broken = stdenv.hostPlatform.isPower64 && lib.strings.versionOlder version "6.0"; 94 95 longDescription = '' 96 Texinfo is the official documentation format of the GNU project.
+2 -2
pkgs/development/web/nodejs/v18.nix
··· 9 in 10 buildNodejs { 11 inherit enableNpm; 12 - version = "18.15.0"; 13 - sha256 = "sha256-jkTWUBj/lzKEGVwjGGRpoOpAgul+xCAOX1cG1VhNqjc="; 14 patches = [ 15 ./disable-darwin-v8-system-instrumentation.patch 16 ./bypass-darwin-xcrun-node16.patch
··· 9 in 10 buildNodejs { 11 inherit enableNpm; 12 + version = "18.16.0"; 13 + sha256 = "sha256-M9gaIz4jWlCa3aSk8iCQCNBFkZed5rPw9nwckGCT8Rg="; 14 patches = [ 15 ./disable-darwin-v8-system-instrumentation.patch 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 6 }: 7 8 let ··· 30 in 31 stdenv.mkDerivation rec { 32 pname = "ghostscript${lib.optionalString (x11Support) "-with-X"}"; 33 - version = "9.56.1"; 34 35 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"; 38 }; 39 40 patches = [ ··· 77 78 configureFlags = [ 79 "--with-system-libtiff" 80 "--enable-dynamic" 81 - "--without-tesseract" 82 - ] 83 - ++ lib.optional x11Support "--with-x" 84 - ++ lib.optionals cupsSupport [ 85 "--enable-cups" 86 ]; 87 ··· 133 runHook postInstallCheck 134 ''; 135 136 - passthru.tests.test-corpus-render = callPackage ./test-corpus-render.nix {}; 137 138 meta = { 139 homepage = "https://www.ghostscript.com/";
··· 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 37 }: 38 39 let ··· 61 in 62 stdenv.mkDerivation rec { 63 pname = "ghostscript${lib.optionalString (x11Support) "-with-X"}"; 64 + version = "10.01.1"; 65 66 src = fetchurl { 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=="; 69 }; 70 71 patches = [ ··· 108 109 configureFlags = [ 110 "--with-system-libtiff" 111 + "--without-tesseract" 112 + ] ++ lib.optionals dynamicDrivers [ 113 "--enable-dynamic" 114 + "--disable-hidden-visibility" 115 + ] ++ lib.optional x11Support [ 116 + "--with-x" 117 + ] ++ lib.optionals cupsSupport [ 118 "--enable-cups" 119 ]; 120 ··· 166 runHook postInstallCheck 167 ''; 168 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 + }; 174 175 meta = { 176 homepage = "https://www.ghostscript.com/";
+3 -3
pkgs/misc/ghostscript/test-corpus-render.nix
··· 5 6 stdenv.mkDerivation { 7 pname = "ghostscript-test-corpus-render"; 8 - version = "unstable-2020-02-19"; 9 10 src = fetchgit { 11 url = "git://git.ghostscript.com/tests.git"; 12 - rev = "efdd224340d9a407ed3ec22afa1cb127c8fee73c"; 13 - sha256 = "1v1iqz897zzrwa8ng22zcf3y61ab5798jdwidgv10w1r9mjrl7ax"; 14 }; 15 16 dontConfigure = true;
··· 5 6 stdenv.mkDerivation { 7 pname = "ghostscript-test-corpus-render"; 8 + version = "unstable-2022-12-01"; 9 10 src = fetchgit { 11 url = "git://git.ghostscript.com/tests.git"; 12 + rev = "e81c3a1d7c679aab8230e9152165d8cffb687242"; 13 + hash = "sha256-h+UHpCHASYOhf4xG6gkVJK9TEG85kE3jNx5cD1I3LQg="; 14 }; 15 16 dontConfigure = true;
+3 -41
pkgs/os-specific/linux/audit/default.nix
··· 12 13 stdenv.mkDerivation rec { 14 pname = "audit"; 15 - version = "2.8.5"; # at the next release, remove the patches below! 16 17 src = fetchurl { 18 url = "https://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz"; 19 - sha256 = "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"; 20 }; 21 22 outputs = [ "bin" "dev" "out" "man" ]; ··· 37 ]; 38 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 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 - ) 66 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 # Fix pending upstream inclusion for linux-headers-5.17 support: 75 # https://github.com/linux-audit/audit-userspace/pull/253 76 (fetchpatch { ··· 85 substituteInPlace bindings/swig/src/auditswig.i \ 86 --replace "/usr/include/linux/audit.h" \ 87 "${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 ''; 96 meta = { 97 description = "Audit Library";
··· 12 13 stdenv.mkDerivation rec { 14 pname = "audit"; 15 + version = "3.1"; 16 17 src = fetchurl { 18 url = "https://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz"; 19 + sha256 = "sha256-tc882rsnhsCLHeNZmjsaVH5V96n5wesgePW0TPROg3g="; 20 }; 21 22 outputs = [ "bin" "dev" "out" "man" ]; ··· 37 ]; 38 39 enableParallelBuilding = true; 40 patches = [ 41 + ./fix-static.patch 42 43 # Fix pending upstream inclusion for linux-headers-5.17 support: 44 # https://github.com/linux-audit/audit-userspace/pull/253 45 (fetchpatch { ··· 54 substituteInPlace bindings/swig/src/auditswig.i \ 55 --replace "/usr/include/linux/audit.h" \ 56 "${linuxHeaders}/include/linux/audit.h" 57 ''; 58 meta = { 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 "-DENABLE_USDT=ON" 41 "-DENABLE_CPP_API=ON" 42 "-DCMAKE_USE_LIBBPF_PACKAGE=ON" 43 ]; 44 45 # to replace this executable path:
··· 40 "-DENABLE_USDT=ON" 41 "-DENABLE_CPP_API=ON" 42 "-DCMAKE_USE_LIBBPF_PACKAGE=ON" 43 + "-DENABLE_LIBDEBUGINFOD=OFF" 44 ]; 45 46 # to replace this executable path:
+1
pkgs/os-specific/linux/kernel/common-config.nix
··· 904 905 REGULATOR = yes; # Voltage and Current Regulator Support 906 RC_DEVICES = option yes; # Enable IR devices 907 908 RT2800USB_RT53XX = yes; 909 RT2800USB_RT55XX = yes;
··· 904 905 REGULATOR = yes; # Voltage and Current Regulator Support 906 RC_DEVICES = option yes; # Enable IR devices 907 + RC_DECODERS = option yes; # Required for IR devices to work 908 909 RT2800USB_RT53XX = yes; 910 RT2800USB_RT55XX = yes;
+15 -2
pkgs/os-specific/linux/pam_mount/default.nix
··· 18 --replace @@NIX_UTILLINUX@@ ${util-linux}/bin 19 ''; 20 21 - nativeBuildInputs = [ autoreconfHook libtool pkg-config ]; 22 23 - buildInputs = [ pam libHX util-linux libxml2 pcre2 perl openssl cryptsetup ]; 24 25 enableParallelBuilding = true; 26
··· 18 --replace @@NIX_UTILLINUX@@ ${util-linux}/bin 19 ''; 20 21 + nativeBuildInputs = [ 22 + autoreconfHook 23 + libtool 24 + perl 25 + pkg-config 26 + ]; 27 28 + buildInputs = [ 29 + cryptsetup 30 + libHX 31 + libxml2 32 + openssl 33 + pam 34 + pcre2 35 + util-linux 36 + ]; 37 38 enableParallelBuilding = true; 39
+3 -3
pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
··· 10 1 file changed, 2 insertions(+) 11 12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 13 - index 36d336dfc8..d62c5173ca 100644 14 --- a/src/nspawn/nspawn.c 15 +++ b/src/nspawn/nspawn.c 16 - @@ -5634,6 +5634,7 @@ static int run(int argc, char *argv[]) { 17 goto finish; 18 } 19 } else { ··· 21 _cleanup_free_ char *p = NULL; 22 23 if (arg_pivot_root_new) 24 - @@ -5648,6 +5649,7 @@ static int run(int argc, char *argv[]) { 25 "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory); 26 goto finish; 27 }
··· 10 1 file changed, 2 insertions(+) 11 12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 13 + index a697ea5cb9..65d9e7e398 100644 14 --- a/src/nspawn/nspawn.c 15 +++ b/src/nspawn/nspawn.c 16 + @@ -5635,6 +5635,7 @@ static int run(int argc, char *argv[]) { 17 goto finish; 18 } 19 } else { ··· 21 _cleanup_free_ char *p = NULL; 22 23 if (arg_pivot_root_new) 24 + @@ -5649,6 +5650,7 @@ static int run(int argc, char *argv[]) { 25 "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory); 26 goto finish; 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 1 file changed, 2 insertions(+), 1 deletion(-) 14 15 diff --git a/src/core/manager.c b/src/core/manager.c 16 - index 7b394794b0..50d092042c 100644 17 --- a/src/core/manager.c 18 +++ b/src/core/manager.c 19 @@ -1437,7 +1437,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) {
··· 13 1 file changed, 2 insertions(+), 1 deletion(-) 14 15 diff --git a/src/core/manager.c b/src/core/manager.c 16 + index 380a4e30d7..817acb87b8 100644 17 --- a/src/core/manager.c 18 +++ b/src/core/manager.c 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 6 Patch by vcunat. 7 --- 8 - src/libsystemd/sd-hwdb/hwdb-internal.h | 7 ++----- 9 - 1 file changed, 2 insertions(+), 5 deletions(-) 10 11 diff --git a/src/libsystemd/sd-hwdb/hwdb-internal.h b/src/libsystemd/sd-hwdb/hwdb-internal.h 12 - index 5302679a62..c681f3a984 100644 13 --- a/src/libsystemd/sd-hwdb/hwdb-internal.h 14 +++ b/src/libsystemd/sd-hwdb/hwdb-internal.h 15 - @@ -83,8 +83,5 @@ struct trie_value_entry2_f { 16 } _packed_; 17 18 #define hwdb_bin_paths \ ··· 22 - _CONF_PATHS_SPLIT_USR_NULSTR("systemd/hwdb/hwdb.bin") \ 23 - UDEVLIBEXECDIR "/hwdb.bin\0" 24 + "/etc/udev/hwdb.bin\0" 25 - +
··· 5 6 Patch by vcunat. 7 --- 8 + src/libsystemd/sd-hwdb/hwdb-internal.h | 6 +----- 9 + 1 file changed, 1 insertion(+), 5 deletions(-) 10 11 diff --git a/src/libsystemd/sd-hwdb/hwdb-internal.h b/src/libsystemd/sd-hwdb/hwdb-internal.h 12 + index 5302679a62..39e59a527f 100644 13 --- a/src/libsystemd/sd-hwdb/hwdb-internal.h 14 +++ b/src/libsystemd/sd-hwdb/hwdb-internal.h 15 + @@ -83,8 +83,4 @@ struct trie_value_entry2_f { 16 } _packed_; 17 18 #define hwdb_bin_paths \ ··· 22 - _CONF_PATHS_SPLIT_USR_NULSTR("systemd/hwdb/hwdb.bin") \ 23 - UDEVLIBEXECDIR "/hwdb.bin\0" 24 + "/etc/udev/hwdb.bin\0"
+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 <literal>Etc/UTC</literal>. The resulting link should lead to the 36 corresponding binary 37 diff --git a/src/basic/time-util.c b/src/basic/time-util.c 38 - index b700f364ef..116b1cec63 100644 39 --- a/src/basic/time-util.c 40 +++ b/src/basic/time-util.c 41 - @@ -1282,7 +1282,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 42 43 assert(ret); 44 ··· 47 if (!f) 48 return -errno; 49 50 - @@ -1321,7 +1321,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 51 _cleanup_strv_free_ char **zones = NULL; 52 int r; 53 ··· 56 if (!f) 57 return -errno; 58 59 - @@ -1433,7 +1433,7 @@ int verify_timezone(const char *name, int log_level) { 60 if (p - name >= PATH_MAX) 61 return -ENAMETOOLONG; 62 ··· 65 66 fd = open(t, O_RDONLY|O_CLOEXEC); 67 if (fd < 0) 68 - @@ -1491,7 +1491,7 @@ int get_timezone(char **ret) { 69 if (r < 0) 70 return r; /* returns EINVAL if not a symlink */ 71 ··· 88 (void) mkdir_parents(etc_localtime, 0755); 89 r = symlink_atomic(e, etc_localtime); 90 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 91 - index d62c5173ca..84beac064b 100644 92 --- a/src/nspawn/nspawn.c 93 +++ b/src/nspawn/nspawn.c 94 @@ -1915,8 +1915,8 @@ int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid ··· 103 104 static bool etc_writable(void) { 105 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 106 - index ad483301ef..a7f22b1c86 100644 107 --- a/src/timedate/timedated.c 108 +++ b/src/timedate/timedated.c 109 @@ -282,7 +282,7 @@ static int context_read_data(Context *c) {
··· 35 <literal>Etc/UTC</literal>. The resulting link should lead to the 36 corresponding binary 37 diff --git a/src/basic/time-util.c b/src/basic/time-util.c 38 + index 0bea149324..4b16115d43 100644 39 --- a/src/basic/time-util.c 40 +++ b/src/basic/time-util.c 41 + @@ -1283,7 +1283,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 42 43 assert(ret); 44 ··· 47 if (!f) 48 return -errno; 49 50 + @@ -1322,7 +1322,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 51 _cleanup_strv_free_ char **zones = NULL; 52 int r; 53 ··· 56 if (!f) 57 return -errno; 58 59 + @@ -1434,7 +1434,7 @@ int verify_timezone(const char *name, int log_level) { 60 if (p - name >= PATH_MAX) 61 return -ENAMETOOLONG; 62 ··· 65 66 fd = open(t, O_RDONLY|O_CLOEXEC); 67 if (fd < 0) 68 + @@ -1492,7 +1492,7 @@ int get_timezone(char **ret) { 69 if (r < 0) 70 return r; /* returns EINVAL if not a symlink */ 71 ··· 88 (void) mkdir_parents(etc_localtime, 0755); 89 r = symlink_atomic(e, etc_localtime); 90 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 91 + index 65d9e7e398..dd44d529ca 100644 92 --- a/src/nspawn/nspawn.c 93 +++ b/src/nspawn/nspawn.c 94 @@ -1915,8 +1915,8 @@ int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid ··· 103 104 static bool etc_writable(void) { 105 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 106 + index 31ed86955b..8db8d8c288 100644 107 --- a/src/timedate/timedated.c 108 +++ b/src/timedate/timedated.c 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 1 file changed, 3 deletions(-) 9 10 diff --git a/meson.build b/meson.build 11 - index bfc86857d6..84e3e4c1db 100644 12 --- a/meson.build 13 +++ b/meson.build 14 - @@ -4277,9 +4277,6 @@ install_data('LICENSE.GPL2', 15 install_subdir('LICENSES', 16 install_dir : docdir) 17
··· 8 1 file changed, 3 deletions(-) 9 10 diff --git a/meson.build b/meson.build 11 + index b1f5477836..1a39484855 100644 12 --- a/meson.build 13 +++ b/meson.build 14 + @@ -4278,9 +4278,6 @@ install_data('LICENSE.GPL2', 15 install_subdir('LICENSES', 16 install_dir : docdir) 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 1 file changed, 4 insertions(+), 2 deletions(-) 13 14 diff --git a/src/basic/constants.h b/src/basic/constants.h 15 - index 5d68cc6332..a2ccc315e1 100644 16 --- a/src/basic/constants.h 17 +++ b/src/basic/constants.h 18 @@ -73,13 +73,15 @@
··· 12 1 file changed, 4 insertions(+), 2 deletions(-) 13 14 diff --git a/src/basic/constants.h b/src/basic/constants.h 15 + index 5d68cc6332..33c06c1f65 100644 16 --- a/src/basic/constants.h 17 +++ b/src/basic/constants.h 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 1 file changed, 1 insertion(+) 10 11 diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c 12 - index 9c51a3367f..75d6b76a87 100644 13 --- a/src/sleep/sleep.c 14 +++ b/src/sleep/sleep.c 15 - @@ -184,6 +184,7 @@ static int execute( 16 }; 17 static const char* const dirs[] = { 18 SYSTEM_SLEEP_PATH,
··· 9 1 file changed, 1 insertion(+) 10 11 diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c 12 + index 288fa4ae84..07deb19d7c 100644 13 --- a/src/sleep/sleep.c 14 +++ b/src/sleep/sleep.c 15 + @@ -186,6 +186,7 @@ static int execute( 16 }; 17 static const char* const dirs[] = { 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 1 file changed, 8 insertions(+) 17 18 diff --git a/src/core/manager.c b/src/core/manager.c 19 - index 50d092042c..898f9ed2f1 100644 20 --- a/src/core/manager.c 21 +++ b/src/core/manager.c 22 @@ -3714,9 +3714,17 @@ static int build_generator_environment(Manager *m, char ***ret) {
··· 16 1 file changed, 8 insertions(+) 17 18 diff --git a/src/core/manager.c b/src/core/manager.c 19 + index 817acb87b8..3f31359f8a 100644 20 --- a/src/core/manager.c 21 +++ b/src/core/manager.c 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 1 file changed, 4 deletions(-) 18 19 diff --git a/src/core/manager.c b/src/core/manager.c 20 - index 898f9ed2f1..5040d5b105 100644 21 --- a/src/core/manager.c 22 +++ b/src/core/manager.c 23 - @@ -4543,10 +4543,6 @@ char* manager_taint_string(const Manager *m) { 24 if (m->taint_usr) 25 stage[n++] = "split-usr"; 26
··· 17 1 file changed, 4 deletions(-) 18 19 diff --git a/src/core/manager.c b/src/core/manager.c 20 + index 3f31359f8a..0c4ec0b4fb 100644 21 --- a/src/core/manager.c 22 +++ b/src/core/manager.c 23 + @@ -4556,10 +4556,6 @@ char* manager_taint_string(const Manager *m) { 24 if (m->taint_usr) 25 stage[n++] = "split-usr"; 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 1 file changed, 1 insertion(+), 1 deletion(-) 28 29 diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c 30 - index 259f280e0f..142e70a740 100644 31 --- a/src/shared/tpm2-util.c 32 +++ b/src/shared/tpm2-util.c 33 @@ -176,7 +176,7 @@ int tpm2_context_new(const char *device, Tpm2Context **ret_context) {
··· 27 1 file changed, 1 insertion(+), 1 deletion(-) 28 29 diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c 30 + index 4345b95106..424a334df1 100644 31 --- a/src/shared/tpm2-util.c 32 +++ b/src/shared/tpm2-util.c 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 let 145 wantCurl = withRemote || withImportd; 146 wantGcrypt = withResolved || withImportd; 147 - version = "253.2"; 148 149 # Bump this variable on every (major) version change. See below (in the meson options list) for why. 150 # command: ··· 161 owner = "systemd"; 162 repo = "systemd-stable"; 163 rev = "v${version}"; 164 - hash = "sha256-gtJEHLSeJoOSFnutn/+wM27sV9JiV5afsykyUd+XDKQ="; 165 }; 166 167 # On major changes, or when otherwise required, you *must* reformat the patches, ··· 173 ./0001-Start-device-units-for-uninitialised-encrypted-devic.patch 174 ./0002-Don-t-try-to-unmount-nix-or-nix-store.patch 175 ./0003-Fix-NixOS-containers.patch 176 - ./0004-Look-for-fsck-in-the-right-place.patch 177 ./0005-Add-some-NixOS-specific-unit-directories.patch 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 191 ] ++ lib.optional stdenv.hostPlatform.isMusl ( 192 let 193 oe-core = fetchzip {
··· 144 let 145 wantCurl = withRemote || withImportd; 146 wantGcrypt = withResolved || withImportd; 147 + version = "253.3"; 148 149 # Bump this variable on every (major) version change. See below (in the meson options list) for why. 150 # command: ··· 161 owner = "systemd"; 162 repo = "systemd-stable"; 163 rev = "v${version}"; 164 + hash = "sha256-iy1kyqiVeXIhFJAQ+nYorrXm/xb2gfakyrEfMyNR5l8="; 165 }; 166 167 # On major changes, or when otherwise required, you *must* reformat the patches, ··· 173 ./0001-Start-device-units-for-uninitialised-encrypted-devic.patch 174 ./0002-Don-t-try-to-unmount-nix-or-nix-store.patch 175 ./0003-Fix-NixOS-containers.patch 176 + ./0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch 177 ./0005-Add-some-NixOS-specific-unit-directories.patch 178 ./0006-Get-rid-of-a-useless-message-in-user-sessions.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 192 ] ++ lib.optional stdenv.hostPlatform.isMusl ( 193 let 194 oe-core = fetchzip {
+20 -20
pkgs/servers/x11/xorg/default.nix
··· 1805 # THIS IS A GENERATED FILE. DO NOT EDIT! 1806 xcbutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1807 pname = "xcb-util"; 1808 - version = "0.4.0"; 1809 builder = ./builder.sh; 1810 src = fetchurl { 1811 - url = "https://xcb.freedesktop.org/dist/xcb-util-0.4.0.tar.bz2"; 1812 - sha256 = "1sahmrgbpyki4bb72hxym0zvxwnycmswsxiisgqlln9vrdlr9r26"; 1813 }; 1814 hardeningDisable = [ "bindnow" "relro" ]; 1815 strictDeps = true; ··· 1835 }) {}; 1836 1837 # THIS IS A GENERATED FILE. DO NOT EDIT! 1838 - xcbutilerrors = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbproto, xorgproto, m4 }: stdenv.mkDerivation { 1839 pname = "xcb-util-errors"; 1840 - version = "1.0"; 1841 builder = ./builder.sh; 1842 src = fetchurl { 1843 - url = "https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.tar.bz2"; 1844 - sha256 = "158rm913dg3hxrrhyvvxr8bcm0pjy5jws70dhy2s12w1krv829k8"; 1845 }; 1846 hardeningDisable = [ "bindnow" "relro" ]; 1847 strictDeps = true; 1848 - nativeBuildInputs = [ pkg-config m4 ]; 1849 buildInputs = [ gperf libxcb xcbproto xorgproto ]; 1850 meta.platforms = lib.platforms.unix; 1851 }) {}; ··· 1853 # THIS IS A GENERATED FILE. DO NOT EDIT! 1854 xcbutilimage = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbutil, xorgproto, m4 }: stdenv.mkDerivation { 1855 pname = "xcb-util-image"; 1856 - version = "0.4.0"; 1857 builder = ./builder.sh; 1858 src = fetchurl { 1859 - url = "https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.bz2"; 1860 - sha256 = "1z1gxacg7q4cw6jrd26gvi5y04npsyavblcdad1xccc8swvnmf9d"; 1861 }; 1862 hardeningDisable = [ "bindnow" "relro" ]; 1863 strictDeps = true; ··· 1869 # THIS IS A GENERATED FILE. DO NOT EDIT! 1870 xcbutilkeysyms = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1871 pname = "xcb-util-keysyms"; 1872 - version = "0.4.0"; 1873 builder = ./builder.sh; 1874 src = fetchurl { 1875 - url = "https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.0.tar.bz2"; 1876 - sha256 = "1nbd45pzc1wm6v5drr5338j4nicbgxa5hcakvsvm5pnyy47lky0f"; 1877 }; 1878 hardeningDisable = [ "bindnow" "relro" ]; 1879 strictDeps = true; ··· 1885 # THIS IS A GENERATED FILE. DO NOT EDIT! 1886 xcbutilrenderutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1887 pname = "xcb-util-renderutil"; 1888 - version = "0.3.9"; 1889 builder = ./builder.sh; 1890 src = fetchurl { 1891 - url = "https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.9.tar.bz2"; 1892 - sha256 = "0nza1csdvvxbmk8vgv8vpmq7q8h05xrw3cfx9lwxd1hjzd47xsf6"; 1893 }; 1894 hardeningDisable = [ "bindnow" "relro" ]; 1895 strictDeps = true; ··· 1901 # THIS IS A GENERATED FILE. DO NOT EDIT! 1902 xcbutilwm = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1903 pname = "xcb-util-wm"; 1904 - version = "0.4.1"; 1905 builder = ./builder.sh; 1906 src = fetchurl { 1907 - url = "https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.1.tar.bz2"; 1908 - sha256 = "0gra7hfyxajic4mjd63cpqvd20si53j1q3rbdlkqkahfciwq3gr8"; 1909 }; 1910 hardeningDisable = [ "bindnow" "relro" ]; 1911 strictDeps = true;
··· 1805 # THIS IS A GENERATED FILE. DO NOT EDIT! 1806 xcbutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1807 pname = "xcb-util"; 1808 + version = "0.4.1"; 1809 builder = ./builder.sh; 1810 src = fetchurl { 1811 + url = "https://xcb.freedesktop.org/dist/xcb-util-0.4.1.tar.xz"; 1812 + sha256 = "04p54r0zjc44fpw1hdy4rhygv37sx2vr2lllxjihykz5v2xkpgjs"; 1813 }; 1814 hardeningDisable = [ "bindnow" "relro" ]; 1815 strictDeps = true; ··· 1835 }) {}; 1836 1837 # THIS IS A GENERATED FILE. DO NOT EDIT! 1838 + xcbutilerrors = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbproto, xorgproto, m4, python3 }: stdenv.mkDerivation { 1839 pname = "xcb-util-errors"; 1840 + version = "1.0.1"; 1841 builder = ./builder.sh; 1842 src = fetchurl { 1843 + url = "https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.1.tar.xz"; 1844 + sha256 = "0mzkh3xj1n690dw8hrdhyjykd71ib0ls9n5cgf9asna2k1xwha2n"; 1845 }; 1846 hardeningDisable = [ "bindnow" "relro" ]; 1847 strictDeps = true; 1848 + nativeBuildInputs = [ pkg-config m4 python3 ]; 1849 buildInputs = [ gperf libxcb xcbproto xorgproto ]; 1850 meta.platforms = lib.platforms.unix; 1851 }) {}; ··· 1853 # THIS IS A GENERATED FILE. DO NOT EDIT! 1854 xcbutilimage = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xcbutil, xorgproto, m4 }: stdenv.mkDerivation { 1855 pname = "xcb-util-image"; 1856 + version = "0.4.1"; 1857 builder = ./builder.sh; 1858 src = fetchurl { 1859 + url = "https://xcb.freedesktop.org/dist/xcb-util-image-0.4.1.tar.xz"; 1860 + sha256 = "0g8dwknrlz96k176qxh8ar84x9kpppci9b978zyp24nvvbjqxbfc"; 1861 }; 1862 hardeningDisable = [ "bindnow" "relro" ]; 1863 strictDeps = true; ··· 1869 # THIS IS A GENERATED FILE. DO NOT EDIT! 1870 xcbutilkeysyms = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1871 pname = "xcb-util-keysyms"; 1872 + version = "0.4.1"; 1873 builder = ./builder.sh; 1874 src = fetchurl { 1875 + url = "https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.1.tar.xz"; 1876 + sha256 = "0f66snk179hmp8ppgv1zp9y7pl1vzn52znpikm1fsaj1ji90l9kw"; 1877 }; 1878 hardeningDisable = [ "bindnow" "relro" ]; 1879 strictDeps = true; ··· 1885 # THIS IS A GENERATED FILE. DO NOT EDIT! 1886 xcbutilrenderutil = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1887 pname = "xcb-util-renderutil"; 1888 + version = "0.3.10"; 1889 builder = ./builder.sh; 1890 src = fetchurl { 1891 + url = "https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.10.tar.xz"; 1892 + sha256 = "1fh4dnlwlqyccrhmmwlv082a7mxc7ss7vmzmp7xxp39dwbqd859y"; 1893 }; 1894 hardeningDisable = [ "bindnow" "relro" ]; 1895 strictDeps = true; ··· 1901 # THIS IS A GENERATED FILE. DO NOT EDIT! 1902 xcbutilwm = callPackage ({ stdenv, pkg-config, fetchurl, gperf, libxcb, xorgproto, m4 }: stdenv.mkDerivation { 1903 pname = "xcb-util-wm"; 1904 + version = "0.4.2"; 1905 builder = ./builder.sh; 1906 src = fetchurl { 1907 + url = "https://xcb.freedesktop.org/dist/xcb-util-wm-0.4.2.tar.xz"; 1908 + sha256 = "02wai17mxfbvlnj4l4bjbvah97rccdivzvd7mrznhr32s0hlxhv2"; 1909 }; 1910 hardeningDisable = [ "bindnow" "relro" ]; 1911 strictDeps = true;
+6 -6
pkgs/servers/x11/xorg/tarballs.list
··· 1 https://invisible-mirror.net/archives/luit/luit-20190106.tgz 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 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 10 mirror://xorg/individual/app/appres-1.0.5.tar.bz2 11 https://xorg.freedesktop.org/archive/individual/util/bdftopcf-1.1.1.tar.xz 12 mirror://xorg/individual/app/bitmap-1.0.9.tar.gz
··· 1 https://invisible-mirror.net/archives/luit/luit-20190106.tgz 2 https://xcb.freedesktop.org/dist/libpthread-stubs-0.4.tar.bz2 3 + https://xcb.freedesktop.org/dist/xcb-util-0.4.1.tar.xz 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.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 mirror://xorg/individual/app/appres-1.0.5.tar.bz2 11 https://xorg.freedesktop.org/archive/individual/util/bdftopcf-1.1.1.tar.xz 12 mirror://xorg/individual/app/bitmap-1.0.9.tar.gz
+1
pkgs/stdenv/darwin/default.nix
··· 63 unset SDKROOT 64 65 stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" 66 ''; 67 68 bootstrapTools = derivation ({
··· 63 unset SDKROOT 64 65 stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" 66 + stripDebugFlags="-S" # the Darwin "strip" command does something odd with "-p" 67 ''; 68 69 bootstrapTools = derivation ({
+7 -2
pkgs/stdenv/linux/default.nix
··· 322 assert isFromBootstrapFiles prevStage.gcc-unwrapped; 323 assert isFromBootstrapFiles prevStage.coreutils; 324 assert isFromBootstrapFiles prevStage.gnugrep; 325 stageFun prevStage { 326 name = "bootstrap-stage-xgcc"; 327 overrides = final: prev: { 328 - inherit (prevStage) ccWrapperStdenv coreutils gnugrep gettext bison texinfo zlib gnum4 perl; 329 - patchelf = bootstrapTools; 330 ${localSystem.libc} = getLibc prevStage; 331 gmp = prev.gmp.override { cxx = false; }; 332 gcc-unwrapped = ··· 399 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 400 assert isFromBootstrapFiles prevStage.coreutils; 401 assert isFromBootstrapFiles prevStage.gnugrep; 402 stageFun prevStage { 403 name = "bootstrap-stage2"; 404 ··· 484 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 485 assert isFromBootstrapFiles prevStage.coreutils; 486 assert isFromBootstrapFiles prevStage.gnugrep; 487 assert lib.all isBuiltByNixpkgsCompiler (with prevStage; [ gmp isl_0_20 libmpc mpfr ]); 488 stageFun prevStage { 489 name = "bootstrap-stage3"; ··· 524 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 525 assert isFromBootstrapFiles prevStage.coreutils; 526 assert isFromBootstrapFiles prevStage.gnugrep; 527 stageFun prevStage { 528 name = "bootstrap-stage4"; 529 ··· 584 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 585 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 586 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 587 { 588 inherit config overlays; 589 stdenv = import ../generic rec { ··· 673 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 674 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 675 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 676 { inherit (prevStage) config overlays stdenv; }) 677 ]
··· 322 assert isFromBootstrapFiles prevStage.gcc-unwrapped; 323 assert isFromBootstrapFiles prevStage.coreutils; 324 assert isFromBootstrapFiles prevStage.gnugrep; 325 + assert isBuiltByBootstrapFilesCompiler prevStage.patchelf; 326 stageFun prevStage { 327 name = "bootstrap-stage-xgcc"; 328 overrides = final: prev: { 329 + inherit (prevStage) ccWrapperStdenv coreutils gnugrep gettext bison texinfo zlib gnum4 perl patchelf; 330 ${localSystem.libc} = getLibc prevStage; 331 gmp = prev.gmp.override { cxx = false; }; 332 gcc-unwrapped = ··· 399 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 400 assert isFromBootstrapFiles prevStage.coreutils; 401 assert isFromBootstrapFiles prevStage.gnugrep; 402 + assert isBuiltByBootstrapFilesCompiler prevStage.patchelf; 403 stageFun prevStage { 404 name = "bootstrap-stage2"; 405 ··· 485 assert isBuiltByBootstrapFilesCompiler prevStage.gcc-unwrapped; 486 assert isFromBootstrapFiles prevStage.coreutils; 487 assert isFromBootstrapFiles prevStage.gnugrep; 488 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 489 assert lib.all isBuiltByNixpkgsCompiler (with prevStage; [ gmp isl_0_20 libmpc mpfr ]); 490 stageFun prevStage { 491 name = "bootstrap-stage3"; ··· 526 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 527 assert isFromBootstrapFiles prevStage.coreutils; 528 assert isFromBootstrapFiles prevStage.gnugrep; 529 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 530 stageFun prevStage { 531 name = "bootstrap-stage4"; 532 ··· 587 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 588 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 589 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 590 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 591 { 592 inherit config overlays; 593 stdenv = import ../generic rec { ··· 677 assert isBuiltByNixpkgsCompiler prevStage.gcc-unwrapped; 678 assert isBuiltByNixpkgsCompiler prevStage.coreutils; 679 assert isBuiltByNixpkgsCompiler prevStage.gnugrep; 680 + assert isBuiltByNixpkgsCompiler prevStage.patchelf; 681 { inherit (prevStage) config overlays stdenv; }) 682 ]
+3 -25
pkgs/tools/admin/awscli2/default.nix
··· 11 let 12 py = python3 // { 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 - }); 34 }); 35 }; 36 37 in 38 with py.pkgs; buildPythonApplication rec { 39 pname = "awscli2"; 40 - version = "2.11.6"; # N.B: if you change this, check if overrides are still up-to-date 41 format = "pyproject"; 42 43 src = fetchFromGitHub { 44 owner = "aws"; 45 repo = "aws-cli"; 46 rev = version; 47 - hash = "sha256-6VEDGakOx2LJcDbBKicxxfOt0t2tf2iaRXkx1Em0Ieg="; 48 }; 49 50 postPatch = '' 51 substituteInPlace requirements/bootstrap.txt \ 52 --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 ''; 57 58 nativeBuildInputs = [
··· 11 let 12 py = python3 // { 13 pkgs = python3.pkgs.overrideScope (self: super: { 14 + # nothing right now 15 }); 16 }; 17 18 in 19 with py.pkgs; buildPythonApplication rec { 20 pname = "awscli2"; 21 + version = "2.11.15"; # N.B: if you change this, check if overrides are still up-to-date 22 format = "pyproject"; 23 24 src = fetchFromGitHub { 25 owner = "aws"; 26 repo = "aws-cli"; 27 rev = version; 28 + hash = "sha256-2FE5PJxdTqSrAIgkaZPf91B6bI6Bj9tbJjXg2nAaLdo="; 29 }; 30 31 postPatch = '' 32 substituteInPlace requirements/bootstrap.txt \ 33 --replace "pip>=22.0.0,<23.0.0" "pip>=22.0.0,<24.0.0" 34 ''; 35 36 nativeBuildInputs = [
+2 -1
pkgs/tools/backup/grab-site/default.nix
··· 5 packageOverrides = self: super: { 6 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 7 version = "1.3.24"; 8 - src = oldAttrs.src.override { 9 inherit version; 10 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 11 };
··· 5 packageOverrides = self: super: { 6 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 7 version = "1.3.24"; 8 + src = super.fetchPypi { 9 + inherit (oldAttrs) pname; 10 inherit version; 11 hash = "sha256-67t3fL+TEjWbiXv4G6ANrg9ctp+6KhgmXcwYpvXvdRk="; 12 };
+2 -2
pkgs/tools/compression/zstd/default.nix
··· 21 22 stdenv.mkDerivation rec { 23 pname = "zstd"; 24 - version = "1.5.4"; 25 26 src = fetchFromGitHub { 27 owner = "facebook"; 28 repo = "zstd"; 29 rev = "v${version}"; 30 - sha256 = "sha256-2blY4hY4eEcxY8K9bIhYPbfb//rt/+J2TmvxABPG78A="; 31 }; 32 33 nativeBuildInputs = [ cmake ]
··· 21 22 stdenv.mkDerivation rec { 23 pname = "zstd"; 24 + version = "1.5.5"; 25 26 src = fetchFromGitHub { 27 owner = "facebook"; 28 repo = "zstd"; 29 rev = "v${version}"; 30 + sha256 = "sha256-tHHHIsQU7vJySrVhJuMKUSq11MzkmC+Pcsj00uFJdnQ="; 31 }; 32 33 nativeBuildInputs = [ cmake ]
+32 -30
pkgs/tools/filesystems/squashfs/4k-align.patch
··· 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. 5 6 - From 7bda7c75748f36b0a50f93e46144d5a4de4974ad Mon Sep 17 00:00:00 2001 7 From: Amin Hassani <ahassani@google.com> 8 Date: Thu, 15 Dec 2016 10:43:15 -0800 9 Subject: [PATCH] mksquashfs 4K aligns the files inside the squashfs image ··· 21 22 The 4k alignment can be enabled by flag '-4k-align' 23 --- 24 - squashfs-tools/mksquashfs.c | 17 +++++++++++++++++ 25 - 1 file changed, 17 insertions(+) 26 27 diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c 28 - index aaa4b00..eb2fb23 100644 29 --- a/squashfs-tools/mksquashfs.c 30 +++ 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; 35 +int do_4k_align = FALSE; 36 +#define ALIGN_UP(bytes, size) (bytes = (bytes + size - 1) & ~(size - 1)) 37 38 - long long global_uid = -1, global_gid = -1; 39 - 40 - @@ -1553,6 +1555,9 @@ static void unlock_fragments() 41 * queue at this time. 42 */ 43 while(!queue_empty(locked_fragment)) { ··· 47 write_buffer = queue_get(locked_fragment); 48 frg = write_buffer->block; 49 size = SQUASHFS_COMPRESSED_SIZE_BLOCK(fragment_table[frg].size); 50 - @@ -2460,6 +2465,9 @@ static void *frag_deflator(void *arg) 51 write_buffer->size = compressed_size; 52 pthread_mutex_lock(&fragment_mutex); 53 if(fragments_locked == FALSE) { ··· 57 fragment_table[file_buffer->block].size = c_byte; 58 fragment_table[file_buffer->block].start_block = bytes; 59 write_buffer->block = bytes; 60 - @@ -2850,6 +2858,10 @@ static struct file_info *write_file_blocks(int *status, struct dir_ent *dir_ent, 61 struct file_info *file; 62 int bl_hash = 0; 63 ··· 68 if(pre_duplicate(read_size, dir_ent->inode, read_buffer, &bl_hash)) 69 return write_file_blocks_dup(status, dir_ent, read_buffer, dup, bl_hash); 70 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"); 75 + 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() 80 "compressed", no_fragments ? "no" : noF ? "uncompressed" : 81 "compressed", no_xattrs ? "no" : noX ? "uncompressed" : 82 "compressed", noI || noId ? "uncompressed" : "compressed"); ··· 84 printf("\tduplicates are %sremoved\n", duplicate_checking ? "" : 85 "not "); 86 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 - + 92 + } else if(strcmp(argv[i], "-4k-align") == 0) { 93 + do_4k_align = TRUE; 94 } else { 95 ERROR("%s: invalid option\n\n", argv[0]); 96 print_options(stderr, argv[0], total_mem); 97 -- 98 - 2.32.0
··· 1 This patch is an old patch; see below for the original message body. The patch 2 + has been updated several times to be compatible with new releases. 3 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 9 From: Amin Hassani <ahassani@google.com> 10 Date: Thu, 15 Dec 2016 10:43:15 -0800 11 Subject: [PATCH] mksquashfs 4K aligns the files inside the squashfs image ··· 23 24 The 4k alignment can be enabled by flag '-4k-align' 25 --- 26 + squashfs-tools/mksquashfs.c | 16 ++++++++++++++++ 27 + 1 file changed, 16 insertions(+) 28 29 diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c 30 + index 3429aac..db164c2 100644 31 --- a/squashfs-tools/mksquashfs.c 32 +++ b/squashfs-tools/mksquashfs.c 33 + @@ -82,6 +82,8 @@ int noI = FALSE; 34 + int noId = FALSE; 35 + int noD = FALSE; 36 + int noX = FALSE; 37 +int do_4k_align = FALSE; 38 +#define ALIGN_UP(bytes, size) (bytes = (bytes + size - 1) & ~(size - 1)) 39 40 + /* block size used to build filesystem */ 41 + int block_size = SQUASHFS_FILE_SIZE; 42 + @@ -1624,6 +1626,9 @@ static void unlock_fragments() 43 * queue at this time. 44 */ 45 while(!queue_empty(locked_fragment)) { ··· 49 write_buffer = queue_get(locked_fragment); 50 frg = write_buffer->block; 51 size = SQUASHFS_COMPRESSED_SIZE_BLOCK(fragment_table[frg].size); 52 + @@ -2627,6 +2632,9 @@ static void *frag_deflator(void *arg) 53 write_buffer->size = compressed_size; 54 pthread_mutex_lock(&fragment_mutex); 55 if(fragments_locked == FALSE) { ··· 59 fragment_table[file_buffer->block].size = c_byte; 60 fragment_table[file_buffer->block].start_block = bytes; 61 write_buffer->block = bytes; 62 + @@ -3021,6 +3029,10 @@ static struct file_info *write_file_blocks(int *status, struct dir_ent *dir_ent, 63 struct file_info *file; 64 int bl_hash = 0; 65 ··· 70 if(pre_duplicate(read_size, dir_ent->inode, read_buffer, &bl_hash)) 71 return write_file_blocks_dup(status, dir_ent, read_buffer, dup, bl_hash); 72 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"); 77 + fprintf(stream, "-4k-align\t\tenables 4k alignment of all files\n"); 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() 82 "compressed", no_fragments ? "no" : noF ? "uncompressed" : 83 "compressed", no_xattrs ? "no" : noX ? "uncompressed" : 84 "compressed", noI || noId ? "uncompressed" : "compressed"); ··· 86 printf("\tduplicates are %sremoved\n", duplicate_checking ? "" : 87 "not "); 88 printf("Filesystem size %.2f Kbytes (%.2f Mbytes)\n", bytes / 1024.0, 89 + @@ -8417,6 +8431,8 @@ print_compressor_options: 90 + } else if(strcmp(argv[i], "-comp") == 0) { 91 + /* parsed previously */ 92 + i++; 93 + } else if(strcmp(argv[i], "-4k-align") == 0) { 94 + do_4k_align = TRUE; 95 } else { 96 ERROR("%s: invalid option\n\n", argv[0]); 97 print_options(stderr, argv[0], total_mem); 98 -- 99 + 2.39.2 100 +
+2 -7
pkgs/tools/filesystems/squashfs/default.nix
··· 14 15 stdenv.mkDerivation rec { 16 pname = "squashfs"; 17 - version = "4.5.1"; 18 19 src = fetchFromGitHub { 20 owner = "plougher"; 21 repo = "squashfs-tools"; 22 rev = version; 23 - sha256 = "sha256-Y3ZPjeE9HN1F+NtGe6EchYziWrTPVQ4SuKaCvNbXMKI="; 24 }; 25 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 # This patch adds an option to pad filesystems (increasing size) in 33 # exchange for better chunking / binary diff calculation. 34 ./4k-align.patch
··· 14 15 stdenv.mkDerivation rec { 16 pname = "squashfs"; 17 + version = "4.6.1"; 18 19 src = fetchFromGitHub { 20 owner = "plougher"; 21 repo = "squashfs-tools"; 22 rev = version; 23 + hash = "sha256-C/awQpp1Q/0adx3YVNTq6ruEAzcjL5G7SkOCgpvAA50="; 24 }; 25 26 patches = [ 27 # This patch adds an option to pad filesystems (increasing size) in 28 # exchange for better chunking / binary diff calculation. 29 ./4k-align.patch
+5 -1
pkgs/tools/graphics/vulkan-cts/default.nix
··· 18 , vulkan-loader 19 , wayland 20 , wayland-protocols 21 , zlib 22 }: 23 let ··· 126 ninja 127 pkg-config 128 python3 129 ]; 130 131 - # Fix cts cmake not coping with absolute install dirs 132 cmakeFlags = [ 133 "-DCMAKE_INSTALL_BINDIR=bin" 134 "-DCMAKE_INSTALL_LIBDIR=lib" 135 "-DCMAKE_INSTALL_INCLUDEDIR=include" 136 ]; 137 138 postInstall = ''
··· 18 , vulkan-loader 19 , wayland 20 , wayland-protocols 21 + , wayland-scanner 22 , zlib 23 }: 24 let ··· 127 ninja 128 pkg-config 129 python3 130 + wayland-scanner 131 ]; 132 133 cmakeFlags = [ 134 + # Fix cts cmake not coping with absolute install dirs 135 "-DCMAKE_INSTALL_BINDIR=bin" 136 "-DCMAKE_INSTALL_LIBDIR=lib" 137 "-DCMAKE_INSTALL_INCLUDEDIR=include" 138 + 139 + "-DWAYLAND_SCANNER=wayland-scanner" 140 ]; 141 142 postInstall = ''
+2 -15
pkgs/tools/misc/fontforge/default.nix
··· 14 15 stdenv.mkDerivation rec { 16 pname = "fontforge"; 17 - version = "20220308"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = version; 23 - sha256 = "sha256-q+71PDPODl5fEEy3d1icRl+rBGY7AhH+2dMUKeBWGgI="; 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 39 # use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps 40 postPatch = ''
··· 14 15 stdenv.mkDerivation rec { 16 pname = "fontforge"; 17 + version = "20230101"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = version; 23 + sha256 = "sha256-/RYhvL+Z4n4hJ8dmm+jbA1Ful23ni2DbCRZC5A3+pP0="; 24 }; 25 26 # use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps 27 postPatch = ''
+18 -3
pkgs/tools/misc/hdf5/default.nix
··· 91 moveToOutput 'bin/h5pcc' "''${!outputDev}" 92 ''; 93 94 passthru.tests = { 95 inherit (python3.pkgs) h5py; 96 }; 97 98 - meta = { 99 description = "Data model, library, and file format for storing and managing data"; 100 longDescription = '' 101 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient ··· 103 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 104 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 105 ''; 106 - license = lib.licenses.bsd3; # Lawrence Berkeley National Labs BSD 3-Clause variant 107 homepage = "https://www.hdfgroup.org/HDF5/"; 108 - platforms = lib.platforms.unix; 109 }; 110 }
··· 91 moveToOutput 'bin/h5pcc' "''${!outputDev}" 92 ''; 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 + 108 passthru.tests = { 109 inherit (python3.pkgs) h5py; 110 }; 111 112 + meta = with lib; { 113 description = "Data model, library, and file format for storing and managing data"; 114 longDescription = '' 115 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient ··· 117 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 118 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 119 ''; 120 + license = licenses.bsd3; # Lawrence Berkeley National Labs BSD 3-Clause variant 121 + maintainers = [ maintainers.markuskowa ]; 122 homepage = "https://www.hdfgroup.org/HDF5/"; 123 + platforms = platforms.unix; 124 }; 125 }
+2 -2
pkgs/tools/networking/tcpdump/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "tcpdump"; 5 - version = "4.99.3"; 6 7 src = fetchurl { 8 url = "http://www.tcpdump.org/release/tcpdump-${version}.tar.gz"; 9 - sha256 = "sha256-rXWm7T3A2XMpRbLlSDy0Hci0tSihaTFeSZxoYZUuc7M="; 10 }; 11 12 postPatch = ''
··· 2 3 stdenv.mkDerivation rec { 4 pname = "tcpdump"; 5 + version = "4.99.4"; 6 7 src = fetchurl { 8 url = "http://www.tcpdump.org/release/tcpdump-${version}.tar.gz"; 9 + hash = "sha256-AjIjG7LynWvyQm5woIp+DGOg1ZqbRIY7f14jV6bkn+o="; 10 }; 11 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 7 , withPcsc ? !enableMinimal, pcsclite 8 , withTpm2Tss ? !stdenv.isDarwin && !enableMinimal, tpm2-tss 9 }: 10 ··· 16 17 src = fetchurl { 18 url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2"; 19 - sha256 = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM="; 20 }; 21 22 depsBuildBuild = [ buildPackages.stdenv.cc ]; 23 nativeBuildInputs = [ pkg-config texinfo ]; 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); 29 30 patches = [ 31 ./fix-libusb-include-path.patch 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 ./accept-subkeys-with-a-good-revocation-but-no-self-sig.patch 36 - 37 # Patch for DoS vuln from https://seclists.org/oss-sec/2022/q3/27 38 ./v3-0001-Disallow-compressed-signatures-and-certificates.patch 39 - 40 ]; 41 postPatch = '' 42 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 - ''; 46 47 - pinentryBinaryPath = pinentry.binaryPath or "bin/pinentry"; 48 configureFlags = [ 49 "--with-libgpg-error-prefix=${libgpg-error.dev}" 50 "--with-libgcrypt-prefix=${libgcrypt.dev}" 51 "--with-libassuan-prefix=${libassuan.dev}" 52 "--with-ksba-prefix=${libksba.dev}" 53 "--with-npth-prefix=${npth}" 54 - ] ++ lib.optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentryBinaryPath}" 55 ++ lib.optional withTpm2Tss "--with-tss=intel" 56 ++ lib.optional stdenv.isDarwin "--disable-ccid-driver"; 57 postInstall = if enableMinimal 58 then '' 59 rm -r $out/{libexec,sbin,share} ··· 76 if [[ "$(basename $f)" == "gpg-wks-client" ]]; then continue; fi 77 ln -s $f $out/bin/$(basename $f) 78 done 79 ''; 80 81 enableParallelBuilding = true; 82 83 - passthru.tests.connman = nixosTests.gnupg; 84 85 meta = with lib; { 86 homepage = "https://gnupg.org";
··· 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 , withTpm2Tss ? !stdenv.isDarwin && !enableMinimal, tpm2-tss 9 }: 10 ··· 16 17 src = fetchurl { 18 url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2"; 19 + hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM="; 20 }; 21 22 depsBuildBuild = [ buildPackages.stdenv.cc ]; 23 nativeBuildInputs = [ pkg-config texinfo ]; 24 buildInputs = [ 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 30 patches = [ 31 ./fix-libusb-include-path.patch 32 ./tests-add-test-cases-for-import-without-uid.patch 33 ./accept-subkeys-with-a-good-revocation-but-no-self-sig.patch 34 + ./24-allow-import-of-previously-known-keys-even-without-UI.patch 35 # Patch for DoS vuln from https://seclists.org/oss-sec/2022/q3/27 36 ./v3-0001-Disallow-compressed-signatures-and-certificates.patch 37 ]; 38 + 39 postPatch = '' 40 sed -i 's,\(hkps\|https\)://keyserver.ubuntu.com,hkps://keys.openpgp.org,g' configure configure.ac doc/dirmngr.texi doc/gnupg.info-1 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 + "--sysconfdir=/etc" 47 "--with-libgpg-error-prefix=${libgpg-error.dev}" 48 "--with-libgcrypt-prefix=${libgcrypt.dev}" 49 "--with-libassuan-prefix=${libassuan.dev}" 50 "--with-ksba-prefix=${libksba.dev}" 51 "--with-npth-prefix=${npth}" 52 + ] 53 + ++ lib.optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentry.binaryPath or "bin/pinentry"}" 54 ++ lib.optional withTpm2Tss "--with-tss=intel" 55 ++ lib.optional stdenv.isDarwin "--disable-ccid-driver"; 56 + 57 postInstall = if enableMinimal 58 then '' 59 rm -r $out/{libexec,sbin,share} ··· 76 if [[ "$(basename $f)" == "gpg-wks-client" ]]; then continue; fi 77 ln -s $f $out/bin/$(basename $f) 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 84 ''; 85 86 enableParallelBuilding = true; 87 88 + passthru.tests.connman = lib.nixosTests.gnupg; 89 90 meta = with lib; { 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 g10/import.c | 44 +++++++++++--------------------------------- 17 1 file changed, 11 insertions(+), 33 deletions(-) 18 19 diff --git a/g10/import.c b/g10/import.c 20 - index 5d3162c..f9acf95 100644 21 --- a/g10/import.c 22 +++ b/g10/import.c 23 - @@ -1788,7 +1788,6 @@ import_one_real (ctrl_t ctrl, 24 size_t an; 25 char pkstrbuf[PUBKEY_STRING_SIZE]; 26 int merge_keys_done = 0; ··· 28 KEYDB_HANDLE hd = NULL; 29 30 if (r_valid) 31 - @@ -1825,14 +1824,6 @@ import_one_real (ctrl_t ctrl, 32 - log_printf ("\n"); 33 } 34 35 - - 36 - - if (!uidnode) 37 - { 38 - if (!silent) 39 - log_error( _("key %s: no user ID\n"), keystr_from_pk(pk)); ··· 43 if (screener && screener (keyblock, screener_arg)) 44 { 45 log_error (_("key %s: %s\n"), keystr_from_pk (pk), 46 - @@ -1907,18 +1898,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)) 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++; ··· 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); 66 67 /* Get rid of deleted nodes. */ 68 commit_kbnode (&keyblock); 69 - @@ -1927,24 +1911,11 @@ import_one_real (ctrl_t ctrl, 70 { 71 apply_keep_uid_filter (ctrl, keyblock, import_filter.keep_uid); 72 commit_kbnode (&keyblock); ··· 91 } 92 93 /* The keyblock is valid and ready for real import. */ 94 - @@ -2002,6 +1973,13 @@ import_one_real (ctrl_t ctrl, 95 err = 0; 96 stats->skipped_new_keys++; 97 }
··· 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 cd3363fc7..8f10771db 100644 22 --- a/g10/import.c 23 +++ b/g10/import.c 24 + @@ -1858,7 +1858,6 @@ import_one_real (ctrl_t ctrl, 25 size_t an; 26 char pkstrbuf[PUBKEY_STRING_SIZE]; 27 int merge_keys_done = 0; ··· 29 KEYDB_HANDLE hd = NULL; 30 31 if (r_valid) 32 + @@ -1896,13 +1895,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)); ··· 43 if (screener && screener (keyblock, screener_arg)) 44 { 45 log_error (_("key %s: %s\n"), keystr_from_pk (pk), 46 + @@ -1977,18 +1969,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++; ··· 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 + @@ -1998,24 +1982,11 @@ import_one_real (ctrl_t ctrl, 70 { 71 apply_keep_uid_filter (ctrl, keyblock, import_filter.keep_uid); 72 commit_kbnode (&keyblock); ··· 91 } 92 93 /* The keyblock is valid and ready for real import. */ 94 + @@ -2073,6 +2044,13 @@ import_one_real (ctrl_t ctrl, 95 err = 0; 96 stats->skipped_new_keys++; 97 }
+36 -6
pkgs/tools/typesetting/tex/texlive/bin.nix
··· 38 # http://mirrors.ctan.org/systems/doc/kpathsea/kpathsea.pdf for more 39 # details 40 sed -i '/^#define ST_NLINK_TRICK/d' texk/kpathsea/config.h 41 - ''; 42 43 configureFlags = [ 44 "--with-banner-add=/nixos.org" ··· 75 76 inherit (common) src prePatch; 77 78 - outputs = [ "out" "doc" ]; 79 80 nativeBuildInputs = [ 81 pkg-config 82 - ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 83 # configure: error: tangle was not found but is required when cross-compiling. 84 texlive.bin.core 85 ]; 86 87 buildInputs = [ ··· 159 mv "$out"/share/{man,info} "$doc"/doc 160 '' + /* remove manpages for utils that live in texlive.texlive-scripts to avoid a conflict in buildEnv */ '' 161 (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}) 162 '' + cleanBrokenLinks; 163 164 setupHook = ./setup-hook.sh; # TODO: maybe texmf-nix -> texmf (and all references) ··· 195 196 hardeningDisable = [ "format" ]; 197 198 - inherit (core) nativeBuildInputs; 199 buildInputs = core.buildInputs ++ [ core cairo harfbuzz icu graphite2 libX11 ]; 200 201 configureFlags = common.configureFlags ··· 210 # we use static libtexlua, because it's only used by a single binary 211 postConfigure = let 212 luajit = lib.optionalString withLuaJIT ",luajit"; 213 - in '' 214 mkdir ./WorkDir && cd ./WorkDir 215 for path in libs/{pplib,teckit,lua53${luajit}} texk/web2c; do 216 ( ··· 219 else 220 extraConfig="" 221 fi 222 - 223 mkdir -p "$path" && cd "$path" 224 "../../../$path/configure" $configureFlags $extraConfig 225
··· 38 # http://mirrors.ctan.org/systems/doc/kpathsea/kpathsea.pdf for more 39 # details 40 sed -i '/^#define ST_NLINK_TRICK/d' texk/kpathsea/config.h 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 + ; 48 49 configureFlags = [ 50 "--with-banner-add=/nixos.org" ··· 81 82 inherit (common) src prePatch; 83 84 + outputs = [ "out" "doc" "dev" ]; 85 86 nativeBuildInputs = [ 87 pkg-config 88 + ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 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 91 texlive.bin.core 92 + texlive.bin.core.dev 93 ]; 94 95 buildInputs = [ ··· 167 mv "$out"/share/{man,info} "$doc"/doc 168 '' + /* remove manpages for utils that live in texlive.texlive-scripts to avoid a conflict in buildEnv */ '' 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 173 '' + cleanBrokenLinks; 174 175 setupHook = ./setup-hook.sh; # TODO: maybe texmf-nix -> texmf (and all references) ··· 206 207 hardeningDisable = [ "format" ]; 208 209 + inherit (core) nativeBuildInputs depsBuildBuild; 210 buildInputs = core.buildInputs ++ [ core cairo harfbuzz icu graphite2 libX11 ]; 211 212 configureFlags = common.configureFlags ··· 221 # we use static libtexlua, because it's only used by a single binary 222 postConfigure = let 223 luajit = lib.optionalString withLuaJIT ",luajit"; 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 + '' 233 mkdir ./WorkDir && cd ./WorkDir 234 for path in libs/{pplib,teckit,lua53${luajit}} texk/web2c; do 235 ( ··· 238 else 239 extraConfig="" 240 fi 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 + '' 253 mkdir -p "$path" && cd "$path" 254 "../../../$path/configure" $configureFlags $extraConfig 255
+42 -48
pkgs/top-level/all-packages.nix
··· 5882 enableExtraPlugins = true; 5883 }; 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 - }; 5892 5893 asciidoctor-with-extensions = callPackage ../tools/typesetting/asciidoctor-with-extensions { }; 5894 ··· 7920 gnupg1orig = callPackage ../tools/security/gnupg/1.nix { }; 7921 gnupg1compat = callPackage ../tools/security/gnupg/1compat.nix { }; 7922 gnupg1 = gnupg1compat; # use config.packageOverrides if you prefer original gnupg1 7923 gnupg24 = callPackage ../tools/security/gnupg/24.nix { 7924 - guiSupport = stdenv.isDarwin; 7925 pinentry = if stdenv.isDarwin then pinentry_mac else pinentry-gtk2; 7926 }; 7927 gnupg = gnupg24; ··· 8445 hostess = callPackage ../development/tools/hostess { }; 8446 8447 hostname-debian = callPackage ../tools/networking/hostname-debian { }; 8448 8449 hotpatch = callPackage ../development/libraries/hotpatch { }; 8450 ··· 13980 13981 xxv = callPackage ../tools/misc/xxv { }; 13982 13983 - xvfb-run = callPackage ../tools/misc/xvfb-run { inherit (texFunctions) fontsConf; }; 13984 13985 xvkbd = callPackage ../tools/X11/xvkbd { }; 13986 ··· 14943 profiledCompiler = false; 14944 }); 14945 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 gfortran48 = wrapCC (gcc48.cc.override { 14956 name = "gfortran"; 14957 langFortran = true; ··· 15433 julia_16-bin = callPackage ../development/compilers/julia/1.6-bin.nix { }; 15434 julia_18-bin = callPackage ../development/compilers/julia/1.8-bin.nix { }; 15435 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 - }; 15442 15443 julia-lts-bin = julia_16-bin; 15444 julia-stable-bin = julia_18-bin; ··· 15637 llvmPackages_latest = llvmPackages_14; 15638 15639 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 lorri = callPackage ../tools/misc/lorri { 15645 inherit (darwin.apple_sdk.frameworks) CoreServices Security; ··· 17078 ruby_3_1 17079 ruby_3_2; 17080 17081 - ruby = ruby_2_7; 17082 - rubyPackages = rubyPackages_2_7; 17083 17084 rubyPackages_2_7 = recurseIntoAttrs ruby_2_7.gems; 17085 rubyPackages_3_0 = recurseIntoAttrs ruby_3_0.gems; ··· 21631 21632 libgcrypt = callPackage ../development/libraries/libgcrypt { }; 21633 21634 - libgcrypt_1_5 = callPackage ../development/libraries/libgcrypt/1.5.nix { }; 21635 21636 libgdiplus = callPackage ../development/libraries/libgdiplus { 21637 inherit (darwin.apple_sdk.frameworks) Carbon; ··· 22659 # Default libGLU 22660 libGLU = mesa_glu; 22661 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 { 22666 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22667 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 22668 }; 22669 - mesa_23_0_1 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.1.nix { 22670 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22671 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 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; 22683 22684 mesa_glu = callPackage ../development/libraries/mesa-glu { 22685 inherit (darwin.apple_sdk.frameworks) ApplicationServices; ··· 24711 pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.3.0"; }; 24712 faslExt = "fasl"; 24713 }; 24714 - sbcl = sbcl_2_3_0; 24715 24716 sbclPackages = recurseIntoAttrs sbcl.pkgs; 24717 ··· 27352 withHomed = false; 27353 withHwdb = false; 27354 withImportd = false; 27355 - withKmod = false; 27356 withLibBPF = false; 27357 withLibidn2 = false; 27358 withLocaled = false; ··· 30070 flwrap = callPackage ../applications/radio/flwrap { stdenv = gcc10StdenvCompat; }; 30071 30072 fluidsynth = callPackage ../applications/audio/fluidsynth { 30073 - inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices; 30074 }; 30075 30076 fmit = libsForQt5.callPackage ../applications/audio/fmit { };
··· 5882 enableExtraPlugins = true; 5883 }; 5884 5885 + asciidoctor = callPackage ../tools/typesetting/asciidoctor { }; 5886 5887 asciidoctor-with-extensions = callPackage ../tools/typesetting/asciidoctor-with-extensions { }; 5888 ··· 7914 gnupg1orig = callPackage ../tools/security/gnupg/1.nix { }; 7915 gnupg1compat = callPackage ../tools/security/gnupg/1compat.nix { }; 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 gnupg24 = callPackage ../tools/security/gnupg/24.nix { 7924 pinentry = if stdenv.isDarwin then pinentry_mac else pinentry-gtk2; 7925 }; 7926 gnupg = gnupg24; ··· 8444 hostess = callPackage ../development/tools/hostess { }; 8445 8446 hostname-debian = callPackage ../tools/networking/hostname-debian { }; 8447 + 8448 + hotdoc = python3Packages.callPackage ../development/tools/hotdoc { }; 8449 8450 hotpatch = callPackage ../development/libraries/hotpatch { }; 8451 ··· 13981 13982 xxv = callPackage ../tools/misc/xxv { }; 13983 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 + }; 14001 14002 xvkbd = callPackage ../tools/X11/xvkbd { }; 14003 ··· 14960 profiledCompiler = false; 14961 }); 14962 14963 gfortran48 = wrapCC (gcc48.cc.override { 14964 name = "gfortran"; 14965 langFortran = true; ··· 15441 julia_16-bin = callPackage ../development/compilers/julia/1.6-bin.nix { }; 15442 julia_18-bin = callPackage ../development/compilers/julia/1.8-bin.nix { }; 15443 15444 + julia_18 = callPackage ../development/compilers/julia/1.8.nix { }; 15445 + julia_19 = callPackage ../development/compilers/julia/1.9.nix { }; 15446 15447 julia-lts-bin = julia_16-bin; 15448 julia-stable-bin = julia_18-bin; ··· 15641 llvmPackages_latest = llvmPackages_14; 15642 15643 llvmPackages_rocm = recurseIntoAttrs (callPackage ../development/compilers/llvm/rocm { }); 15644 15645 lorri = callPackage ../tools/misc/lorri { 15646 inherit (darwin.apple_sdk.frameworks) CoreServices Security; ··· 17079 ruby_3_1 17080 ruby_3_2; 17081 17082 + ruby = ruby_3_1; 17083 + rubyPackages = rubyPackages_3_1; 17084 17085 rubyPackages_2_7 = recurseIntoAttrs ruby_2_7.gems; 17086 rubyPackages_3_0 = recurseIntoAttrs ruby_3_0.gems; ··· 21632 21633 libgcrypt = callPackage ../development/libraries/libgcrypt { }; 21634 21635 + libgcrypt_1_8 = callPackage ../development/libraries/libgcrypt/1.8.nix { }; 21636 21637 libgdiplus = callPackage ../development/libraries/libgdiplus { 21638 inherit (darwin.apple_sdk.frameworks) Carbon; ··· 22660 # Default libGLU 22661 libGLU = mesa_glu; 22662 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 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22667 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 22668 }; 22669 + mesa_23_0 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.nix { 22670 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; 22671 inherit (darwin.apple_sdk_11_0.libs) Xplugin; 22672 }; 22673 + mesa = if stdenv.isDarwin then mesa_22_3 else mesa_23_0; 22674 22675 mesa_glu = callPackage ../development/libraries/mesa-glu { 22676 inherit (darwin.apple_sdk.frameworks) ApplicationServices; ··· 24702 pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.3.0"; }; 24703 faslExt = "fasl"; 24704 }; 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; 24710 24711 sbclPackages = recurseIntoAttrs sbcl.pkgs; 24712 ··· 27347 withHomed = false; 27348 withHwdb = false; 27349 withImportd = false; 27350 withLibBPF = false; 27351 withLibidn2 = false; 27352 withLocaled = false; ··· 30064 flwrap = callPackage ../applications/radio/flwrap { stdenv = gcc10StdenvCompat; }; 30065 30066 fluidsynth = callPackage ../applications/audio/fluidsynth { 30067 + inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreAudio CoreMIDI CoreServices; 30068 }; 30069 30070 fmit = libsForQt5.callPackage ../applications/audio/fmit { };
+4
pkgs/top-level/python-packages.nix
··· 2328 2329 dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { }; 2330 2331 dbus-fast = callPackage ../development/python-modules/dbus-fast { }; 2332 2333 dbus-next = callPackage ../development/python-modules/dbus-next { }; ··· 12687 wheel-filename = callPackage ../development/python-modules/wheel-filename { }; 12688 12689 wheel-inspect = callPackage ../development/python-modules/wheel-inspect { }; 12690 12691 whichcraft = callPackage ../development/python-modules/whichcraft { }; 12692
··· 2328 2329 dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { }; 2330 2331 + dbus-deviation = callPackage ../development/python-modules/dbus-deviation { }; 2332 + 2333 dbus-fast = callPackage ../development/python-modules/dbus-fast { }; 2334 2335 dbus-next = callPackage ../development/python-modules/dbus-next { }; ··· 12689 wheel-filename = callPackage ../development/python-modules/wheel-filename { }; 12690 12691 wheel-inspect = callPackage ../development/python-modules/wheel-inspect { }; 12692 + 12693 + wheezy-template = callPackage ../development/python-modules/wheezy-template { }; 12694 12695 whichcraft = callPackage ../development/python-modules/whichcraft { }; 12696