Merge master into staging-next

authored by nixpkgs-ci[bot] and committed by GitHub c9252789 ee6ddbfe

+645 -300
+318 -269
pkgs/applications/video/kodi/unwrapped.nix
··· 186 186 lib.optional gbmSupport "gbm" 187 187 ++ lib.optional waylandSupport "wayland" 188 188 ++ lib.optional x11Support "x11"; 189 - 190 189 in 191 - stdenv.mkDerivation (finalAttrs: { 192 - pname = "kodi"; 193 - version = "21.2"; 194 - kodiReleaseName = "Omega"; 190 + stdenv.mkDerivation ( 191 + finalAttrs: 192 + let 193 + texturePacker = buildPackages.callPackage ( 194 + { 195 + cmake, 196 + giflib, 197 + libjpeg, 198 + libpng, 199 + lzo, 200 + stdenv, 201 + zlib, 202 + pkg-config, 203 + }: 204 + stdenv.mkDerivation { 205 + pname = finalAttrs.pname + "-build-tool-texture-packer"; 206 + inherit (finalAttrs) version src; 195 207 196 - src = fetchFromGitHub { 197 - owner = "xbmc"; 198 - repo = "xbmc"; 199 - rev = "${finalAttrs.version}-${finalAttrs.kodiReleaseName}"; 200 - hash = "sha256-RdTJcq6FPerQx05dU3r8iyaorT4L7162hg5RdywsA88="; 201 - }; 208 + sourceRoot = "${finalAttrs.src.name}/tools/depends/native/TexturePacker/src"; 202 209 203 - patches = [ 204 - # Backport to fix build with Pipewire 1.4 205 - # FIXME: remove in the next update 206 - (fetchpatch { 207 - url = "https://github.com/xbmc/xbmc/commit/269053ebbfd3cc4a3156a511f54ab7f08a09a730.patch"; 208 - hash = "sha256-JzzrMJvAufrxTxtWnzknUS9JLJEed+qdtVnIYYe9LCw="; 209 - }) 210 - ]; 210 + nativeBuildInputs = [ 211 + pkg-config 212 + cmake 213 + ]; 211 214 212 - # make derivations declared in the let binding available here, so 213 - # they can be overridden 214 - inherit 215 - libdvdcss 216 - libdvdnav 217 - libdvdread 218 - groovy 219 - apache_commons_lang 220 - apache_commons_text 221 - ; 215 + buildInputs = [ 216 + giflib 217 + libjpeg 218 + libpng 219 + lzo 220 + zlib 221 + ]; 222 222 223 - buildInputs = 224 - [ 225 - gnutls 226 - libidn2 227 - libtasn1 228 - nasm 229 - p11-kit 230 - libxml2 231 - python3Packages.python 232 - boost 233 - libmicrohttpd 234 - gettext 235 - pcre-cpp 236 - yajl 237 - fribidi 238 - libva 239 - libdrm 240 - openssl 241 - gperf 242 - tinyxml2 243 - tinyxml-2 244 - taglib 245 - libssh 246 - gtest 247 - ncurses 248 - spdlog 249 - alsa-lib 250 - libGL 251 - libGLU 252 - fontconfig 253 - freetype 254 - ftgl 255 - libjpeg 256 - libpng 257 - libtiff 258 - libmpeg2 259 - libsamplerate 260 - libmad 261 - libogg 262 - libvorbis 263 - flac 264 - libxslt 265 - systemd 266 - lzo 267 - libcdio 268 - libmodplug 269 - libass 270 - libbluray 271 - libudfread 272 - sqlite 273 - libmysqlclient 274 - avahi 275 - lame 276 - curl 277 - bzip2 278 - zip 279 - unzip 280 - mesa-demos 281 - libcec 282 - libcec_platform 283 - dcadec 284 - libuuid 285 - libxcrypt 286 - libgcrypt 287 - libgpg-error 288 - libunistring 289 - libcrossguid 290 - libplist 291 - bluez 292 - giflib 293 - glib 294 - harfbuzz 295 - lcms2 296 - libpthreadstubs 297 - ffmpeg 298 - flatbuffers 299 - fstrcmp 300 - rapidjson 301 - lirc 302 - mesa-gl-headers 303 - ] 304 - ++ lib.optionals x11Support [ 305 - libX11 306 - xorgproto 307 - libXt 308 - libXmu 309 - libXext.dev 310 - libXdmcp 311 - libXinerama 312 - libXrandr.dev 313 - libXtst 314 - libXfixes 315 - ] 316 - ++ lib.optional dbusSupport dbus 317 - ++ lib.optional joystickSupport cwiid 318 - ++ lib.optional nfsSupport libnfs 319 - ++ lib.optional pulseSupport libpulseaudio 320 - ++ lib.optional pipewireSupport pipewire 321 - ++ lib.optional rtmpSupport rtmpdump 322 - ++ lib.optional sambaSupport samba 323 - ++ lib.optional udevSupport udev 324 - ++ lib.optional usbSupport libusb-compat-0_1 325 - ++ lib.optional vdpauSupport libvdpau 326 - ++ lib.optionals waylandSupport [ 327 - wayland 328 - waylandpp.dev 329 - wayland-protocols 330 - # Not sure why ".dev" is needed here, but CMake doesn't find libxkbcommon otherwise 331 - libxkbcommon.dev 332 - ] 333 - ++ lib.optionals gbmSupport [ 334 - libxkbcommon.dev 335 - libgbm 336 - libinput.dev 337 - libdisplay-info 223 + env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.hostPlatform.isWindows) "-DTARGET_POSIX"; 224 + 225 + preConfigure = '' 226 + cmakeFlagsArray+=(-DKODI_SOURCE_DIR=$src -DCMAKE_MODULE_PATH=$src/cmake/modules) 227 + ''; 228 + 229 + meta.mainProgram = "TexturePacker"; 230 + } 231 + ) { }; 232 + 233 + jsonSchemaBuilder = buildPackages.callPackage ( 234 + { stdenv, cmake }: 235 + stdenv.mkDerivation { 236 + pname = finalAttrs.pname + "-build-tool-json-schema-builder"; 237 + inherit (finalAttrs) version src; 238 + 239 + sourceRoot = "${finalAttrs.src.name}/tools/depends/native/JsonSchemaBuilder/src"; 240 + 241 + nativeBuildInputs = [ cmake ]; 242 + 243 + meta.mainProgram = "JsonSchemaBuilder"; 244 + } 245 + ) { }; 246 + in 247 + { 248 + pname = "kodi"; 249 + version = "21.2"; 250 + kodiReleaseName = "Omega"; 251 + 252 + src = fetchFromGitHub { 253 + owner = "xbmc"; 254 + repo = "xbmc"; 255 + rev = "${finalAttrs.version}-${finalAttrs.kodiReleaseName}"; 256 + hash = "sha256-RdTJcq6FPerQx05dU3r8iyaorT4L7162hg5RdywsA88="; 257 + }; 258 + 259 + patches = [ 260 + # Backport to fix build with Pipewire 1.4 261 + # FIXME: remove in the next update 262 + (fetchpatch { 263 + url = "https://github.com/xbmc/xbmc/commit/269053ebbfd3cc4a3156a511f54ab7f08a09a730.patch"; 264 + hash = "sha256-JzzrMJvAufrxTxtWnzknUS9JLJEed+qdtVnIYYe9LCw="; 265 + }) 338 266 ]; 339 267 340 - nativeBuildInputs = 341 - [ 342 - cmake 343 - doxygen 344 - makeWrapper 345 - which 346 - pkg-config 347 - autoconf 348 - automake 349 - libtool # still needed for some components. Check if that is the case with 19.0 350 - jre_headless 351 - yasm 352 - gettext 353 - python3Packages.python 354 - flatbuffers 268 + # make derivations declared in the let binding available here, so 269 + # they can be overridden 270 + inherit 271 + libdvdcss 272 + libdvdnav 273 + libdvdread 274 + groovy 275 + apache_commons_lang 276 + apache_commons_text 277 + ; 278 + 279 + buildInputs = 280 + [ 281 + gnutls 282 + libidn2 283 + libtasn1 284 + nasm 285 + p11-kit 286 + libxml2 287 + python3Packages.python 288 + boost 289 + libmicrohttpd 290 + gettext 291 + pcre-cpp 292 + yajl 293 + fribidi 294 + libva 295 + libdrm 296 + openssl 297 + gperf 298 + tinyxml2 299 + tinyxml-2 300 + taglib 301 + libssh 302 + gtest 303 + ncurses 304 + spdlog 305 + alsa-lib 306 + libGL 307 + libGLU 308 + fontconfig 309 + freetype 310 + ftgl 311 + libjpeg 312 + libpng 313 + libtiff 314 + libmpeg2 315 + libsamplerate 316 + libmad 317 + libogg 318 + libvorbis 319 + flac 320 + libxslt 321 + systemd 322 + lzo 323 + libcdio 324 + libmodplug 325 + libass 326 + libbluray 327 + libudfread 328 + sqlite 329 + libmysqlclient 330 + avahi 331 + lame 332 + curl 333 + bzip2 334 + zip 335 + unzip 336 + mesa-demos 337 + libcec 338 + libcec_platform 339 + dcadec 340 + libuuid 341 + libxcrypt 342 + libgcrypt 343 + libgpg-error 344 + libunistring 345 + libcrossguid 346 + libplist 347 + bluez 348 + glib 349 + harfbuzz 350 + lcms2 351 + libpthreadstubs 352 + ffmpeg 353 + flatbuffers 354 + fstrcmp 355 + rapidjson 356 + lirc 357 + mesa-gl-headers 355 358 356 - # for TexturePacker 357 - giflib 358 - zlib 359 - libpng 360 - libjpeg 361 - lzo 362 - ] 363 - ++ lib.optionals waylandSupport [ 364 - wayland-protocols 365 - waylandpp.bin 366 - ]; 359 + # Deps needed by TexturePacker, which is built and installed in normal 360 + # kodi build, however the one used during the build is not this one 361 + # in order to support cross-compilation. 362 + giflib 363 + zlib 364 + ] 365 + ++ lib.optionals x11Support [ 366 + libX11 367 + xorgproto 368 + libXt 369 + libXmu 370 + libXext.dev 371 + libXdmcp 372 + libXinerama 373 + libXrandr.dev 374 + libXtst 375 + libXfixes 376 + ] 377 + ++ lib.optional dbusSupport dbus 378 + ++ lib.optional joystickSupport cwiid 379 + ++ lib.optional nfsSupport libnfs 380 + ++ lib.optional pulseSupport libpulseaudio 381 + ++ lib.optional pipewireSupport pipewire 382 + ++ lib.optional rtmpSupport rtmpdump 383 + ++ lib.optional sambaSupport samba 384 + ++ lib.optional udevSupport udev 385 + ++ lib.optional usbSupport libusb-compat-0_1 386 + ++ lib.optional vdpauSupport libvdpau 387 + ++ lib.optionals waylandSupport [ 388 + wayland 389 + waylandpp.dev 390 + wayland-protocols 391 + # Not sure why ".dev" is needed here, but CMake doesn't find libxkbcommon otherwise 392 + libxkbcommon.dev 393 + ] 394 + ++ lib.optionals gbmSupport [ 395 + libxkbcommon.dev 396 + libgbm 397 + libinput.dev 398 + libdisplay-info 399 + ]; 367 400 368 - depsBuildBuild = [ 369 - buildPackages.stdenv.cc 370 - ]; 401 + nativeBuildInputs = 402 + [ 403 + cmake 404 + doxygen 405 + makeWrapper 406 + which 407 + pkg-config 408 + autoconf 409 + automake 410 + libtool # still needed for some components. Check if that is the case with 19.0 411 + jre_headless 412 + yasm 413 + gettext 414 + python3Packages.python 415 + flatbuffers 416 + ] 417 + ++ lib.optionals waylandSupport [ 418 + wayland-protocols 419 + waylandpp.bin 420 + ]; 371 421 372 - cmakeFlags = 373 - [ 374 - "-DAPP_RENDER_SYSTEM=${if gbmSupport then "gles" else "gl"}" 375 - "-Dlibdvdcss_URL=${finalAttrs.libdvdcss}" 376 - "-Dlibdvdnav_URL=${finalAttrs.libdvdnav}" 377 - "-Dlibdvdread_URL=${finalAttrs.libdvdread}" 378 - "-Dgroovy_SOURCE_DIR=${finalAttrs.groovy}" 379 - "-Dapache-commons-lang_SOURCE_DIR=${finalAttrs.apache_commons_lang}" 380 - "-Dapache-commons-text_SOURCE_DIR=${finalAttrs.apache_commons_text}" 381 - # Upstream derives this from the git HEADs hash and date. 382 - # LibreElec (minimal distro for kodi) uses the equivalent to this. 383 - "-DGIT_VERSION=${finalAttrs.version}-${finalAttrs.kodiReleaseName}" 384 - "-DENABLE_EVENTCLIENTS=ON" 385 - "-DENABLE_INTERNAL_CROSSGUID=OFF" 386 - "-DENABLE_INTERNAL_RapidJSON=OFF" 387 - "-DENABLE_OPTICAL=${if opticalSupport then "ON" else "OFF"}" 388 - "-DENABLE_VDPAU=${if vdpauSupport then "ON" else "OFF"}" 389 - "-DLIRC_DEVICE=/run/lirc/lircd" 390 - "-DSWIG_EXECUTABLE=${buildPackages.swig}/bin/swig" 391 - "-DFLATBUFFERS_FLATC_EXECUTABLE=${buildPackages.flatbuffers}/bin/flatc" 392 - "-DPYTHON_EXECUTABLE=${buildPackages.python3Packages.python}/bin/python" 393 - "-DPYTHON_LIB_PATH=${python3Packages.python.sitePackages}" 394 - # When wrapped KODI_HOME will likely contain symlinks to static assets 395 - # that Kodi's built in webserver will cautiously refuse to serve up 396 - # (because their realpaths are outside of KODI_HOME and the other 397 - # whitelisted directories). This adds the entire nix store to the Kodi 398 - # webserver whitelist to avoid this problem. 399 - "-DKODI_WEBSERVER_EXTRA_WHITELIST=${builtins.storeDir}" 400 - ] 401 - ++ lib.optionals waylandSupport [ 402 - "-DWAYLANDPP_SCANNER=${buildPackages.waylandpp}/bin/wayland-scanner++" 422 + depsBuildBuild = [ 423 + buildPackages.stdenv.cc 403 424 ]; 404 425 405 - # 14 tests fail but the biggest issue is that every test takes 30 seconds - 406 - # I'm guessing there is a thing waiting to time out 407 - doCheck = false; 426 + cmakeFlags = 427 + [ 428 + "-DAPP_RENDER_SYSTEM=${if gbmSupport then "gles" else "gl"}" 429 + "-Dlibdvdcss_URL=${finalAttrs.libdvdcss}" 430 + "-Dlibdvdnav_URL=${finalAttrs.libdvdnav}" 431 + "-Dlibdvdread_URL=${finalAttrs.libdvdread}" 432 + "-Dgroovy_SOURCE_DIR=${finalAttrs.groovy}" 433 + "-Dapache-commons-lang_SOURCE_DIR=${finalAttrs.apache_commons_lang}" 434 + "-Dapache-commons-text_SOURCE_DIR=${finalAttrs.apache_commons_text}" 435 + # Upstream derives this from the git HEADs hash and date. 436 + # LibreElec (minimal distro for kodi) uses the equivalent to this. 437 + "-DGIT_VERSION=${finalAttrs.version}-${finalAttrs.kodiReleaseName}" 438 + "-DENABLE_EVENTCLIENTS=ON" 439 + "-DENABLE_INTERNAL_CROSSGUID=OFF" 440 + "-DENABLE_INTERNAL_RapidJSON=OFF" 441 + "-DENABLE_OPTICAL=${if opticalSupport then "ON" else "OFF"}" 442 + "-DENABLE_VDPAU=${if vdpauSupport then "ON" else "OFF"}" 443 + "-DLIRC_DEVICE=/run/lirc/lircd" 444 + "-DSWIG_EXECUTABLE=${buildPackages.swig}/bin/swig" 445 + "-DFLATBUFFERS_FLATC_EXECUTABLE=${buildPackages.flatbuffers}/bin/flatc" 446 + "-DPYTHON_EXECUTABLE=${buildPackages.python3Packages.python}/bin/python" 447 + "-DPYTHON_LIB_PATH=${python3Packages.python.sitePackages}" 448 + "-DWITH_JSONSCHEMABUILDER=${lib.getExe jsonSchemaBuilder}" 449 + # When wrapped KODI_HOME will likely contain symlinks to static assets 450 + # that Kodi's built in webserver will cautiously refuse to serve up 451 + # (because their realpaths are outside of KODI_HOME and the other 452 + # whitelisted directories). This adds the entire nix store to the Kodi 453 + # webserver whitelist to avoid this problem. 454 + "-DKODI_WEBSERVER_EXTRA_WHITELIST=${builtins.storeDir}" 455 + ] 456 + ++ lib.optionals waylandSupport [ 457 + "-DWAYLANDPP_SCANNER=${buildPackages.waylandpp}/bin/wayland-scanner++" 458 + ] 459 + ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 460 + "-DWITH_TEXTUREPACKER=${lib.getExe texturePacker}" 461 + ]; 408 462 409 - preConfigure = 410 - '' 463 + # 14 tests fail but the biggest issue is that every test takes 30 seconds - 464 + # I'm guessing there is a thing waiting to time out 465 + doCheck = false; 466 + 467 + preConfigure = '' 411 468 cmakeFlagsArray+=("-DCORE_PLATFORM_NAME=${lib.concatStringsSep " " kodi_platforms}") 412 - '' 413 - + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 414 - # Need these tools on the build system when cross compiling, 415 - # hacky, but have found no other way. 416 - CXX=$CXX_FOR_BUILD LD=ld make -C tools/depends/native/JsonSchemaBuilder 417 - appendToVar cmakeFlags "-DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin" 418 - 419 - CXX=$CXX_FOR_BUILD LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker 420 - appendToVar cmakeFlags "-DWITH_TEXTUREPACKER=$PWD/tools/depends/native/TexturePacker/bin" 421 469 ''; 422 470 423 - postInstall = '' 424 - # TODO: figure out which binaries should be wrapped this way and which shouldn't 425 - for p in $(ls --ignore=kodi-send $out/bin/) ; do 426 - wrapProgram $out/bin/$p \ 427 - --prefix PATH ":" "${ 428 - lib.makeBinPath ( 429 - [ 430 - python3Packages.python 431 - mesa-demos 432 - ] 433 - ++ lib.optional x11Support xdpyinfo 434 - ++ lib.optional sambaSupport samba 435 - ) 436 - }" \ 437 - --prefix LD_LIBRARY_PATH ":" "${ 438 - lib.makeLibraryPath ( 439 - [ 440 - curl 441 - systemd 442 - libmad 443 - libcec 444 - libcec_platform 445 - libass 446 - ] 447 - ++ lib.optional vdpauSupport libvdpau 448 - ++ lib.optional nfsSupport libnfs 449 - ++ lib.optional rtmpSupport rtmpdump 450 - ) 451 - }" 452 - done 471 + postInstall = '' 472 + # TODO: figure out which binaries should be wrapped this way and which shouldn't 473 + for p in $(ls --ignore=kodi-send $out/bin/) ; do 474 + wrapProgram $out/bin/$p \ 475 + --prefix PATH ":" "${ 476 + lib.makeBinPath ( 477 + [ 478 + python3Packages.python 479 + mesa-demos 480 + ] 481 + ++ lib.optional x11Support xdpyinfo 482 + ++ lib.optional sambaSupport samba 483 + ) 484 + }" \ 485 + --prefix LD_LIBRARY_PATH ":" "${ 486 + lib.makeLibraryPath ( 487 + [ 488 + curl 489 + systemd 490 + libmad 491 + libcec 492 + libcec_platform 493 + libass 494 + ] 495 + ++ lib.optional vdpauSupport libvdpau 496 + ++ lib.optional nfsSupport libnfs 497 + ++ lib.optional rtmpSupport rtmpdump 498 + ) 499 + }" 500 + done 453 501 454 - wrapProgram $out/bin/kodi-send \ 455 - --prefix PYTHONPATH : $out/${python3Packages.python.sitePackages} 502 + wrapProgram $out/bin/kodi-send \ 503 + --prefix PYTHONPATH : $out/${python3Packages.python.sitePackages} 456 504 457 - substituteInPlace $out/share/xsessions/kodi.desktop \ 458 - --replace kodi-standalone $out/bin/kodi-standalone 459 - ''; 505 + substituteInPlace $out/share/xsessions/kodi.desktop \ 506 + --replace kodi-standalone $out/bin/kodi-standalone 507 + ''; 460 508 461 - doInstallCheck = true; 509 + doInstallCheck = true; 462 510 463 - installCheckPhase = "$out/bin/kodi --version"; 511 + installCheckPhase = "$out/bin/kodi --version"; 464 512 465 - passthru = { 466 - pythonPackages = python3Packages; 467 - ffmpeg = ffmpeg; 468 - kodi = finalAttrs.finalPackage; 469 - }; 513 + passthru = { 514 + pythonPackages = python3Packages; 515 + ffmpeg = ffmpeg; 516 + kodi = finalAttrs.finalPackage; 517 + }; 470 518 471 - meta = with lib; { 472 - description = "Media center"; 473 - homepage = "https://kodi.tv/"; 474 - license = licenses.gpl2Plus; 475 - platforms = platforms.linux; 476 - teams = [ teams.kodi ]; 477 - mainProgram = "kodi"; 478 - }; 479 - }) 519 + meta = with lib; { 520 + description = "Media center"; 521 + homepage = "https://kodi.tv/"; 522 + license = licenses.gpl2Plus; 523 + platforms = platforms.linux; 524 + teams = [ teams.kodi ]; 525 + mainProgram = "kodi"; 526 + }; 527 + } 528 + )
+79
pkgs/by-name/cf/cfclient/package.nix
··· 1 + { 2 + lib, 3 + python3Packages, 4 + fetchFromGitHub, 5 + qt6, 6 + }: 7 + 8 + python3Packages.buildPythonApplication rec { 9 + pname = "cfclient"; 10 + version = "2025.2"; 11 + pyproject = true; 12 + 13 + src = fetchFromGitHub { 14 + owner = "bitcraze"; 15 + repo = "crazyflie-clients-python"; 16 + tag = version; 17 + hash = "sha256-LCGTMLIfGH59KFwQACyuEQTh/zkGgzXd3e6MkFTgKhA="; 18 + }; 19 + 20 + strictDeps = true; 21 + 22 + buildInputs = [ 23 + qt6.qtbase 24 + ]; 25 + 26 + nativeBuildInputs = [ 27 + qt6.wrapQtAppsHook 28 + ]; 29 + 30 + dontWrapQtApps = true; 31 + 32 + build-system = with python3Packages; [ 33 + setuptools 34 + setuptools-scm 35 + ]; 36 + 37 + pythonRelaxDeps = [ 38 + "numpy" 39 + "pyqt6" 40 + "vispy" 41 + ]; 42 + 43 + dependencies = with python3Packages; [ 44 + appdirs 45 + cflib 46 + numpy 47 + pyopengl 48 + pyserial 49 + pysdl2 50 + pyqtgraph 51 + pyqt6 52 + pyqt6-sip 53 + pyyaml 54 + pyzmq 55 + scipy 56 + setuptools 57 + vispy 58 + ]; 59 + 60 + # No tests 61 + doCheck = false; 62 + 63 + # Use wrapQtApp for Python scripts as the manual mentions that wrapQtAppsHook only applies to binaries 64 + postFixup = '' 65 + wrapQtApp "$out/bin/cfclient" \ 66 + --set QT_QPA_PLATFORM "wayland" \ 67 + --set XDG_CURRENT_DESKTOP "Wayland" \ 68 + ''${qtWrapperArgs[@]} 69 + ''; 70 + 71 + meta = { 72 + description = "Host applications and library for Crazyflie drones written in Python"; 73 + homepage = "https://github.com/bitcraze/crazyflie-clients-python"; 74 + changelog = "https://github.com/bitcraze/crazyflie-clients-python/releases/tag/${version}"; 75 + license = lib.licenses.gpl2Only; 76 + maintainers = [ lib.maintainers.brianmcgillion ]; 77 + platforms = lib.platforms.linux; 78 + }; 79 + }
+2 -2
pkgs/by-name/ma/mattermost/package.nix
··· 19 19 # 20 20 # Ensure you also check ../mattermostLatest/package.nix. 21 21 regex = "^v(10\\.5\\.[0-9]+)$"; 22 - version = "10.5.6"; 23 - srcHash = "sha256-etHEJ3EBTolXZr/2Kd39Jdtf1qBMuVO5zRkuM6k4F3w="; 22 + version = "10.5.7"; 23 + srcHash = "sha256-HPQmN6GXDTEmloIcU0k+sYx/Qeh1j6T2yCT/W1/aWz4="; 24 24 vendorHash = "sha256-9Jl+lxvSoxUReziTqkDRyeNrijGWcBDbqoywJRIeD2k="; 25 25 npmDepsHash = "sha256-tIeuDUZbqgqooDm5TRfViiTT5OIyN0BPwvJdI+wf7p0="; 26 26 lockfileOverlay = ''
+3 -3
pkgs/by-name/na/nak/package.nix
··· 8 8 9 9 buildGoModule (finalAttrs: { 10 10 pname = "nak"; 11 - version = "0.14.1"; 11 + version = "0.14.2"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "fiatjaf"; 15 15 repo = "nak"; 16 16 tag = "v${finalAttrs.version}"; 17 - hash = "sha256-uPsZV29xjVUeq0vKsTPf/hRtjsCnjaShiabnKXm5kPY="; 17 + hash = "sha256-+91warH+uvQ5jkPIxkJxsS9R83cZ1u+FKMy3xgjHIAQ="; 18 18 }; 19 19 20 - vendorHash = "sha256-q6jdczZ8K+aJJHfN2OtW0mP4OpMbKAB16Bws2wFb6Zg="; 20 + vendorHash = "sha256-HGZwcg8C9UuYu0+oPfJG4LEXIHqt+IRrDQdXtIjg0Hg="; 21 21 22 22 ldflags = [ 23 23 "-s"
+4 -4
pkgs/by-name/na/navidrome/package.nix
··· 18 18 19 19 buildGo124Module rec { 20 20 pname = "navidrome"; 21 - version = "0.55.2"; 21 + version = "0.56.1"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "navidrome"; 25 25 repo = "navidrome"; 26 26 rev = "v${version}"; 27 - hash = "sha256-RJDWpaB0rdrwLSEjwLIZ7ymvYvFSX4/fIT3xFki3278="; 27 + hash = "sha256-Vq8qfBqxF/PVRtYYTsFydnJ7z/IuoNUWRWTLy/RM6xg="; 28 28 }; 29 29 30 - vendorHash = "sha256-stdYTvYwsu00l5sAW86nBlwnACOfyLbKi7Xn5gdM/7Y="; 30 + vendorHash = "sha256-E7Q3wxUd5JAwERBKD2NZaVyj1kszOxvxeDY0s/fEDfY="; 31 31 32 32 npmRoot = "ui"; 33 33 34 34 npmDeps = fetchNpmDeps { 35 35 inherit src; 36 36 sourceRoot = "${src.name}/ui"; 37 - hash = "sha256-lM8637tcKc9iSPjXJPDZXFCGj7pShOXTC6X2iketg90="; 37 + hash = "sha256-tl6unHz0E0v0ObrfTiE0vZwVSyVFmrLggNM5QsUGsvI="; 38 38 }; 39 39 40 40 nativeBuildInputs = [
+4
pkgs/by-name/no/nodeenv/package.nix
··· 1 + { 2 + python3Packages, 3 + }: 4 + python3Packages.toPythonApplication python3Packages.nodeenv
+13
pkgs/by-name/pe/pencil2d/git-inherit.patch
··· 1 + --- a/app/app.pro 2 + +++ b/app/app.pro 3 + @@ -208,8 +208,8 @@ 4 + 5 + GIT { 6 + DEFINES += GIT_EXISTS \ 7 + - "GIT_CURRENT_SHA1=$$system(git --git-dir=.git --work-tree=. -C $$_PRO_FILE_PWD_/../ rev-parse HEAD)" \ 8 + - "GIT_TIMESTAMP=$$system(git --git-dir=.git --work-tree=. -C $$_PRO_FILE_PWD_/../ log -n 1 --pretty=format:"%cd" --date=format:"%Y-%m-%d_%H:%M:%S")" 9 + + "GIT_CURRENT_SHA1=$$cat($$_PRO_FILE_PWD_/../COMMIT)" \ 10 + + "GIT_TIMESTAMP=$$cat($$_PRO_FILE_PWD_/../SOURCE_TIMESTAMP_EPOCH)" 11 + } 12 + 13 + macx {
+29 -3
pkgs/by-name/pe/pencil2d/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitHub, 5 5 qt5, 6 + git, 7 + ffmpeg_6, 8 + nix-update-script, 6 9 }: 7 10 8 - stdenv.mkDerivation (FinalAttrs: { 11 + stdenv.mkDerivation (finalAttrs: { 9 12 pname = "pencil2d"; 10 13 version = "0.7.0"; 11 14 12 15 src = fetchFromGitHub { 13 16 owner = "pencil2d"; 14 17 repo = "pencil"; 15 - tag = "v${FinalAttrs.version}"; 16 - hash = "sha256-OuZpKgX2BgfuQdnjk/RTBww/blO1CIrYWr7KytqcIbQ="; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-l+iW0k3WdNXDwXtt958JJWSe3zNhQVul4FUcPPMrVxE="; 20 + leaveDotGit = true; 21 + postFetch = '' 22 + # Obtain the last commit ID and its timestamp, then zap .git for reproducibility 23 + cd $out 24 + git rev-parse HEAD > $out/COMMIT 25 + # 0000-00-00T00:00:00Z 26 + date -u -d "@$(git log -1 --pretty=%ct)" "+%Y-%m-%d_%H:%M:%S" > $out/SOURCE_TIMESTAMP_EPOCH 27 + find "$out" -name .git -print0 | xargs -0 rm -rf 28 + ''; 17 29 }; 30 + 31 + patches = [ ./git-inherit.patch ]; 18 32 19 33 nativeBuildInputs = with qt5; [ 20 34 qmake 21 35 wrapQtAppsHook 22 36 qttools 37 + git 23 38 ]; 24 39 40 + qmakeFlags = [ 41 + "pencil2d.pro" 42 + "CONFIG+=release" 43 + "CONFIG+=PENCIL2D_RELEASE" 44 + "CONFIG+=GIT" 45 + "VERSION=${finalAttrs.version}" 46 + ]; 47 + 48 + passthru.updateScript = nix-update-script { }; 49 + 25 50 buildInputs = with qt5; [ 26 51 qtbase 27 52 qtmultimedia 28 53 qtsvg 29 54 qtwayland 55 + ffmpeg_6 30 56 ]; 31 57 32 58 meta = {
+3 -3
pkgs/by-name/ve/veryl/package.nix
··· 10 10 11 11 rustPlatform.buildRustPackage rec { 12 12 pname = "veryl"; 13 - version = "0.16.0"; 13 + version = "0.16.1"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "veryl-lang"; 17 17 repo = "veryl"; 18 18 rev = "v${version}"; 19 - hash = "sha256-KlW5GC5fgUnS6YAb01VEaKv48+yu8VqgAe/5QsilYjs="; 19 + hash = "sha256-/GbykOurK3IHmknMh+TftU7aFcLqAlnEeiJ51sJcTeQ="; 20 20 fetchSubmodules = true; 21 21 }; 22 22 23 23 useFetchCargoVendor = true; 24 - cargoHash = "sha256-HKDkV2eDjhfuky2ORdKwbyBa/kt1gEqK55AibKg5VYE="; 24 + cargoHash = "sha256-MQkxeV+06hL9DqReuHy7H8SMvh2Xn6Hqj/VY8a1scyQ="; 25 25 26 26 nativeBuildInputs = [ 27 27 pkg-config
+90
pkgs/development/python-modules/cflib/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + setuptools-scm, 7 + libusb-package, 8 + numpy, 9 + packaging, 10 + pyserial, 11 + pyusb, 12 + scipy, 13 + pytestCheckHook, 14 + pyyaml, 15 + udevCheckHook, 16 + }: 17 + 18 + buildPythonPackage rec { 19 + pname = "cflib"; 20 + version = "0.1.28"; 21 + pyproject = true; 22 + 23 + src = fetchFromGitHub { 24 + owner = "bitcraze"; 25 + repo = "crazyflie-lib-python"; 26 + tag = version; 27 + hash = "sha256-vGqwQVD80NcFJosVAmqj66uxYNoVtAqzVhVQiuWP5yM="; 28 + }; 29 + 30 + strictDeps = true; 31 + 32 + build-system = [ 33 + setuptools 34 + setuptools-scm 35 + ]; 36 + 37 + pythonRelaxDeps = [ "numpy" ]; 38 + 39 + dependencies = [ 40 + libusb-package 41 + numpy 42 + packaging 43 + pyserial 44 + pyusb 45 + scipy 46 + ]; 47 + 48 + disabledTestPaths = [ 49 + # exception: Cannot find a Crazyradio Dongle (HW required) 50 + "sys_test/single_cf_grounded/" 51 + "sys_test/swarm_test_rig/" 52 + ]; 53 + 54 + pythonImportsCheck = [ "cflib" ]; 55 + nativeCheckInputs = [ 56 + pytestCheckHook 57 + pyyaml 58 + ]; 59 + 60 + # The udevCheckHook is used to verify udev rules 61 + # requires diInstallCheck to be enabled, which is default for pythonPackages 62 + nativeInstallCheckInputs = [ 63 + udevCheckHook 64 + ]; 65 + 66 + # Install udev rules as defined 67 + # https://www.bitcraze.io/documentation/repository/crazyflie-lib-python/master/installation/usb_permissions/ 68 + postInstall = '' 69 + # Install udev rules 70 + mkdir -p $out/etc/udev/rules.d 71 + 72 + cat <<EOF > $out/etc/udev/rules.d/99-bitcraze.rules 73 + # Crazyradio (normal operation) 74 + SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="7777", MODE="0664", GROUP="plugdev" 75 + # Bootloader 76 + SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="0101", MODE="0664", GROUP="plugdev" 77 + # Crazyflie (over USB) 78 + SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0664", GROUP="plugdev" 79 + EOF 80 + ''; 81 + 82 + meta = { 83 + description = "Python library for the Crazyflie quadcopter by Bitcraze"; 84 + homepage = "https://github.com/bitcraze/crazyflie-lib-python"; 85 + changelog = "https://github.com/bitcraze/crazyflie-lib-python/releases/tag/${version}"; 86 + license = lib.licenses.gpl2Only; 87 + maintainers = [ lib.maintainers.brianmcgillion ]; 88 + platforms = lib.platforms.linux; 89 + }; 90 + }
+20 -10
pkgs/development/python-modules/google-cloud-spanner/default.nix
··· 19 19 20 20 # optional dependencies 21 21 libcst, 22 - 23 - # testing 22 + opentelemetry-api, 23 + opentelemetry-sdk, 24 + opentelemetry-semantic-conventions, 24 25 google-cloud-monitoring, 25 26 mmh3, 27 + 28 + # testing 26 29 mock, 27 - opentelemetry-api, 28 - opentelemetry-sdk, 29 - opentelemetry-semantic-conventions, 30 30 pytest-asyncio, 31 31 pytestCheckHook, 32 32 }: 33 33 34 34 buildPythonPackage rec { 35 35 pname = "google-cloud-spanner"; 36 - version = "3.54.0"; 36 + version = "3.55.0"; 37 37 pyproject = true; 38 38 39 39 src = fetchFromGitHub { 40 40 owner = "googleapis"; 41 41 repo = "python-spanner"; 42 42 tag = "v${version}"; 43 - hash = "sha256-uJKUgY7fV+AK/2HQyjQRFypcL+mPZ/M5ZtAU+f73ezM="; 43 + hash = "sha256-0+mTBqgy8SaHjoYhQjCaypipVsJTrN2DdhcfPY3PxSc="; 44 44 }; 45 45 46 46 build-system = [ setuptools ]; ··· 54 54 proto-plus 55 55 protobuf 56 56 sqlparse 57 - ] ++ google-api-core.optional-dependencies.grpc; 57 + ]; 58 58 59 59 optional-dependencies = { 60 60 libcst = [ libcst ]; 61 + tracing = [ 62 + opentelemetry-api 63 + opentelemetry-sdk 64 + opentelemetry-semantic-conventions 65 + # opentelemetry-resourcedetector-gcp # Not available in nixpkgs 66 + google-cloud-monitoring 67 + mmh3 68 + ]; 61 69 }; 62 70 63 71 nativeCheckInputs = [ ··· 70 78 opentelemetry-semantic-conventions 71 79 pytest-asyncio 72 80 pytestCheckHook 73 - ]; 81 + ] ++ lib.flatten (lib.attrValues optional-dependencies); 74 82 75 83 preCheck = '' 76 84 # prevent google directory from shadowing google imports ··· 84 92 "test_list_instance" 85 93 # can't import mmh3 86 94 "test_generate_client_hash" 95 + # Flaky, compares to execution time 96 + "test_snapshot_read_concurrent" 87 97 ]; 88 98 89 99 disabledTestPaths = [ ··· 117 127 meta = { 118 128 description = "Cloud Spanner API client library"; 119 129 homepage = "https://github.com/googleapis/python-spanner"; 120 - changelog = "https://github.com/googleapis/python-spanner/blob/v${version}/CHANGELOG.md"; 130 + changelog = "https://github.com/googleapis/python-spanner/blob/${src.tag}/CHANGELOG.md"; 121 131 license = lib.licenses.asl20; 122 132 maintainers = [ lib.maintainers.sarahec ]; 123 133 };
+29 -4
pkgs/development/python-modules/labgrid/default.nix
··· 1 1 { 2 2 ansicolors, 3 3 attrs, 4 - autobahn, 5 4 buildPythonPackage, 6 5 fetchFromGitHub, 6 + fetchpatch, 7 + grpcio, 8 + grpcio-tools, 9 + grpcio-reflection, 7 10 jinja2, 8 11 lib, 9 12 mock, ··· 12 15 psutil, 13 16 pyserial, 14 17 pytestCheckHook, 18 + pytest-benchmark, 15 19 pytest-dependency, 16 20 pytest-mock, 17 21 pyudev, ··· 25 29 26 30 buildPythonPackage rec { 27 31 pname = "labgrid"; 28 - version = "24.0.2"; 32 + version = "25.0"; 29 33 pyproject = true; 30 34 31 35 src = fetchFromGitHub { 32 36 owner = "labgrid-project"; 33 37 repo = "labgrid"; 34 38 tag = "v${version}"; 35 - hash = "sha256-rW9peT4zoPzVR6Kl/E8G4qBig/x/lvxpCtvNtwIIL+U="; 39 + hash = "sha256-Czq8Wx8ThKLcR8GjdlRND+Y1nY1PTl6wDkz9ml83DBk="; 36 40 }; 37 41 42 + # Remove after package bump 43 + patches = [ 44 + (fetchpatch { 45 + url = "https://github.com/Emantor/labgrid/commit/4a66b43882811d50600e37aa39b24ec40398d184.patch"; 46 + sha256 = "sha256-eJMB1qFWiDzQXEB4dYOHYMQqCPHXEWCwWjNNY0yTC2s="; 47 + }) 48 + (fetchpatch { 49 + url = "https://github.com/Emantor/labgrid/commit/d9933b3ec444c35d98fd41685481ecae8ff28bf4.patch"; 50 + sha256 = "sha256-Zx5j+CD6Q89dLmTl5QSKI9M1IcZ97OCjEWtEbG+CKWE="; 51 + }) 52 + (fetchpatch { 53 + url = "https://github.com/Emantor/labgrid/commit/f0b672afe1e8976c257f0adff9bf6e7ee9760d6f.patch"; 54 + sha256 = "sha256-M7rg+W9SjWDdViWyWe3ERzbUowxzf09c4w1yG3jQGak="; 55 + }) 56 + ]; 57 + 38 58 build-system = [ 39 59 setuptools 40 60 setuptools-scm ··· 43 63 dependencies = [ 44 64 ansicolors 45 65 attrs 46 - autobahn 47 66 jinja2 67 + grpcio 68 + grpcio-tools 69 + grpcio-reflection 48 70 pexpect 49 71 pyserial 50 72 pyudev ··· 63 85 openssh 64 86 psutil 65 87 pytestCheckHook 88 + pytest-benchmark 66 89 pytest-mock 67 90 pytest-dependency 68 91 ]; ··· 71 94 # flaky, timing sensitive 72 95 "test_timing" 73 96 ]; 97 + 98 + pytestFlagsArray = [ "--benchmark-disable" ]; 74 99 75 100 meta = with lib; { 76 101 description = "Embedded control & testing library";
+43
pkgs/development/python-modules/libusb-package/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + setuptools-scm, 7 + tomli, 8 + importlib-resources, 9 + libusb1, 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "libusb-package"; 14 + version = "1.0.26.3"; 15 + pyproject = true; 16 + 17 + src = fetchFromGitHub { 18 + owner = "pyocd"; 19 + repo = "libusb-package"; 20 + tag = "v${version}"; 21 + hash = "sha256-4zTyaidpSlledTcEztWzRgwj43oNV7xWrhMXCE9Qz3k="; 22 + }; 23 + 24 + build-system = [ 25 + setuptools 26 + setuptools-scm 27 + tomli 28 + ]; 29 + 30 + dependencies = [ 31 + importlib-resources 32 + libusb1 33 + ]; 34 + 35 + meta = { 36 + description = "Python package for simplified libusb distribution and usage with pyOCD"; 37 + homepage = "https://github.com/pyocd/libusb-package"; 38 + changelog = "https://github.com/pyocd/libusb-package/releases/tag/v${version}"; 39 + license = lib.licenses.asl20; 40 + maintainers = [ lib.maintainers.brianmcgillion ]; 41 + platforms = lib.platforms.linux; 42 + }; 43 + }
+2 -2
pkgs/development/python-modules/pysmlight/default.nix
··· 14 14 15 15 buildPythonPackage rec { 16 16 pname = "pysmlight"; 17 - version = "0.2.4"; 17 + version = "0.2.5"; 18 18 pyproject = true; 19 19 20 20 src = fetchFromGitHub { 21 21 owner = "smlight-tech"; 22 22 repo = "pysmlight"; 23 23 tag = "v${version}"; 24 - hash = "sha256-ZNqNRz7d3HZybQG778+ubxuc7Eakf/kWpd3I3cosSIU="; 24 + hash = "sha256-ylfOro/GqgXDAPdtwbAWOMBO207zp5T26HRnDYrIw34="; 25 25 }; 26 26 27 27 build-system = [ poetry-core ];
+6
pkgs/top-level/python-packages.nix
··· 2368 2368 2369 2369 cfgv = callPackage ../development/python-modules/cfgv { }; 2370 2370 2371 + cflib = callPackage ../development/python-modules/cflib { }; 2372 + 2371 2373 cfn-flip = callPackage ../development/python-modules/cfn-flip { }; 2372 2374 2373 2375 cfn-lint = callPackage ../development/python-modules/cfn-lint { }; ··· 8040 8042 8041 8043 libtorrent-rasterbar = 8042 8044 (toPythonModule (pkgs.libtorrent-rasterbar.override { python3 = python; })).python; 8045 + 8046 + libusb-package = callPackage ../development/python-modules/libusb-package { 8047 + inherit (pkgs) libusb1; 8048 + }; 8043 8049 8044 8050 libusb1 = callPackage ../development/python-modules/libusb1 { inherit (pkgs) libusb1; }; 8045 8051