jiebi/CodeConvo huggingface dataset:
Change:
{fixup}; }}""" <ins> def get_plain_derivation(url, sha256): return f"""fetchurl {{ url = "{url}"; sha256 = "{sha256}"; }}""" with open(out_path, "w") as f: f.write("{ lib, fetchurl, glibc, pkgs, stdenv }:nn") f.write("rec {n") def process_item(item): uuid, src = item lines = [] artifacts = toml.loads(subprocess.check_output([julia_path, extract_artifacts_script, uuid, src]).decode()) if not artifacts: return f'  uuid-{uuid} = {{}};n' lines.append(f'  uuid-{uuid} = {{') for artifact_name, details in artifacts.items(): if len(details["download"]) == 0: continue download = details["download"][0] url = download["url"] sha256 = download["sha256"] git_tree_sha1 = details["git-tree-sha1"] parsed_url = urlparse(url) if any(parsed_url.path.endswith(x) for x in archive_extensions): derivation = get_archive_derivation(uuid, artifact_name, url, sha256) else: derivation = get_plain_derivation(url, sha256) </ins> lines.append(f"""    "{artifact_name}" = {{ sha1 = "{git_tree_sha1}"; <del> path = stdenv.mkDerivation {derivation}; </del> <ins> path = {derivation}; </ins> }};n""") lines.append('  };n')

Discussion:
I'm trying out the new Julia framework, but the following command fails Am I doing it wrong? If I only ask for the "Plots" package it works. <!-- 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. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Are you doing any overrides?
Hmm, this is arising from a Julia artifact in here: The artifact URL is given as The Nix code we generate as part of the Julia machinery looks like this: The URL seems to be valid. The problem seems to be that it doesn't end in . So the Nix derivation downloads it, but doesn't unzip or untar it, which is why we run into a problem in the . I'm thinking we need to stick a into the call. I'll try this in a bit.
This works for this example if I add a name ending with . The problem, of course, is that Julia artifacts are not necessarily tarballs, but can be arbitrary files. I think what we need to do is parse the artifact URL and determine if it's an archive that the default knows how to handle. If so, we keep using the current derivation, and otherwise replace it with a plain call. Per the , the supported archive extensions are: ? The manual may not perfectly match the actual code; the relevant part of the default is .
No
Unfortunately I've found another failing case, unrelated to the previous (it fails with PR ) It fails to build , likely for the reason I reported in PR
Hi should I open another issue for ?
Or just reopen this one and use it as a tracker for future issues?
Let's reopen this one for the known issues.
This problem is due to the upstream issue where it can't precompile in a headless environment, as discussed originally in . It's also mentioned in the . The workaround is to use . Maybe we could open a Nixpkgs issue to track the upstream issue, but I view this primarily as an upstream problem.
You are right, I forgot about the workaround. Disabling pre-compilation works indeed.
Change:
"d '${cfg.ipnsMountDir}' - ${cfg.user} ${cfg.group} - -" ]; <del> systemd.services.ipfs-init = recursiveUpdate commonEnv { </del> <ins> systemd.packages = [ pkgs.ipfs ]; systemd.services.ipfs-init = { </ins> description = "IPFS Initializer"; <del> before = [ "ipfs.service" "ipfs-offline.service" "ipfs-norouting.service" ]; </del> <ins> environment.IPFS_PATH = cfg.dataDir; path = [ pkgs.ipfs ]; </ins> script = '' if [[ ! -f ${cfg.dataDir}/config ]]; then

Discussion:
Describe the bug IPFS module should use upstream systemd files for socket-based activation. Right now we have a custom service file that is different from the one in ipfs-go 0.5.0. This is something quickly I can do. /cc
Change:
--url url       Any url understood by 'git clone'. --rev ref       Any sha1 or references (such as refs/heads/master) --hash h        Expected hash. <ins> --branch-name   Branch name to check out into </ins> --deepClone     Clone the entire repository. --no-deepClone  Make a shallow clone of just the required ref. --leave-dotGit  Keep the .git directories.

Discussion:
Describe the bug does not show --branch-name in its help message To Reproduce Steps to reproduce the behavior: Expected behavior I would expect to see a description of the argument. Metadata Maintainer information:
Should be fixed by
Change:
, version , pluginOverrides ? { } , disableAllPlugins ? false <ins> # tests , runCommand , beets </ins> }@inputs: let inherit (lib) attrNames attrValues concatMap;

Discussion:
Using the beets package together with replaygain setting stopped working on unstable and master branches. With the following config: Beets will not launch and just returns an error: Beets should launch correctly without a error. A workaround to make it work again is to replace the backend to . Please run and paste the result.
This also breaks the mopidy-youtube extension, with the same error:
Mopidy should be fixed by in the next nixos-unstable bump. I imagine the cause of the issue for beets is similar
Yep, that's it. Fix in the PR.
Change:
}; patches = [ <del> (fetchpatch { name = "gsd_3-compatibility.patch"; url = "https://github.com/mdtraj/mdtraj/commit/81209d00817ab07cfc4668bf5ec88088d16904c0.patch"; hash = "sha256-ttNmij7csxF0Z5wPPwhGumRX055W2IgFjRAe6nI6GNY="; }) # remove pkg_resources usage # https://github.com/mdtraj/mdtraj/pull/1837 (fetchpatch { name = "fix-runtime-error.patch"; url = "https://github.com/mdtraj/mdtraj/commit/02d44d4db7039fceb199c85b4f993244804f470d.patch"; hash = "sha256-nhbi3iOrDSM87DyIp1KVt383Vvb6aYOgkjuYzviqiq8="; }) # remove distutils usage # https://github.com/mdtraj/mdtraj/pull/1834 (fetchpatch { name = "python312-compatibility.patch"; url = "https://github.com/mdtraj/mdtraj/commit/95d79747deef42c976ca362a57806b61933409f3.patch"; hash = "sha256-Cq7/d745q6ZgAyWGM4ULnSsWezsbnu1CjSz5eqYSb+g="; }) </del> # disable intrinsics when SIMD is not available # TODO: enable SIMD with python3.12 # https://github.com/mdtraj/mdtraj/pull/1884

Discussion:
system: host os: multi-user?: sandbox: version: channels(root): nixpkgs: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Change:
githubId = 1773511; name = "Adrien Devresse"; }; <ins> addict3d = { email = "nickbathum@gmail.com"; github = "addict3d"; githubId = 49227; name = "Nick Bathum"; }; </ins> adisbladis = { email = "adis@blad.is"; github = "adisbladis";

Discussion:
Project description Generate architecture diagrams with python code. Allows for rapid iteration. Metadata homepage URL: source URL: license: mit platforms: linux, darwin This library requires graphviz (both native and the python library).
Change:
<del> diff --git a/src/wslu-header b/src/wslu-header index 5f33925..159c6af 100644 --- a/src/wslu-header +++ b/src/wslu-header @@ -169,11 +169,17 @@ if [ -f "$HOME/.config/wslu/conf" ]; then debug_echo "$HOME/.config/wslu/conf found, sourcing" source "$HOME/.config/wslu/conf" fi + if [ -f "$HOME/.wslurc" ]; then debug_echo "$HOME/.wslurc found, sourcing" source "$HOME/.wslurc" fi +if [ -f "@out@/share/wslu/conf" ]; then +	debug_echo "@out@/share/wslu/conf found, sourcing" +	source "@out@/share/wslu/conf" +fi + # functions function help { </del>

Discussion:
Installing is not placing the in the correct directory for it to be found by xdg-mime. Install wslu using Nix. Two things happen: should set wslview as the default hander (you can check if it worked by running ) shows at . This is probably causing 1. to not work. N/A I a workaround in the mean time: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Change:
libacr38u = callPackage ../tools/security/libacr38u { }; <ins> libadwaita = callPackage ../development/libraries/libadwaita { }; </ins> libaec = callPackage ../development/libraries/libaec { }; libagar = callPackage ../development/libraries/libagar { };

Discussion:
Project description Library to help with developing UI for mobile devices using GTK/GNOME Metadata homepage URL: source URL: license: lgpl21Plus platforms: linux cc This is needed for e.g.
Added it to GNOME 41 to do list. Currently, there are no releases.
Change:
# man page PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib_newsfeed ])}/bin:$PATH"  make -C doc man <del> install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1 </del> <ins> installManPage doc/build/man/khal.1 </ins> <del> # desktop </del> <ins> # .desktop file </ins> install -Dm755 misc/khal.desktop -t $out/share/applications ''; doCheck = !stdenv.isAarch64; <del> checkInputs = [ glibcLocales pytestCheckHook ]; </del> LC_ALL = "en_US.UTF-8"; disabledTests = [

Discussion:
Steps to reproduce the behavior: from version error on pytz Fixed upstream, but not released Please run and paste the result.
Could you please take a look at Thanks
Change:
}; pinentry_qt4 = pinentry_ncurses.override { <del> inherit qt4; </del> <ins> qt = qt4; </ins> }; <del> pinentry_qt5 = libsForQt5.callPackage ../tools/security/pinentry/qt5.nix { libcap = if stdenv.isDarwin then null else libcap; </del> <ins> pinentry_qt5 = pinentry_ncurses.override { qt = qt5.qtbase; </ins> }; pinentry_mac = callPackage ../tools/security/pinentry-mac {

Discussion:
Setting breaks . The reason being that defines and as follows: Which then overrides with, Resulting in an infinite loop. This appears to be a regression due to . Set , try to build . Using .
This is downfall from
what should be done about this?
Did not we fix this in Anyway, should fix pinentry for good.
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . on the on .
how does the situation look like now? Is this specific issue fixed?
I marked this as stale due to inactivity. &rarr;
Closing due to inactivity. Please reopen if it's still broken.
Change:
mkDerivationWith python3.pkgs.buildPythonApplication rec { pname = "openshot-qt"; <del> version = "2.6.1"; </del> <ins> version = "3.0.0"; </ins> src = fetchFromGitHub { owner = "OpenShot"; repo = "openshot-qt"; rev = "v${version}"; <del> hash = "sha256-29fAg4SDoAFzv6q43Dcs2HdaeKZfPEzlGqCcICiPSF0="; </del> <ins> hash = "sha256-h4R2txi038m6tzdKYiXIB8CiqWt2MFFRNerp1CFP5as="; </ins> }; nativeBuildInputs = [

Discussion:
<!-- 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: openshot-qt <!-- 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.6.1 desired version: 3.0.0 <!-- Search your package here: If no maintainer is listed for your package, tag the person that last updated the package -- Please tag this issue in your PR.
Change:
buildPythonPackage rec { pname = "cvxpy"; <del> version = "1.2.3"; </del> <ins> version = "1.3.0"; </ins> format = "pyproject"; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; <del> hash = "sha256-IaeUtv0vdgqddm1o++SUZTT2Xom3Pom4icVQOYVVi4Y="; </del> <ins> hash = "sha256-Zszme9xjW5spBmUQR0OSwM/A2V24rdpAENyM3Y4EYlA="; </ins> }; postPatch = ''

Discussion:
This version of CVXPY supports Python 3.7 through 3.11, and is our first release that supports Python 3.11. The update should fix it. See full build log with color in terminal: Steps to reproduce the behavior: successful building package nixpkgs master at See also this update PR: It works with python310. do you want to have a look? system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
Change:
zig_0_10 = darwin.apple_sdk_11_0.callPackage ../development/compilers/zig/0.10.nix { llvmPackages = llvmPackages_15; }; <del> # Zig 0.10.1 is broken on Darwin, so use 0.9.1 on Darwin instead. zig = if stdenv.isDarwin then zig_0_9 else zig_0_10; </del> <ins> zig = zig_0_10; </ins> zimlib = callPackage ../development/libraries/zimlib { };

Discussion:
nixpkgs
Please don't assign people to issues without talking to them first. I am not that into Darwin to be a help here.
ncdu is no longer compatible with Zig 0.10, so WONTFIX until LLVM issues on Darwin are resolved.
TIL that exists — I'm switching to that, until these ongoing (upstream) stability issues are resolved.
Change:
def copy_from_file(file: str, dry_run: bool = False) -> str: store_file_path = os.path.realpath(file) suffix = os.path.basename(store_file_path) <del> store_dir = os.path.basename(os.path.dirname(store_file_path)) efi_file_path = f"{NIXOS_DIR}/{store_dir}-{suffix}.efi" </del> <ins> store_subdir = os.path.relpath(store_file_path, start=STORE_DIR).split(os.path.sep)[0] efi_file_path = f"{NIXOS_DIR}/{suffix}.efi" if suffix == store_subdir else f"{NIXOS_DIR}/{store_subdir}-{suffix}.efi" </ins> if not dry_run: copy_if_not_exists(store_file_path, f"{BOOT_MOUNT_POINT}{efi_file_path}") return efi_file_path def write_entry(profile: str | None, generation: int, specialisation: str | None, machine_id: str, bootspec: BootSpec, current: bool) -> None: if specialisation:

Discussion:
Spent a fair bit debugging something. Came down to my DTB being out of sync. The lack of hash prefix should've warned me sooner. The issue is that the dtb is not copied with anything generation specific in the filename. The builder assumes the file is CA-addressed by parent store path, to avoid redundant copies. However, it also assumes it can make this path by taking basename of the specified file. This is file for initrd/kernel since they are second level in the derivation. However, this can't be assumed, and/or isn't true for the DTB. I would just send a PR but I can't think of a super easy/clean way to do this. The current approach (of assuming the depth of the file) is not great, IMO, but nicely avoids hashing the individual files, etc. Using a regex or chopping the prefix is not viable. The only idea I have -- use a regex to just capture the first instead of a b32 looking hash and hope that's good enough. I can do this depending on vibes. Steps to reproduce the behavior: two generation bug in older gen dtb from wherever it gets put (esp mount point or xbootldr), just to prove -install, which re-creates files for all generations, oldest first boot, notice old dtb, realize it lacks hash, realize this is fundamentally problematic. cc: A clear and concise description of what you expected to happen. 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. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Change:
propagatedBuildInputs = with xlibs; with stdenv.lib; [ glib cairo pango gdk_pixbuf atk ] <del> ++ optionals stdenv.isLinux [ libXrandr libXrender libXcomposite libXi libXcursor ] ++ optional stdenv.isDarwin x11 </del> <ins> ++ optionals (stdenv.isLinux || stdenv.isDarwin) [ libXrandr libXrender libXcomposite libXi libXcursor ] ++ optionals stdenv.isDarwin [ x11 libXdamage ] </ins> ++ libintlOrEmpty ++ optional xineramaSupport libXinerama ++ optionals cupsSupport [ cups ]; <del> configureFlags = "--with-xinput=yes"; </del> <ins> configureFlags = if stdenv.isDarwin then "--disable-glibtest --disable-introspection --disable-visibility" else "--with-xinput=yes"; </ins> postInstall = "rm -rf $out/share/gtk-doc";

Discussion:
It used to be possible to build (it is possible on 20.09), but these days it fails with: I’ll try to bisect it…
Bisecting points to by Nathan, do you have a hunch?
Cargoculting what I saw in the GHC code, trying this right now:
Seems to work, fix in
There appear to be multiple linker bugs affecting at least Rust and GHC with Musl . Both bfd or gold had issues, gold seems a little worse. I would suggest trying lld, it may fix it.
lld with gcc is currently not supported and I think last time I tried we can't build OCaml and all its dependencies with clang+lld fully yet…
The second commit of ("match leading/trailing arguments") should fix this
That's great news!
Fixed by
Change:
../development/compilers/adoptopenjdk-bin/jdk17-linux.nix ../development/compilers/adoptopenjdk-bin/jdk17-darwin.nix; <ins> corretto11 = callPackage ../development/compilers/corretto/11.nix { }; corretto17 = callPackage ../development/compilers/corretto/17.nix { }; corretto19 = callPackage ../development/compilers/corretto/19.nix { }; </ins> openjdk8-bootstrap = mkBootstrap adoptopenjdk-8 ../development/compilers/openjdk/bootstrap.nix { version = "8"; };

Discussion:
Project description <!-- Describe the project a little: --Amazon Coretto JDK Metadata homepage URL: source URL: license: GPL 2.0 platforms: linux (and all else if possible)
Change:
The GNOME desktop manager once again installs <package>gnome3.epiphany</package> by default. </para> </listitem> <ins> <listitem> <para> NixOS now generates empty <literal>/etc/netgroup</literal>. <literal>/etc/netgroup</literal> defines network-wide groups and may affect to setups using NIS. </para> </listitem> </ins> </itemizedlist> </section> </section>

Discussion:
Describe the bug I'm a little bit unsure if this is a bug or an expected behavior. At least is stumbled over it during my NixOS evaluation. At least it's a little bit disturbing when evaluating logs. To Reproduce Default installation of NixOS 19.03. Expected behavior Option 1) should disable caching Option 2) If no file exist an empty one should be created
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . 3. Ask on the on .
Change:
<ins> { lib, stdenv, fetchFromGitHub, installShellFiles, writeText, cmake, libxslt, docbook_xsl_ns, wrapQtAppsHook, libusb1, libyamlcpp, qtlocation, qtserialport, qttools, qtbase, }: let inherit (stdenv) isLinux; in stdenv.mkDerivation rec { pname = "qdmr"; version = "0.11.2"; src = fetchFromGitHub { owner = "hmatuschek"; repo = "qdmr"; rev = "v${version}"; sha256 = "sha256-zT31tzsm5OM99vz8DzGCdPmnemiwiJpKccYwECnUgOQ="; }; nativeBuildInputs = [ cmake libxslt wrapQtAppsHook installShellFiles ]; buildInputs = [ libyamlcpp libusb1 qtlocation qtserialport qttools qtbase ]; postPatch = lib.optionalString isLinux '' substituteInPlace doc/docbook_man.debian.xsl  --replace /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl ${docbook_xsl_ns}/xml/xsl/docbook/manpages/docbook.xsl ''; cmakeFlags = [ "-DBUILD_MAN=ON" ]; postInstall = '' installManPage doc/dmrconf.1 doc/qdmr.1 mkdir -p "$out/etc/udev/rules.d" cp ${src}/dist/99-qdmr.rules $out/etc/udev/rules.d/ ''; meta = { description = "A codeplug programming tool for DMR radios"; homepage = "https://dm3mat.darc.de/qdmr/"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ janik _0x4A6F ]; platforms = lib.platforms.linux; }; } </ins>

Discussion:
Project description a program for managing several popular DMR hand held radios Metadata homepage URL: source URL: license: gpl3 platforms: linux, macos
Change:
`--keep-vm-state` flag. ```ShellSession <del> $ ./result/bin/nixos-test-driver --interactive --keep-vm-state </del> <ins> $ ./result/bin/nixos-test-driver --keep-vm-state </ins> ``` The machine state is stored in the `$TMPDIR/vm-state-machinename`

Discussion:
When building an interactive test driver with and running the generated binary, the test just runs without an interactivity. Steps to reproduce the behavior: that the test just starts instead of displaying the interactive prompt. I'd expect to be dropped into the interactive prompt. cc as someone who's touched a lot.
Mostly reviews and minor additions though. Maybe broke it, but that's just a guess. Probably best to bisect with if going back to before that doesn't fix the problem.
Ah, it was broken by
Change:
fi if [ -d "$p/lib" ]; then configureFlags+=" --extra-lib-dirs=$p/lib" <del> ${ stdenv.lib.optionalString stdenv.isDarwin "export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib" } </del> fi done ${ghcCommand}-pkg --${packageDbFlag}="$packageConfDir" recache

Discussion:
When building certain packages, With a sufficiently recent nixpkgs, on Mac OS: System: Mac OS 10.11.6 Nix version: nix-env (Nix) 1.11.2 Nixpkgs version: "17.03pre95548."
Change:
chardet dkimpy notmuch <ins> setuptools </ins> ]; nativeCheckInputs = [

Discussion:
The package seems to be missing in . Something like the following help output: Searching for the error message suggests that is from and overriding the derivation to include in seems to fix the issue. However, I do not have enough experience with Python packaging in NixOS to know whether that is sufficient/the right thing to do. Please run and paste the result.
This probably regressed in - cc
Provided a fix, PTAL.
Change:
buildPythonPackage rec { pname = "pydevd"; <del> version = "2.10.0"; </del> <ins> version = "3.0.3"; </ins> pyproject = true; disabled = pythonOlder "3.8";

Discussion:
Steps to reproduce the behavior: 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. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I started with but unfortunately there is more to do.
Change:
, melpaBuild , fetchFromGitHub , writeText <del> , unstableGitUpdater </del> <ins> , writeScript </ins> , gzip }: let <del> rev = "de68851724072c6695e675f090b33a8abec040c9"; </del> <ins> rev = "13c9fa22155066acfb5a2e444fe76245738e7fb7"; </ins> in melpaBuild { pname = "edraw"; <del> version = "1.1.0"; </del> <ins> version = "20240529.1009"; </ins> src = fetchFromGitHub { owner = "misohena"; repo = "el-easydraw"; inherit rev; <del> hash = "sha256-l9i+HCRKnKiDqID+bfAOPE7LpVBZp1AOPkceX8KbDXM="; </del> <ins> hash = "sha256-h2auwVIWjrOBPHPCuLdJv5y3FpoV4V+MEOPf4xprfYg="; </ins> }; commit = rev;

Discussion:
Package name: Latest released version: <!-- Search your package here: --- Current version on the unstable channel: 1.1.0 Current version on the stable/release channel: 1.1.0 <!-- 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! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]: