jiebi/CodeConvo huggingface dataset:
Change:
Rhythmbox ships a bunch of plugins that are written in Python, but they don't seem to work in Rhythmbox as it's currently packaged. Steps to reproduce the behavior: in the settings, in the plugins tab that a large number of plugins (e.g. for replaygain support) are missing Rhythmbox's Python plugins should be usable. I got some way towards fixing this with the following overlay: which at least makes the Python plugins show up in the settings menu, but enabling them fails, printing the following to xsession-errors: I tried setting as suggested in other issues related to gobject-introspection, and also adding gobject-introspection to nativeBuildInputs, but couldn't get any closer to getting the plugins working. Please run and paste the result. Maintainer information:
Have you tried adding python modules to ? Another option to try is adding to dependencies—if I understand correctly, it should have a setup hook to set env variables for python to find its libraries later.
I tried moving to propagatedBuildInputs, but it still doesn't seem to work. And buildInputs already includes in the nixpkgs derivation, right?
The error come from . I think must be patched to initialize using given PATH and PYTHONPATH or .
I'm able to take this further by wrapping rhythmbox with prefix.

Discussion:
, libnotify , libdmapsharing , gnome <ins> , gobject-introspection </ins> , totem-pl-parser , tdb , json-glib

totem-pl-parser gnome.adwaita-icon-theme <ins> gobject-introspection python3.pkgs.pygobject3 </ins> gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good

