jiebi/CodeConvo huggingface dataset:
Change:
master
I wonder if we should just prepend to all bootstrapped binaries
Actually, this is not the bootstrapped pip. It's a collision between the pip that comes with Python 3, and the pip that's in the package in . But with bootstrapped binaries that might indeed be a good idea. In this case setting the priority is sufficient.
hi, I'm new to nix (and I'm on macOS), and I'm getting a similar issue on the updated nixpkgs unstable channel. I'm trying to have a version of pip available globally on my system because I work on plenty of analytics/data-science workflows that don't live inside packages and such, so it's nice to have just a global pip. (If this is an unsupported workflow, I'm happy to just change it and make a packaged location where analysis happens.) In particular, I tried to find a version of pip to install, and got confused by the differences between and tried installing pip for python2.7, which failed with a collision with pip3 tried installing the bootstrapped pip after reading this, which failed similarly I followed the diffs here and tried installing the bootstrapped- one instead, but it failed for the same reason. any help would be appreciated! here's the traceback corresponding to the above steps:
it's worth noting that running inside works just fine and I can use , the attribute:
Please read the Python section in the Nixpkgs manual. Do not nix-env install individual packages. You would get import errors and collisions as you've just encountered.
I went back and re-read the section after this and realized the workflow I should have been using. That issue is fine. Thanks for the reference, though!

Discussion:
{ stdenv, fetchurl, gmp }: stdenv.mkDerivation rec { <del> name = "ikarus-0.0.3"; </del> <ins> version = "0.0.3"; name = "ikarus-${version}"; </ins> src = fetchurl { <del> url = "http://ikarus-scheme.org/${name}.tar.gz"; </del> <ins> url = "http://launchpad.net/ikarus/0.0/${version}/+download/${name}.tar.gz"; </ins> sha256 = "0d4vqwqfnj39l0gar2di021kcf6bfpkc6g40yapkmxm6sxpdcvjv"; };
Change:
is meant to show the current timezone. It doesn't. (I have some reason to believe that this is connected to Steam game failures, but still working on that. In any case...) Set time.timeZone to anything other than UTC. Rebuild your system. Run The output will be in UTC, with no timezone shown: lists only UTC. System: 17.03pre92039. (Gorilla) Nix version: nix-env (Nix) 1.11.4 Nixpkgs version: 17.03pre92039.
I think this is because of this line: We can patch this to not check prefix, but still wouldn't work. For discoverability of timezones we can add to and look for them in but I'm not sure this is a good idea.
See ,

Discussion:
environment.sessionVariables.TZDIR = "/etc/zoneinfo"; <ins> # This way services are restarted when tzdata changes. </ins> systemd.globalEnvironment.TZDIR = tzdir; environment.etc.localtime = <del> { source = "${tzdir}/${config.time.timeZone}"; </del> <ins> { source = "/etc/zoneinfo/${config.time.timeZone}"; </ins> mode = "direct-symlink"; }; <del> environment.etc.zoneinfo.source = "${pkgs.tzdata}/share/zoneinfo"; </del> <ins> environment.etc.zoneinfo.source = tzdir; </ins> };

# symlink other core stuff ln -s /host/etc/localtime localtime <ins> ln -s /host/etc/zoneinfo zoneinfo </ins> ln -s /host/etc/machine-id machine-id ln -s /host/etc/os-release os-release
Change:
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

Discussion:
<del> { lib, stdenv, pkgs, python3, fetchpatch, glibcLocales, installShellFiles }: </del> <ins> { lib , stdenv , fetchFromGitHub , fetchpatch , glibcLocales , installShellFiles , python3 }: </ins> <del> with python3.pkgs; buildPythonApplication rec { </del> <ins> python3.pkgs.buildPythonApplication rec { </ins> pname = "khal"; version = "0.10.5"; <del> src = fetchPypi { inherit pname version; sha256 = "sha256-Tu+3rDAqJthgbbOSgXWHpO2UwnoVvy6iEWFKRk/PDHY="; </del> <ins> src = fetchFromGitHub { owner = "pimutils"; repo = pname; rev = "v${version}"; hash = "sha256-FneJmoAOb7WjSgluCwlspf27IU3MsQZFKryL9OSSsUw="; </ins> }; <del> propagatedBuildInputs = [ </del> <ins> SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ glibcLocales installShellFiles ] ++ (with python3.pkgs; [ setuptools-scm sphinx sphinxcontrib_newsfeed ]); propagatedBuildInputs = with python3.pkgs;[ </ins> atomicwrites click click-log configobj <del> python-dateutil </del> <ins> freezegun </ins> icalendar lxml <ins> pkginfo </ins> pkgs.vdirsyncer <ins> python-dateutil </ins> pytz pyxdg requests-toolbelt tzlocal urwid <del> pkginfo </del> <ins> ]; checkInputs = with python3.pkgs;[ </ins> freezegun <ins> hypothesis packaging pytestCheckHook vdirsyncer ]; patches = [ # Tests working with latest pytz version, https://github.com/pimutils/khal/pull/1183 (fetchpatch { name = "support-later-pytz.patch"; url = "https://github.com/pimutils/khal/commit/53eb8a7426d5c09478c78d809c4df4391438e246.patch"; sha256 = "sha256-drGtvJlQ3qFUdeukRWCFycPSZGWG/FSRqnbwJzFKITc="; excludes = [ "CHANGELOG.rst" ]; }) </ins> ]; <del> nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed installShellFiles ]; </del> postInstall = '' # shell completions

# 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 = [

]; meta = with lib; { <del> broken = stdenv.isDarwin; homepage = "http://lostpackets.de/khal/"; </del> description = "CLI calendar application"; <ins> homepage = "http://lostpackets.de/khal/"; </ins> license = licenses.mit; maintainers = with maintainers; [ gebner ]; <ins> broken = stdenv.isDarwin; </ins> }; }
Change:
Build of failed on x86_64-linux as of . This is currently breaking . maintainers cc: maintainers cc: Other cc: n/a nixpkgs at commit This issue was automatically generated by . that created this issue. Internal tags: -
fixed in

Discussion:
, pytestCheckHook , python-dateutil , pythonOlder <ins> , pythonRelaxDepsHook </ins> , torch , pyyaml , requests

}; patches = [ <ins> # Replace git paths </ins> (substituteAll { src = ./hardcode-git-path.patch; git = "${lib.getBin git}/bin/git"; }) ]; <ins> nativeBuildInputs = [ pythonRelaxDepsHook ]; </ins> # setuptools is necessary since pkg_resources is required at runtime. propagatedBuildInputs = [ click

shortuuid ]; <del> preCheck = '' export HOME=$(mktemp -d) ''; </del> checkInputs = [ azure-core bokeh

tqdm ]; <ins> preCheck = '' export HOME=$(mktemp -d) ''; pythonRelaxDeps = [ "protobuf" ]; </ins> disabledTestPaths = [ # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment. "tests/unit_tests/integrations/test_keras.py"
Change:
Build of failed on x86_64-linux as of . This is currently breaking . python39Packages.tensorflow-datasets maintainers cc: maintainers cc: Other cc: n/a nixpkgs at commit This issue was automatically generated by . that created this issue. Internal tags:

Discussion:
, pymongo , pytestCheckHook , python <del> , pythonAtLeast </del> , python-dateutil <ins> , pythonAtLeast , pythonRelaxDepsHook </ins> , pytz , pyyaml , requests , requests-mock <ins> , scikit-learn </ins> , setuptools , sqlalchemy , tenacity <del> , typing-extensions </del> , testcontainers <del> , scikit-learn }: </del> <ins> , typing-extensions }: </ins> buildPythonPackage rec { pname = "apache-beam";

sha256 = "sha256-0S7Dj6PMSbZkEAY6ZLUpKVfe/tFxsq60TTAFj0Qhtv0="; }; <del> # See https://github.com/NixOS/nixpkgs/issues/156957. postPatch = '' substituteInPlace setup.py  --replace "dill>=0.3.1.1,<0.3.2" "dill"  --replace "pyarrow>=0.15.1,<8.0.0" "pyarrow"  --replace "numpy>=1.14.3,<1.23.0" "numpy"  --replace "pymongo>=3.8.0,<4.0.0" "pymongo" ''; </del> <ins> pythonRelaxDeps = [ # See https://github.com/NixOS/nixpkgs/issues/156957 "dill" "numpy" "pyarrow" "pymongo" # See https://github.com/NixOS/nixpkgs/issues/193613 "protobuf" ]; </ins> sourceRoot = "source/sdks/python";

cython grpcio-tools mypy-protobuf <ins> pythonRelaxDepsHook </ins> ]; propagatedBuildInputs = [
Change:
Build of failed on x86_64-linux as of . This is currently breaking . python39Packages.tensorflow-bin maintainers cc: python39Packages.tensorflow maintainers cc: Other cc: n/a nixpkgs at commit This issue was automatically generated by . that created this issue. Internal tags: -

Discussion:
( cd unpacked/tensorflow* # Adjust dependency requirements: <del> # - Relax flatbuffers, gast and tensorflow-estimator version requirements that don't match what we have packaged </del> <ins> # - Relax flatbuffers, gast, protobuf, tensorboard, and tensorflow-estimator version requirements that don't match what we have packaged </ins> # - The purpose of python3Packages.libclang is not clear at the moment and we don't have it packaged yet # - keras and tensorlow-io-gcs-filesystem will be considered as optional for now. sed -i *.dist-info/METADATA  -e "/Requires-Dist: flatbuffers/d"  -e "/Requires-Dist: gast/d"  <del> -e "/Requires-Dist: libclang/d"  </del> -e "/Requires-Dist: keras/d"  <ins> -e "/Requires-Dist: libclang/d"  -e "/Requires-Dist: protobuf/d"  -e "/Requires-Dist: tensorboard/d"  </ins> -e "/Requires-Dist: tensorflow-estimator/d"  -e "/Requires-Dist: tensorflow-io-gcs-filesystem/d" )
Change:
The vim plugin is currently undergoing a full rewrite. As part of this, it appears to have changed how it compiles. On Darwin it now compiles using (). is not available when building in Nix and so it fails. Most likely the reference to can just be patched out. It also runs () which is also reporting a "command not found" line, although this appears to be non-fatal. This affects all platforms. Steps to reproduce the behavior: I don't know if anyone in particular is responsible here but appears to have fixed the build of this plugin most recently Please run and paste the result.

Discussion:
, zsh # command-t dependencies <ins> , getconf </ins> , ruby # cpsm dependencies

}; command-t = super.command-t.overrideAttrs (old: { <del> buildInputs = [ ruby ]; </del> <ins> nativeBuildInputs = [ getconf ruby ]; </ins> buildPhase = '' substituteInPlace lua/wincent/commandt/lib/Makefile  <del> --replace '/bin/bash' 'bash' </del> <ins> --replace '/bin/bash' 'bash'  --replace xcrun "" </ins> make build rm ruby/command-t/ext/command-t/*.o '';
Change:
The package includes files at the root of its directory, increasing the chances for conflicts. (related ). Steps to reproduce the behavior: -l ./result You will see a , a and other files in there. There should only be folders in .
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
I made a PR with a fix, when it's merged this will be fixed.

Discussion:
installPhase = '' runHook preInstall mkdir -p $out/bin cp -r ./ $out <ins> mkdir -p $out/share/doc/$pname/$version mv $out/LICENSE.txt $out/share/doc/$pname/$version/ mv $out/ThirdPartyNotices.txt $out/share/doc/$pname/$version/ </ins> ln -s $out/dotnet $out/bin/dotnet runHook postInstall '';
Change:
First of all this is related to & . Somehow was owned by user before upgrading to NixOS 16.09 (coming from 16.03). This is of course the wrong owner, it should be . Ssh and other services failed to start because of the wrong ownership. Add a chown step to . System: 16.09.695. (Flounder) Nix version: nix-env (Nix) 1.11.4 Nixpkgs version: "16.09.695."

Discussion:
${pkgs.e2fsprogs}/bin/chattr -f -i /var/empty || true find /var/empty -mindepth 1 -delete chmod 0555 /var/empty <ins> chown root:root /var/empty </ins> ${pkgs.e2fsprogs}/bin/chattr -f +i /var/empty || true '';
Change:
First of all this is related to & . Somehow was owned by user before upgrading to NixOS 16.09 (coming from 16.03). This is of course the wrong owner, it should be . Ssh and other services failed to start because of the wrong ownership. Add a chown step to . System: 16.09.695. (Flounder) Nix version: nix-env (Nix) 1.11.4 Nixpkgs version: "16.09.695."

Discussion:
{ stdenv, fetchurl, gmp }: stdenv.mkDerivation rec { <del> name = "ikarus-0.0.3"; </del> <ins> version = "0.0.3"; name = "ikarus-${version}"; </ins> src = fetchurl { <del> url = "http://ikarus-scheme.org/${name}.tar.gz"; </del> <ins> url = "http://launchpad.net/ikarus/0.0/${version}/+download/${name}.tar.gz"; </ins> sha256 = "0d4vqwqfnj39l0gar2di021kcf6bfpkc6g40yapkmxm6sxpdcvjv"; };
Change:
Project description DNGLab - A camera RAW to DNG file format converter Command line tool to convert camera RAW files to Digital Negative Format (DNG). Metadata homepage URL: n/a source URL: license: GNU Lesser General Public License v2.1 platforms: unix, linux, darwin
Can you please test the linked PR and let me know if it works for you (I have not personally tested the program)?

Discussion:
<ins> { lib , rustPlatform , fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "dnglab"; version = "0.5.0"; src = fetchFromGitHub { owner = "dnglab"; repo = pname; rev = "v${version}"; sha256 = "sha256-4uTpCBzBBkcpVBVZMOBD6f9ut71OuUNQ5+AkaQcU86M="; }; cargoSha256 = "sha256-WvXQNDYvR6s4M2Hlpqwq1/wFQYW2QU/ngQimKOFkhOQ="; postInstall = '' rm $out/bin/benchmark $out/bin/identify ''; meta = with lib; { description = "Camera RAW to DNG file format converter"; homepage = "https://github.com/dnglab/dnglab"; license = licenses.lgpl21Only; maintainers = with maintainers; [ dit7ya ]; }; } </ins>

dnd-tools = callPackage ../applications/misc/dnd-tools { }; <ins> dnglab = callPackage ../tools/graphics/dnglab { }; </ins> inherit (callPackage ../applications/virtualization/docker {}) docker_20_10;
Change:
Steps to reproduce the behavior: nixpkgs electrum was recently updated 4.3.1 -4.3.2: previously built fine on nixpkgs 2022-09-28 () <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --<!-- attempting ti bisect, but on a slow machine, and it looks like there's miscellaneous failures over this duration so not sure it'll bisect cleanly: --
bisected to: good: bad: that's the staging-next merge though, so a lot of surface area. however, we appear to address a very similar build failure over in pkgs/development/python- by doing: i'm not sure how to test this same patch on electrum since it doesn't have any file.
oh just kidding, Electrum just places its in a different location. the patch below fixes the build when applied to master, and the application starts but i didn't test any functionality that i know touches protobuf. not sure how concerned i should be about overriding a pinned dep (i'm not a python dev):
Fix in

Discussion:
, isPyPy }: <ins> let versionMajor = lib.versions.major protobuf.version; versionMinor = lib.versions.minor protobuf.version; versionPatch = lib.versions.patch protobuf.version; in </ins> buildPythonPackage { <del> inherit (protobuf) pname src version; </del> <ins> inherit (protobuf) pname src; # protobuf 3.21 coresponds with its python library 4.21 version = if lib.versionAtLeast protobuf.version "3.21" then "${toString (lib.toInt versionMajor + 1)}.${versionMinor}.${versionPatch}" else protobuf.version; </ins> disabled = isPyPy; <ins> sourceRoot = "source/python"; </ins> prePatch = '' <del> while [ ! -d python ]; do cd * done cd python </del> <ins> if [[ "$(<../version.json)" != *'"python": "'"$version"'"'* ]]; then echo "Python library version mismatch. Derivation version: $version, actual: $(<../version.json)" exit 1 fi </ins> ''; nativeBuildInputs = [ pyext ];

{ lib , buildPythonPackage , fetchPypi <ins> , pythonRelaxDepsHook </ins> , attrs , boto3 , google-pasta

hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4="; }; <ins> nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ # FIXME: Remove when >= 2.111.0 "attrs" "protobuf" ]; </ins> propagatedBuildInputs = [ attrs boto3

pandas ]; <del> postPatch = '' substituteInPlace setup.py  --replace "attrs==20.3.0" "attrs>=20.3.0" ''; </del> postFixup = '' [ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ] '';

nose ]; <ins> # Workaround: pythonRelaxDepsHook doesn't work for this. </ins> postPatch = '' mkdir test-reports <del> substituteInPlace requirements.txt --replace "libusb1==1.9.3" "libusb1" </del> <ins> substituteInPlace requirements.txt  --replace "libusb1==1.9.3" "libusb1"  --replace "protobuf >=3.17.3, < 4.0.0" "protobuf" </ins> ''; meta = with lib; {
Change:
Steps to reproduce the behavior: nixpkgs electrum was recently updated 4.3.1 -4.3.2: previously built fine on nixpkgs 2022-09-28 () <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --<!-- attempting ti bisect, but on a slow machine, and it looks like there's miscellaneous failures over this duration so not sure it'll bisect cleanly: --
bisected to: good: bad: that's the staging-next merge though, so a lot of surface area. however, we appear to address a very similar build failure over in pkgs/development/python- by doing: i'm not sure how to test this same patch on electrum since it doesn't have any file.
oh just kidding, Electrum just places its in a different location. the patch below fixes the build when applied to master, and the application starts but i didn't test any functionality that i know touches protobuf. not sure how concerned i should be about overriding a pinned dep (i'm not a python dev):
Fix in

Discussion:
qdarkstyle ]; <del> preBuild = '' </del> <ins> postPatch = '' # make compatible with protobuf4 by easing dependencies ... substituteInPlace ./contrib/requirements/requirements.txt  --replace "protobuf>=3.12,<4" "protobuf>=3.12" # ... and regenerating the paymentrequest_pb2.py file protoc --python_out=. electrum/paymentrequest.proto </ins> substituteInPlace ./electrum/ecc_fast.py  --replace ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary} '' + (if enableQt then ''
Change:
In I noticed unusual behaviour of when is overridden. That PR handles override part. But I think should just disappear. Where should be no reason (for example) for to depend on at build time. is just the wrapper around a few libraries. Quoting : Mechanically we can replace with the list of packages it provides. Even better would be to audit needed libraries for each user and use only a subset of them. Example fix: [x] perlPackages.X11Protocol: [x] pulseaudio: More packages to fix: [x] Xaw3d: [x] emacs: [x] fox16: [x] geant4: [x] [x] gtk2: [x] [x] haskellPackages.greenclip: [x] [x] lesstif: [x] monotoneViz: [x] motif: [x] mythtv: [x] ocaml- [x] [x] [x] pypy2, pypy3: [x] qgis: [x] qgis-ltr: [x] [x] qt6Packages.qtwayland: [x] rPackages.Cairo: [x] rPackages.devEMF: [x] [x] rPackages,rgl: [x] tightvnc: [x] weston: Fixed packages: [x] astromenace: [x] catclock: [x] clanlib: [x] conky: [x] elinks: [x] fox: [x] freeglut: [x] ghostscript, ghostscriptX: [x] gnome2.libgnomeui: [x] glbinding: [x] glew, glew-egl: [x] glew110: [x] imhex: [x] imlib2, imlib2Full: [x] ion3: [x] libagar: [x] libstroke: [x] lirc: [x] mitschemeX11: [x] ncview: [x] nedit: [x] notion: [x] oneko: [x] openrw: [x] pasystray: [x] pcb: [x] povray: [x] pythonFull: [x] qemacs: [x] qmmp: [x] rss-glx: [x] scrot: [x] soxt: [x] survex: [x] synergy: [x] ted: [x] unclutter: [x] unclutter-xfixes: [x] vlc: [x] voxelands: [x] wordnet: [x] xautolock: [x] xfe: [x] x11sshaskpass: [x] xfig: [x] xidlehook: [x] xine-ui: [x] xinputcalibrator: [x] xmountains: [x] xspim: [x] xtrlock-pam: [x] xwinwrap: [x] xxgdb: [x] zoom:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:

Discussion:
, systemd , taglib , unzip <del> , xlibsWrapper </del> , xorg , zlib , chromecastSupport ? true, libmicrodns, protobuf

srt systemd taglib <del> xlibsWrapper </del> zlib ] ++ (with xorg; [ <ins> libSM </ins> libXpm libXv libXvMC
Change:
I just switched from a 16.09 system onto a build from master. After rebooting, does not connect me to my WiFi. There does not even seem to be an attempt to start it. This is output from 16.09: Note that restarting the service will connect me to my WiFi: - RebootSystem: (Gorilla) Nix version: nix-env (Nix) 1.11.4 Nixpkgs version: "17.03pre93234."
Useful info from the duplicate issue:
it seems like you changed some related stuff recently, e.g. in . Any ideas what's wrong?
As stated in another issue on misbehavior is wrong in both modules. Also I think that s fix is not needed. Here's an untested patch Can someone who uses one of the broken modules please test if this fixes the issue (even better if both modules are tested)? I'm a bit reluctant on filing a PR blindly CC
Looks better: BTW, I was unable to copy-and-apply the patch and had to overwrite it by hand. For other testers:
I'm not on master, but FWIW is working for me fine (and wasn't before my patch, as unneeded as I agree it should be)
Oh of course the fix is not needed for since the devices take care of pulling the service in.. Maybe a bit hacky :seenoevil: But if it works. Maybe someday someone unifies both modules and removes the hacks :pray:
Could you wrap this into a proper PR?

Discussion:
''; in { description = "Supplicant ${iface}${optionalString (iface=="WLAN"||iface=="LAN") " %I"}"; <del> wantedBy = [ "network.target" ] ++ deps; </del> <ins> wantedBy = [ "multi-user.target" ] ++ deps; wants = [ "network.target" ]; </ins> bindsTo = deps; after = deps; before = [ "network.target" ];

in { description = "WPA Supplicant"; <del> after = [ "network.target" ] ++ lib.concatMap deviceUnit ifaces; </del> <ins> after = lib.concatMap deviceUnit ifaces; before = [ "network.target" ]; wants = [ "network.target" ]; </ins> requires = lib.concatMap deviceUnit ifaces; <del> wantedBy = [ "network-online.target" ]; </del> <ins> wantedBy = [ "multi-user.target" ]; </ins> path = [ pkgs.wpa_supplicant ];