jiebi/CodeConvo huggingface dataset:
Change:
lists a listener option called that can be used to listen for incoming network connections only on the specified interface. Unfortunately does not accept this option. Steps to reproduce the behavior: This should evaluate cleanly. Incidentally, that assertion message drops the component in the attribute path, it might be nice to fix that.

Discussion:
allow_anonymous = 1; allow_zero_length_clientid = 1; auto_id_prefix = 1; <ins> bind_interface = 1; </ins> cafile = 1; capath = 1; certfile = 1;

}; listenerAsserts = prefix: listener: <del> assertKeysValid prefix freeformListenerKeys listener.settings </del> <ins> assertKeysValid "${prefix}.settings" freeformListenerKeys listener.settings </ins> ++ userAsserts prefix listener.users ++ imap0 (i: v: authAsserts "${prefix}.authPlugins.${toString i}" v)

}; bridgeAsserts = prefix: bridge: <del> assertKeysValid prefix freeformBridgeKeys bridge.settings </del> <ins> assertKeysValid "${prefix}.settings" freeformBridgeKeys bridge.settings </ins> ++ [ { assertion = length bridge.addresses > 0; message = "Bridge ${prefix} needs remote broker addresses";

globalAsserts = prefix: cfg: flatten [ <del> (assertKeysValid prefix freeformGlobalKeys cfg.settings) </del> <ins> (assertKeysValid "${prefix}.settings" freeformGlobalKeys cfg.settings) </ins> (imap0 (n: l: listenerAsserts "${prefix}.listener.${toString n}" l) cfg.listeners) (mapAttrsToList (n: b: bridgeAsserts "${prefix}.bridge.${n}" b) cfg.bridges) ];

])); RemoveIPC = true; RestrictAddressFamilies = [ <del> "AF_UNIX"  # for sd_notify() call </del> <ins> "AF_UNIX" </ins> "AF_INET" "AF_INET6" <ins> "AF_NETLINK" </ins> ]; RestrictNamespaces = true; RestrictRealtime = true;

port = 1888; tlsPort = 1889; anonPort = 1890; <ins> bindTestPort = 1891; </ins> password = "VERY_secret"; hashedPassword = "$7$101$/WJc4Mp+I+uYE9sR$o7z9rD1EYXHPwEP5GqQj6A7k4W1yVbePlb8TqNcuOLV9WNCiDgwHOB0JHC1WCtdkssqTBduBNUnUGd6kmZvDSw=="; topic = "test/foo";

}; }; } <ins> { settings.bind_interface = "eth0"; port = bindTestPort; } </ins> ]; }; };

}; testScript = '' <ins> import json </ins> def mosquitto_cmd(binary, user, topic, port): return ( "mosquitto_{} "

start_all() server.wait_for_unit("mosquitto.service") <ins> with subtest("bind_interface"): addrs = dict() for iface in json.loads(server.succeed("ip -json address show")): for addr in iface['addr_info']: # don't want to deal with multihoming here assert addr['local'] not in addrs addrs[addr['local']] = (iface['ifname'], addr['family']) # mosquitto grabs *one* random address per type for bind_interface (has4, has6) = (False, False) for line in server.succeed("ss -HlptnO sport = ${toString bindTestPort}").splitlines(): items = line.split() if "mosquitto" not in items[5]: continue listener = items[3].rsplit(':', maxsplit=1)[0].strip('[]') assert listener in addrs assert addrs[listener][0] == "eth0" has4 |= addrs[listener][1] == 'inet' has6 |= addrs[listener][1] == 'inet6' assert has4 assert has6 </ins> with subtest("check passwords"): client1.succeed(publish("-m test", "password_store")) client1.succeed(publish("-m test", "password_file"))
Change:
<!-- Note that these are hard requirements --<!-- You can use the "Go to file" functionality on GitHub to find the package Then you can go to the history for this package Find the latest "packagename: oldversion -newversion" commit The "newversion" is the current version of the package --- <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- name: <!-- The current version can be found easily with the same process as above for checking the master branch If an open PR is present for the package, take this version as the current one and link to the PR --current version: 2.1.1 desired version: 2.1.3 <!-- Search your package here: If no maintainer is listed for your package, tag the person that last updated the package --maintainers: Please tag this issue in your PR. It seems that this version has a few changed dependencies ( instead of )

Discussion:
python3.pkgs.buildPythonApplication rec { pname = "apkid"; <del> version = "2.1.1"; </del> <ins> version = "2.1.3"; format = "setuptools"; </ins> src = fetchFromGitHub { owner = "rednaga"; repo = "APKiD"; rev = "v${version}"; <del> sha256 = "1p6kdjjw2jhwr875445w43k46n6zwpz0l0phkl8d3y1v4gi5l6dx"; </del> <ins> hash = "sha256-U4CsPTA0fXCzj5iLTbLFGudAvewVCzxe4xl0osoBy5A="; </ins> }; propagatedBuildInputs = with python3.pkgs; [

''; postPatch = '' <del> # The next release will have support for later yara-python releases </del> <ins> # We have dex support enabled in yara-python </ins> substituteInPlace setup.py  <del> --replace "yara-python==3.11.0" "yara-python" </del> <ins> --replace "yara-python-dex>=1.0.1" "yara-python" </ins> ''; <del> pythonImportsCheck = [ "apkid" ]; </del> <ins> pythonImportsCheck = [ "apkid" ]; </ins> meta = with lib; { description = "Android Application Identifier";
Change:
Steps to reproduce the behavior: librewolf from nixpkgs master Add any other context about the problem here. Please run and paste the result.
I have the exact same issue but my machine is a little slower :|. Also this means (not just Git ) is now broken.
I also reproduced this on master.
I think it's related to . I'm guessing the crash reporter symbols aren't generated because we disable the crash reporter. Running some tests to confirm.
is the first broken commit on master.
I'm going to close this. The PR by fixes the problem.

Discussion:
outputs = [ "out" <del> "symbols" ]; </del> <ins> ] ++ lib.optionals crashreporterSupport [ "symbols" ]; </ins> # Add another configure-build-profiling run before the final configure phase if we build with pgo preConfigurePhases = lib.optionals pgoSupport [

nativeBuildInputs = [ autoconf cargo <del> dump_syms </del> llvmPackages.llvm # llvm-objdump makeWrapper nodejs

which wrapGAppsHook ] <ins> ++ lib.optionals crashreporterSupport [ dump_syms ] </ins> ++ lib.optionals pgoSupport [ xvfb-run ] ++ extraNativeBuildInputs;

# Generate build symbols once after the final build # https://firefox-source-docs.mozilla.org/crash-reporting/uploading_symbol.html <del> preInstall = '' </del> <ins> preInstall = lib.optionalString crashreporterSupport '' </ins> ./mach buildsymbols mkdir -p $symbols/ cp mozobj/dist/*.crashreporter-symbols.zip $symbols/ <ins> '' + '' </ins> cd mozobj '';
Change:
Steps to reproduce the behavior: textadept (10.8) The error is in building Scintilla <!-- 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.

Discussion:
<del> { lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }: </del> <ins> { lib, gcc10Stdenv, fetchhg, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }: </ins> <del> stdenv.mkDerivation rec { </del> <ins> gcc10Stdenv.mkDerivation rec { </ins> version = "10.8"; pname = "textadept";
Change:
Project description Autopsy is a digital forensics platform and graphical interface to The Sleuth Kit and other digital forensics tools. Metadata homepage URL: source URL: license: Apache 2.0 platforms: Linux, macOS
related to and

Discussion:
<ins> { stdenv, lib, makeWrapper, fetchzip, testdisk, imagemagick, jdk, findutils, sleuthkit, ... }: let jdkWithJfx = jdk.override (lib.optionalAttrs stdenv.isLinux { enableJavaFX = true; }); in stdenv.mkDerivation rec { pname = "autopsy"; version = "4.21.0"; src = fetchzip { url = "https://github.com/sleuthkit/autopsy/releases/download/autopsy-${version}/autopsy-${version}.zip"; sha256 = "32iOQA3+ykltCYW/MpqCVxyhh3mm6eYzY+t0smAsWRw="; }; nativeBuildInputs = [ makeWrapper findutils ]; buildInputs = [ testdisk imagemagick jdkWithJfx ]; installPhase = '' runHook preInstall cp -r . $out # Run the provided setup script to make files executable and copy sleuthkit TSK_JAVA_LIB_PATH="${sleuthkit}/share/java" bash $out/unix_setup.sh -j '${jdkWithJfx}' -n autopsy substituteInPlace $out/bin/autopsy  --replace-warn 'APPNAME=`basename "$PRG"`' 'APPNAME=autopsy' wrapProgram $out/bin/autopsy  --run 'export SOLR_LOGS_DIR="$HOME/.autopsy/dev/var/log"'  --run 'export SOLR_PID_DIR="$HOME/.autopsy/dev"'  --prefix PATH : "${lib.makeBinPath [ testdisk imagemagick jdkWithJfx ]}" runHook postInstall ''; meta = { description = "Graphical interface to The Sleuth Kit and other open source digital forensics tools"; homepage = "https://www.sleuthkit.org/autopsy"; changelog = "https://github.com/sleuthkit/autopsy/releases/tag/autopsy-${version}"; # Autopsy brings a lot of vendored dependencies license = with lib.licenses; [ asl20 ipl10 lgpl3Only lgpl21Only zlib wtfpl bsd3 cc-by-30 mit gpl2Only ]; maintainers = with lib.maintainers; [ zebreus ]; mainProgram = "autopsy"; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; # Autopsy theoretically also supports darwin platforms = lib.platforms.x86_64; }; } </ins>
Change:
Right now, the list of providers contains a provider which is an alpha version (: ). Terraform treats these specially, and requires you to opt-in by explicitly specifying the version of the provider, which makes configurations using brittle. Steps to reproduce the behavior: a terraform configuration that requires the provider the following error: and rerun success I'd expect for the script to not commit this non-stable version so that updating Nixpkgs (and thus potentially the provider(s)) does not break terraform configurations. N/A. N/A. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- system: host os: multi-user?: sandbox: version: channels(root): channels(vin): nixpkgs:

Discussion:
"owner": "integrations", "provider-source-address": "registry.terraform.io/integrations/github", "repo": "terraform-provider-github", <del> "rev": "v4.25.0-alpha", "sha256": "sha256-9BE19VywtNIeDfjBKzle5nGFPmpS8lHV60w0h2xTztU=", </del> <ins> "rev": "v4.24.1", "sha256": "sha256-1fwHMN2HIVl+8ZL7OtP1U5ORc41e7Tm3qEpMqIgWL20=", </ins> "vendorSha256": null, <del> "version": "4.25.0-alpha" </del> <ins> "version": "4.24.1" </ins> }, "gitlab": { "owner": "gitlabhq",

"owner": "equinix", "provider-source-address": "registry.terraform.io/equinix/metal", "repo": "terraform-provider-metal", <del> "rev": "v3.3.0-alpha.3", "sha256": "sha256-wuZp0Be8a84y7JqpCGnBDPXgNG8JJcNWsIICP3ZjSVk=", "vendorSha256": "sha256-Ln9EyycPduVuj+JefH9f+Q5KlNGvbcwcEDgaqH2M0So=", "version": "3.3.0-alpha.3" </del> <ins> "rev": "v3.2.2", "sha256": "193897farpyb3zxz6p79mfaf04ccin7xdirbkclqb3x3c56jy0xi", "vendorSha256": null, "version": "3.2.2" </ins> }, "minio": { "owner": "aminueza",

if [[ ${old_version} == "${version}" && ${force} != 1 && -z ${vendorSha256} && ${old_vendor_sha256} != "${vendorSha256}" ]]; then echo_provider "already at version ${version}" exit <del> else echo_provider "updating from ${old_version} to ${version}" </del> fi <ins> if [[ ${version} =~ (alpha|beta|pre) && ${force} != 1 ]]; then echo_provider "not updating to unstable version ${version}" exit fi echo_provider "updating from ${old_version} to ${version}" </ins> update_attr version "${version}" provider_source_url="$(jq -r '.source' <<<"${registry_response}")"
Change:
Python module to connect with OpenSearch, Amazon's ElasticSearch fork. Also see and Metadata homepage URL: source URL: license: apache-2.0 platforms: unix, linux, darwin, ...

Discussion:
<ins> { aiohttp , botocore , buildPythonPackage , certifi , fetchFromGitHub , lib , mock , pytest-asyncio , pytestCheckHook , pyyaml , requests , urllib3 }: buildPythonPackage rec { pname = "opensearch-py"; version = "2.1.1"; format = "setuptools"; src = fetchFromGitHub { owner = "opensearch-project"; repo = "opensearch-py"; rev = "refs/tags/v${version}"; hash = "sha256-uJ6fdRPDK76qKHE4E6dI01vKgvfqbc6A1RCwnOtuOTY="; }; propagatedBuildInputs = [ botocore certifi requests urllib3 ]; nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook pyyaml ] ++ passthru.optional-dependencies.async; disabledTestPaths = [ # require network "test_opensearchpy/test_async/test_connection.py" "test_opensearchpy/test_async/test_server" "test_opensearchpy/test_connection.py" "test_opensearchpy/test_server" "test_opensearchpy/test_server_secured" ]; passthru.optional-dependencies.async = [ aiohttp ]; meta = { description = "Python low-level client for OpenSearch"; homepage = "https://github.com/opensearch-project/opensearch-py"; changelog = "https://github.com/opensearch-project/opensearch-py/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ mcwitt ]; }; } </ins>

openrouteservice = callPackage ../development/python-modules/openrouteservice { }; <ins> opensearch-py = callPackage ../development/python-modules/opensearch-py { }; </ins> opensensemap-api = callPackage ../development/python-modules/opensensemap-api { }; opensfm = callPackage ../development/python-modules/opensfm { };
Change:
I see that you started working on a new initramfs generator here I wonder if you are interested to look at my project called Booster is a small and fast initramfs. It does not require external libraries (it is a static go binary) and generates a minimalistic image (no systemd, no even libc by default). It supports root filesystem encryption, clevis-type binding, remote unlocking, etc... It is currently packaged at Arch, Void, Alpine Linuxes and tested at Fedora as well. I am happy to answer your questions about the project. Metadata homepage URL: source URL: license: MIT platforms: linux
We are currently moving towards using systemd in initrd for NixOS, but if you would like to package in Nix for inclusion in nixpkgs, a PR would be welcome. In theory we could include a NixOS option for using instead in NixOS's initrd, but I don't expect we'll be able to maintain 3 different initrd infrastructures (the old shell script infra, the new systemd infra, and a new booster infra)
If you provide some framework that allows integrating pluggable initrd then it should work. The framework should be able to call the initrd hooks on events like "kernel updated", "package updated". Many distros use this technique - Arch, Debian, Fedora, ... the framework itself needs to be created by nixos team. But it is relatively simple and stable codebase. I do not expect much effort to maintain this code. As of maintenance itself - I'll be happy to do it for NixOS users the same way as I currently do for Arch/Void/Alpine users.

Discussion:
<ins> { bash , binutils , buildGoModule , fetchFromGitHub , kbd , lib , libfido2 , lvm2 , lz4 , makeWrapper , mdadm , unixtools , xz , zfs }: buildGoModule rec { pname = "booster"; version = "0.9"; src = fetchFromGitHub { owner = "anatol"; repo = pname; rev = version; hash = "sha256-kalVFVBb+ngoUpm+iiIHGS6vBVLEvTVyKuSMSMbp7Qc="; }; vendorHash = "sha256-GD+nsT4/Y2mTF+ztOC3N560BY5+QSfsPrXZ+dJYtzAw="; postPatch = '' substituteInPlace init/main.go --replace "/usr/bin/fsck" "${unixtools.fsck}/bin/fsck" ''; # integration tests are run against the current kernel doCheck = false; nativeBuildInputs = [ kbd lz4 makeWrapper xz ]; postInstall = let runtimeInputs = [ bash binutils kbd libfido2 lvm2 mdadm zfs ]; in '' wrapProgram $out/bin/generator --prefix PATH : ${lib.makeBinPath runtimeInputs} wrapProgram $out/bin/init --prefix PATH : ${lib.makeBinPath runtimeInputs} ''; meta = with lib; { description = "Fast and secure initramfs generator "; homepage = "https://github.com/anatol/booster"; license = licenses.mit; maintainers = with maintainers; [ urandom ]; mainProgram = "init"; }; } </ins>

bonzomatic = callPackage ../applications/editors/bonzomatic { }; <ins> booster = callPackage ../applications/system/booster {}; </ins> bottles = callPackage ../applications/misc/bottles/fhsenv.nix { }; bottles-unwrapped = callPackage ../applications/misc/bottles { };
Change:
in (presumably) many builds on darwin example of a pr fixing such a issue adding the following on darwin fixes the issue however according to that should be done with launchd on darwin already so is that setting not always applied? command to check
opened

Discussion:
cp -a docs/swagger $out/share/polaris-swagger ''; <ins> preCheck = '' # 'Err' value: Os { code: 24, kind: Uncategorized, message: "Too many open files" } ulimit -n 4096 ''; </ins> passthru.updateScript = ./update.sh; meta = with lib; {
Change:
Project description Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices Can run 64-bit x86 binaries on ARM, like games. Metadata homepage URL: source URL: / license: mit platforms: linux

Discussion:
<ins> { lib , stdenv , fetchFromGitHub , cmake , python3 }: stdenv.mkDerivation rec { pname = "box64"; version = "0.1.8"; src = fetchFromGitHub { owner = "ptitSeb"; repo = pname; rev = "v${version}"; hash = "sha256-6k8Enbafnj19ATtgmw8W7LxtRpM3Ousj1bpZbbtq8TM="; }; nativeBuildInputs = [ cmake python3 ]; cmakeFlags = [ "-DNOGIT=1" ] ++ ( if stdenv.hostPlatform.system == "aarch64-linux" then [ "-DARM_DYNAREC=ON" ] else [ "-DLD80BITS=1" "-DNOALIGN=1" ] ); installPhase = '' runHook preInstall install -Dm 0755 box64 "$out/bin/box64" runHook postInstall ''; doCheck = true; checkPhase = '' runHook preCheck ctest runHook postCheck ''; doInstallCheck = true; installCheckPhase = '' runHook preInstallCheck $out/bin/box64 -v runHook postInstallCheck ''; meta = with lib; { homepage = "https://box86.org/"; description = "Lets you run x86_64 Linux programs on non-x86_64 Linux systems"; license = licenses.mit; maintainers = with maintainers; [ gador ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; }; } </ins>

wxGTK = wxGTK30; }; <ins> box64 = callPackage ../applications/emulators/box64 { }; </ins> caprice32 = callPackage ../applications/emulators/caprice32 { }; ccemux = callPackage ../applications/emulators/ccemux { };
Change:
hooks with work by . This fails because is a plain binary that doesn’t have in its environment. Steps to reproduce the behavior:
A workaround is to use the binary from instead.
It seems the above fix is insufficient. While works correctly, the hook installed into doesn't have the Python environment with the pygrep package. tested on:
Still same problem...
If you pull in the above mentioned into your environment, it should work. For best results, I recommend putting it into your (& use direnv) or systemPackages.
Potential fix which doesn't require changing the python provided in the nix shell:

Discussion:
patches = [ ./languages-use-the-hardcoded-path-to-python-binaries.patch ./hook-tmpl.patch <ins> ./pygrep-pythonpath.patch </ins> ]; propagatedBuildInputs = [

<ins> diff --git a/pre_commit/languages/pygrep.py b/pre_commit/languages/pygrep.py index ec55560..44e08a1 100644 --- a/pre_commit/languages/pygrep.py +++ b/pre_commit/languages/pygrep.py @@ -98,7 +98,7 @@ def run_hook( color: bool, ) -> tuple[int, bytes]: cmd = (sys.executable, '-m', __name__, *args, entry) -    return xargs(cmd, file_args, color=color) +    return xargs(cmd, file_args, color=color, env={ "PYTHONPATH": ':'.join(sys.path) }) def main(argv: Sequence[str] | None = None) -> int: </ins>
Change:
When i try to rebuild my mobile nixos on the pinephone from latest unstable channel i get this error. This issues is not present at . Steps to reproduce the behavior: Pinephone from image config -rebuild no errors If applicable, add screenshots to help explain your problem. Add any other context about the problem here. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --- system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
Bisected this to .
I think this is better to fix in mobile-nixos.

Discussion:
stdenv.mkDerivation (rec { <del> name = "gnutls-3.1.3"; </del> <ins> name = "gnutls-3.1.10"; </ins> src = fetchurl { <del> url = "mirror://gnu/gnutls/${name}.tar.xz"; sha256 = "0fff9frz0ycbnppfn0w4a2s9x27k21l4hh9zbax3v7a8cg33dcpw"; </del> <ins> url = "mirror://gnupg/gnutls/v3.1/${name}.tar.xz"; sha256 = "0in6wxlvpv48maawmbg3jysq2rhjqxypgi6kkr173hc8kksp6lsk"; </ins> }; # Note: GMP is a dependency of Nettle, whose public headers include
Change:
Qgroundcontrol is not able to find a TTS plugin, so the TTS feature doesn't work. from NixOS/nixpkgs/ (probably also from stable and unstable) "No text-to-speech plug-ins were found." and the missing speech output I would expect that Qgroundcontrol can find a usable TTS module. I already tried adding speechd and espeak to the of , but that didn't fix anything. Also the command from works fine.
This is an issue with qtspeech, see:

Discussion:
<del> { qtModule }: </del> <ins> { qtModule, speechd, pkg-config }: </ins> qtModule { pname = "qtspeech"; qtInputs = [ ]; <ins> buildInputs = [ speechd ]; nativeBuildInputs = [ pkg-config ]; </ins> outputs = [ "out" "dev" ]; }
Change:
Currently the DE is always enabled, see Because of that, feh is always to system PATH, in here: … because in here: … is always true, as the always contains , which doesn’t define . This whole code is totally pointless if we cannot turn off. Idea: let’s make optional, but by default turned on, not to break people’s setups. How I stumbled upon this? While configuring a machine for my mom, with Xfce enabled, I’ve noticed that feh is the default app for opening images, while it shouldn’t even be in . Turn on Xfce, open file manager, double click on a photo ⇒ feh opens instead of Xfce’s Ristretto. System: 16.03.1162. (Emu) Nix version: nix-env (Nix) 1.11.2 Nixpkgs version: "16.03.1162."
Still a problem in 18.03pre116054. (Impala). is the default photo viewer on my system.
This needs to be reopened.

Discussion:
}; <del> config = { services.xserver.displayManager.session = cfg.session.list; environment.systemPackages = mkIf cfg.session.needBGPackages [ pkgs.feh ]; # xsetroot via xserver.enable }; </del> <ins> xcfg.displayManager.session = cfg.session.list; </ins> }
Change:
Currently the DE is always enabled, see Because of that, feh is always to system PATH, in here: … because in here: … is always true, as the always contains , which doesn’t define . This whole code is totally pointless if we cannot turn off. Idea: let’s make optional, but by default turned on, not to break people’s setups. How I stumbled upon this? While configuring a machine for my mom, with Xfce enabled, I’ve noticed that feh is the default app for opening images, while it shouldn’t even be in . Turn on Xfce, open file manager, double click on a photo ⇒ feh opens instead of Xfce’s Ristretto. System: 16.03.1162. (Emu) Nix version: nix-env (Nix) 1.11.2 Nixpkgs version: "16.03.1162."
Still a problem in 18.03pre116054. (Impala). is the default photo viewer on my system.
This needs to be reopened.

Discussion:
}; <del> config = { services.xserver.displayManager.session = cfg.session.list; environment.systemPackages = mkIf cfg.session.needBGPackages [ pkgs.feh ]; # xsetroot via xserver.enable }; </del> <ins> config.services.xserver.displayManager.session = cfg.session.list; </ins> }