"--with-libsecret" ]; <ins> preFixup = '' gappsWrapperArgs+=( --prefix PYTHONPATH : "${python3.pkgs.pygobject3}/${python3.sitePackages}:$out/lib/rhythmbox/plugins/" ) ''; </ins> enableParallelBuilding = true; passthru = {
Change:
... what's doing there? I suppose it doesn't actually cause any problems given that TERMINFO_DIRS is set, but still, it shouldn't be there. Steps to reproduce the behavior: urxvt through nixpkgs () a terminal () your environment variables as above The offending line is clearly I suspect this may have worked at one point in the past, then stdenv's escaping logic was changed? The variable should be set to a directory that actually exists and has the appropriate information in it, or not set at all. I doubt it's relevant, but:
btw arch has a lot of configure options, i wonder if we should add some of them?
I'll take a look, but I suspect most of these are enabled by default.
The only options off by default that we don't enable in Nixpkgs are The first is only useful when developing urxvt, the description for the second says: I'm not sure how useful this is because I use a tiling WM. Anyway, the option is off even in Arch Linux due to a .

Discussion:
configureFlags = [ <del> "--with-terminfo=$terminfo/share/terminfo" </del> <ins> "--with-terminfo=${placeholder "terminfo"}/share/terminfo" </ins> "--enable-256-color" (enableFeature perlSupport "perl") (enableFeature unicode3Support "unicode3")
Change:
On the latest unstable (I'm testing on ), the build of ocrmypdf has started erroring. Steps to reproduce the behavior: on nixpkgs-unstable Clean build, link <details<summaryBuild output</summary</details Please run and paste the result. Maintainer information:

Discussion:
sha256 = "sha256-g80WedX+TGHE9EJ/RSgOc53PM17V3WZslUNaHoqKTo0="; }; <ins> SETUPTOOLS_SCM_PRETEND_VERSION = version; </ins> patches = [ (substituteAll { src = ./paths.patch;

pytestCheckHook ]; <ins> pythonImportsCheck = [ "ocrmypdf" ]; </ins> meta = with lib; { homepage = "https://github.com/jbarlow83/OCRmyPDF"; description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";
Change:
doesn't create a .desktop file, which means that a user that wants to see its icon in the launcher will have to add the .desktop file manually in . Steps to reproduce the behavior: the package in ; a program launcher; is not there. The launcher shows Duckstation's icon. Templates can be found in .

Discussion:
<del> { lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, SDL2, qtbase , wrapQtAppsHook, qttools, ninja, gtk3 }: </del> <ins> { lib , mkDerivation , fetchFromGitHub , cmake , extra-cmake-modules , pkg-config , SDL2 , qtbase , wrapQtAppsHook , qttools , ninja , gtk3 , libevdev , curl , libpulseaudio , sndio , mesa }: </ins> mkDerivation rec { pname = "duckstation"; <del> version = "unstable-2020-12-29"; </del> <ins> version = "unstable-2021-10-01"; </ins> src = fetchFromGitHub { owner = "stenzek"; repo = pname; <del> rev = "f8dcfabc44ff8391b2d41eab2e883dc8f21a88b7"; sha256 = "0v6w4di4yj1hbxpqqrcw8rbfjg18g9kla8mnb3b5zgv7i4dyzykw"; </del> <ins> rev = "a7096f033ecca48827fa55825fc0d0221265f1c2"; sha256 = "sha256-e/Y1TJBuY76q3/0MCAqu9AJzLxIoJ8FJUV5vc/AgcjA="; </ins> }; <del> nativeBuildInputs = [ cmake wrapQtAppsHook qttools ]; </del> <ins> nativeBuildInputs = [ cmake ninja pkg-config extra-cmake-modules wrapQtAppsHook qttools ]; </ins> <del> buildInputs = [ SDL2 qtbase gtk3 pkg-config ]; </del> <ins> buildInputs = [ SDL2 qtbase gtk3 libevdev sndio mesa curl libpulseaudio ]; cmakeFlags = [ "-DUSE_DRMKMS=ON" "-DUSE_EGL=ON" ]; postPatch = '' substituteInPlace extras/linux-desktop-files/duckstation-qt.desktop  --replace "duckstation-qt" "duckstation"  --replace "TryExec=duckstation" "tryExec=duckstation-qt"  --replace "Exec=duckstation" "Exec=duckstation-qt" substituteInPlace extras/linux-desktop-files/duckstation-nogui.desktop  --replace "duckstation-nogui" "duckstation"  --replace "TryExec=duckstation" "tryExec=duckstation-nogui"  --replace "Exec=duckstation" "Exec=duckstation-nogui" ''; </ins> installPhase = '' <del> mkdir -p $out/ mv bin $out/ </del> <ins> runHook preInstall mkdir -p $out/bin $out/share $out/share/pixmaps $out/share/applications rm bin/common-tests cp -r bin $out/share/duckstation ln -s $out/share/duckstation/duckstation-{qt,nogui} $out/bin/ cp ../extras/icons/icon-256px.png $out/share/pixmaps/duckstation.png cp ../extras/linux-desktop-files/* $out/share/applications/ runHook postInstall ''; doCheck = true; checkPhase = '' runHook preCheck ./bin/common-tests runHook postCheck </ins> ''; # TODO: # - vulkan graphics backend (OpenGL works). # - default sound backend (cubeb) does not work, but SDL does. meta = with lib; { <del> description = "PlayStation 1 emulator focusing on playability, speed and long-term maintainability"; </del> <ins> description = "PlayStation 1 emulator focusing on playability, speed and long-term maintainability"; </ins> homepage = "https://github.com/stenzek/duckstation"; <del> license = licenses.gpl3; </del> <ins> license = licenses.gpl3Only; </ins> platforms = platforms.linux; maintainers = [ maintainers.guibou ]; };
Change:
Compile fails on aarch64 master . Steps to reproduce the behavior: to install ungoogled-chromium on aarch64 master compile <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --hardly relevant, as this is marked broken in master Maintainer information:
possible workaround is to disable building the libfuzzer, I'll check that now.
Sorry wrong patch, tested system build reboot chromium & firefox with this on aarch64

Discussion:
useLLVM = stdenv.hostPlatform.useLLVM or false; bareMetal = stdenv.hostPlatform.parsed.kernel.name == "none"; haveLibc = stdenv.cc.libc != null; <del> inherit (stdenv.hostPlatform) isMusl; </del> <ins> inherit (stdenv.hostPlatform) isMusl isAarch64; </ins> in

"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" "-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}" "-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}" <ins> ] ++ lib.optionals (useLLVM || bareMetal || isMusl || isAarch64) [ "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" </ins> ] ++ lib.optionals (useLLVM || bareMetal || isMusl) [ "-DCOMPILER_RT_BUILD_SANITIZERS=OFF" "-DCOMPILER_RT_BUILD_XRAY=OFF" <del> "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" </del> "-DCOMPILER_RT_BUILD_PROFILE=OFF" ] ++ lib.optionals ((useLLVM || bareMetal) && !haveLibc) [ "-DCMAKE_C_COMPILER_WORKS=ON"

# "All of the code in the compiler-rt project is dual licensed under the MIT # license and the UIUC License (a BSD-like license)": license = with lib.licenses; [ mit ncsa ]; <del> # TODO/FIXME: Build fails on Hydra: broken = stdenv.isAarch64; </del> }; }
Change:
The build of fails on i686. Fails with: Found with Please run and paste the result. Maintainer information:
if you don't ping any maintainer likely nothing will happen ping
I think I never tried compiling intel-media-driver on i686 but only fixed an eval error in nixGL. The problem seems to be that it compiles 64 bit code on 32 bit.
I did a quick look what other distros do and found this helpful Debian patch () at least fixes. There are still some other compile errors that need fixing. Edit1: and with it compiles

Discussion:
src = fetchFromGitHub { owner = "intel"; repo = "gmmlib"; <del> rev = "${pname}-${version}"; </del> <ins> rev = "intel-gmmlib-${version}"; </ins> sha256 = "0dzqfgbd0fxl8rxgf5nmj1jd4izzaqfb0s53l96qwz1j57q5ybj5"; };

OpenCL(TM) and the Intel(R) Media Driver for VAAPI. ''; platforms = [ "x86_64-linux" "i686-linux" ]; <del> maintainers = with maintainers; [ primeos ]; </del> <ins> maintainers = with maintainers; [ primeos SuperSandro2000 ]; </ins> }; }

<del> { lib, stdenv, fetchFromGitHub , cmake, pkg-config , libva, libpciaccess, intel-gmmlib , enableX11 ? stdenv.isLinux, libX11 </del> <ins> { lib , stdenv , fetchFromGitHub , fetchpatch , cmake , pkg-config , libva , libpciaccess , intel-gmmlib , enableX11 ? stdenv.isLinux , libX11 </ins> }: stdenv.mkDerivation rec {

outputs = [ "out" "dev" ]; src = fetchFromGitHub { <del> owner  = "intel"; repo   = "media-driver"; rev    = "intel-media-${version}"; </del> <ins> owner = "intel"; repo = "media-driver"; rev = "intel-media-${version}"; </ins> sha256 = "1ch1bvqg6p0i7ahblhy0h9c43y2mfhqb25v1s344iqsrywwcpzzr"; }; <ins> patches = [ # fix platform detection (fetchpatch { url = "https://salsa.debian.org/multimedia-team/intel-media-driver-non-free/-/raw/master/debian/patches/0002-Remove-settings-based-on-ARCH.patch"; sha256 = "sha256-f4M0CPtAVf5l2ZwfgTaoPw7sPuAP/Uxhm5JSHEGhKT0="; }) ]; </ins> cmakeFlags = [ "-DINSTALL_DRIVER_SYSCONF=OFF" "-DLIBVA_DRIVERS_PATH=${placeholder "out"}/lib/dri"

"-DMEDIA_RUN_TEST_SUITE=OFF" ]; <ins> NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.system == "i686-linux") "-D_FILE_OFFSET_BITS=64"; </ins> nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ libva libpciaccess intel-gmmlib ]

changelog = "https://github.com/intel/media-driver/releases/tag/intel-media-${version}"; license = with licenses; [ bsd3 mit ]; platforms = platforms.linux; <del> maintainers = with maintainers; [ primeos jfrankenau ]; </del> <ins> maintainers = with maintainers; [ primeos jfrankenau SuperSandro2000 ]; </ins> }; }
Change:
The description of the options says: but since NixOS 21.05 it does not do that, when set to . Steps to reproduce the behavior: the following configuration: Accordingly to the documentation, and what happened before 21.05, the set of default fonts should be collected inside a subdirectory of . Commit removed the , replacing that with a new entry in the option. Given that my usage does not involve the X server at all (it's a web application that requires some of those fonts to build a report), as a workaround I re- that setting in the app configuration. Am I missing something, or should the documentation be rectified? author of ref'ed commit committer
I did remove the line because the fonts directory has been moved to and if is true, that directory is already being symlinked. The problem is that I (wrongly) assumed fontdir would only be used with X.org/wayland. The solution is exactly what you did: just add back . I'll open a pull request later to fix it. Thank you for reporting this.

Discussion:
config = mkIf cfg.enable { <del> # This is enough to make a symlink because the xserver # module already links all /share/X11 paths. </del> environment.systemPackages = [ x11Fonts ]; <ins> environment.pathsToLink = [ "/share/X11/fonts" ]; </ins> services.xserver.filesSection = '' FontPath "${x11Fonts}/share/X11/fonts"
Change:
Project description timelimit executes a command and terminates the spawned process after a given time with a given signal. A “warning” signal is sent first, then, after a timeout, a “kill” signal, similar to the way init(8) operates on shutdown. Metadata homepage URL: source URL: license: FreeBSD License (simplified 2-clause BSD) platforms: unix, linux, darwin

Discussion:
<ins> { lib, stdenv, fetchFromGitLab, perl }: stdenv.mkDerivation rec { pname = "timelimit"; version = "1.9.2"; src = fetchFromGitLab { owner = "timelimit"; repo = pname; rev = "release/${version}"; sha256 = "sha256-5IEAF8zCKaCVH6BAxjoa/2rrue9pRGBBkFzN57d+g+g="; }; checkInputs = [ perl ]; doCheck = true; installFlags = [ "PREFIX=$(out)" ]; INSTALL_PROGRAM = "install -m755"; INSTALL_DATA = "install -m644"; meta = with lib; { description = "Execute a command and terminates the spawned process after a given time with a given signal"; homepage = "https://devel.ringlet.net/sysutils/timelimit/"; license = licenses.bsd2; platforms = platforms.all; maintainers = with maintainers; [ figsoda ]; }; } </ins>

fftw = fftwSinglePrec; }; <ins> timelimit = callPackage ../tools/misc/timelimit { }; </ins> timewarrior = callPackage ../applications/misc/timewarrior { }; timew-sync-server = callPackage ../applications/misc/timew-sync-server { };
Change:
To make sure that we are on the same page: Kernel: System: Nix version: Nixpkgs version: leads to error: should correctly recognize file type (as through command), but it fails with error 4 should return for pdf-file as command. Described above. I noticed that for installed xdg-utility is just a bash script and there is command inside funtion. gives May be this is the reason.

Discussion:
<del> { stdenv, fetchzip, fetchFromGitHub, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto </del> <ins> { stdenv, fetchurl, fetchFromGitHub , file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto </ins> , w3m, which, gnugrep, gnused, coreutils , mimiSupport ? false, gawk ? null }:

in stdenv.mkDerivation rec { <del> name = "xdg-utils-1.1.0-rc3p46"; </del> <ins> name = "xdg-utils-${version}"; version = "1.1.1"; </ins> <del> src = fetchzip { name = "${name}.tar.gz"; url = "http://cgit.freedesktop.org/xdg/xdg-utils/snapshot/03577f987730.tar.gz"; sha256 = "1fs0kxalmpqv6x0rv4xg65w8r26sk464xisrbwp4p6a033y5x34l"; </del> <ins> src = fetchurl { url = "https://portland.freedesktop.org/download/${name}.tar.gz"; sha256 = "09a1pk3ifsndc5qz2kcd1557i137gpgnv3d739pv22vfayi67pdh"; </ins> }; # just needed when built from git

sed "s# $(basename "$tool") # $tool #g" -i "$out"/bin/* done <ins> substituteInPlace $out/bin/xdg-open  --replace "/usr/bin/printf" "${coreutils}/bin/printf" substituteInPlace $out/bin/xdg-mime  --replace "/usr/bin/file" "${file}/bin/file" </ins> sed 's# which # type -P #g' -i "$out"/bin/* '';
Change:
shows this for me: When I try to upgrade my system, I get the error “could not find any previously installed systemd-boot”. This is because the script can't deal with systemd-boot versions with a minor version appended to it, since the regex is : Fixing this is not quite straightforward sadly, since the version is later used for comparison, so fixing this requires adding support for proper major/minor version comparison in this script. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --??? Please run and paste the result. Maintainer information:
related

Discussion:
subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "--no-variables", "install"]) else: # Update bootloader to latest if needed <del> systemd_version = subprocess.check_output(["@systemd@/bin/bootctl", "--version"], universal_newlines=True).split()[1] </del> <ins> systemd_version = subprocess.check_output(["@systemd@/bin/bootctl", "--version"], universal_newlines=True).split()[2] </ins> sdboot_status = subprocess.check_output(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "status"], universal_newlines=True) # See status_binaries() in systemd bootctl.c for code which generates this <del> m = re.search("^W+File:.*/EFI/(BOOT|systemd)/.*.efi (systemd-boot (d+))$", </del> <ins> m = re.search("^W+File:.*/EFI/(BOOT|systemd)/.*.efi (systemd-boot ([d.]+[^)]*))$", </ins> sdboot_status, re.IGNORECASE | re.MULTILINE) <ins> needs_install = False </ins> if m is None: <del> print("could not find any previously installed systemd-boot") </del> <ins> print("could not find any previously installed systemd-boot, installing.") # Let systemd-boot attempt an installation if a previous one wasn't found needs_install = True </ins> else: <del> sdboot_version = m.group(2) if systemd_version > sdboot_version: </del> <ins> sdboot_version = f'({m.group(2)})' if systemd_version != sdboot_version: </ins> print("updating systemd-boot from %s to %s" % (sdboot_version, systemd_version)) <del> subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "update"]) </del> <ins> needs_install = True if needs_install: subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "update"]) </ins> mkdir_p("@efiSysMountPoint@/efi/nixos") mkdir_p("@efiSysMountPoint@/loader/entries")

machine.succeed( """ find /boot -iname '*.efi' -print0 |  <del> xargs -0 -I '{}' sed -i 's/#### LoaderInfo: systemd-boot .* ####/#### LoaderInfo: systemd-boot 001 ####/' '{}' </del> <ins> xargs -0 -I '{}' sed -i 's/#### LoaderInfo: systemd-boot .* ####/#### LoaderInfo: systemd-boot 000.0-1-notnixos ####/' '{}' </ins> """ ) output = machine.succeed("/run/current-system/bin/switch-to-configuration boot") <del> assert "updating systemd-boot from 001 to " in output </del> <ins> assert "updating systemd-boot from (000.0-1-notnixos) to " in output </ins> ''; }; }
Change:
Please run and paste the result. Maintainer information:
Maybe compiler-rt-libc is missing some files on the arm platform?
I marked this as stale due to inactivity. &rarr;

Discussion:
cmakeFlags = [ "-DNoVoip=True" ]; # libtgvoip required <ins> NIX_CFLAGS_COMPILE = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "-U__ARM_NEON__" ]; </ins> meta = with lib; { homepage = "https://github.com/ars3niy/tdlib-purple"; description = "libpurple Telegram plugin using tdlib";

function(generate_pkgconfig'  --replace '$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR}  --replace '$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} <ins> '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' sed -i "/vptr/d" test/CMakeLists.txt </ins> ''; meta = with lib; {
Change:
Since , the size of the ZFS kernel modules have increased massively. For example, was 881K prior to that change, and is now 9.4M. This is a big problem for ZFS users with small /boot partitions, because assuming a zpool is the rest of the disk, it's not possible to shrink the zpool to add more space to /boot, so updates are just impossible.
My last few initrds have ballooned by about as much (14M -27M) and my boot partition is full again. Honestly, I'd be in favour of disabling BTF by default (or even reverting the patch) with the next kernel bump.
Is ZFS not meant for systems with a lot of storage? In this case the fix would be to have a larger boot partition.
Stripping debug info prior to compression seems to solve the issue:

Discussion:
"INSTALL_MOD_PATH=${out}" ]; <ins> postBuild = optionalString buildKernel '' find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug ''; </ins> postInstall = optionalString buildKernel '' # Add reference that cannot be detected due to compressed kernel module mkdir -p "$out/nix-support"
Change:
fails with when building an image with many layers. is used to build a JSON containing the image layers, and those layers are passed to through the command line. At some point we're passing the max allowed argument list length resulting in the error. Steps to reproduce the behavior: A docker image is build successfully. Maintainer information:
Does this also happen with
It does not happen with . I created a patch (before I read your comment) to pass the layers via the store instead via the command line. I noticed does the same, except using the discouraged instead of . I submitted the patch anyway so we can fix this without waiting for to land.
Don't worry about the potential conflict. If you have that many layers, you'll probably benefit from . Would you be interested in contributing to that?
I thought so too, that's why I submitted it ;)
Oh :laughing: copy paste error. I intended to ask about .
I marked this as stale due to inactivity. &rarr;

Discussion:
# following lines, double-check that your code behaves properly # when the number of layers equals: #      maxLayers-1, maxLayers, and maxLayers+1, 0 <del> store_layers="$( paths | jq -sR ' rtrimstr("n") | split("n") | (.[:$maxLayers-1] | map([.])) + [ .[$maxLayers-1:] ] | map(select(length > 0)) </del> <ins> paths | jq -sR ' rtrimstr("n") | split("n") | (.[:$maxLayers-1] | map([.])) + [ .[$maxLayers-1:] ] | map(select(length > 0)) </ins> '  <del> --argjson maxLayers "$availableLayers" )" </del> <ins> --argjson maxLayers "$availableLayers" > store_layers.json # The index on $store_layers is necessary because the --slurpfile # automatically reads the file as an array. </ins> cat ${baseJson} | jq ' . + { "store_dir": $store_dir, "from_image": $from_image, <del> "store_layers": $store_layers, </del> <ins> "store_layers": $store_layers[0], </ins> "customisation_layer", $customisation_layer, "repo_tag": $repo_tag, "created": $created } ' --arg store_dir "${storeDir}"  --argjson from_image ${if fromImage == null then "null" else "'"${fromImage}"'"}  <del> --argjson store_layers "$store_layers"  </del> <ins> --slurpfile store_layers store_layers.json  </ins> --arg customisation_layer ${customisationLayer}  --arg repo_tag "$imageName:$imageTag"  --arg created "$created" | tee $out ''; result = runCommand "stream-${baseName}" { inherit (conf) imageName;