jiebi/CodeConvo huggingface dataset:
Code change:
This configuration: If you poke around in the configuration I linked, you should see that I disable NetworkManager and use a static configuration for my main NIC. I can't think of anything special in my config or with this machine that would affect my usage of Wireguard, but I'm also new to using Wireguard. I'm currently on nixpkgs with a few of my own commits on top of . Please run and paste the results.
It doesn't seem happy when already exists... I have done two things, both of which were necessary, to resolve this: the link manually () sure the path to the private key exists (if not, you get a different failure in the journal, with failing). (It's possible that fixing the private key path and rebooting would have been sufficient). I'm leaving this open for two reasons: user should receive a better error message in both cases. that we're in NixOS, we should assume full control of the interface and just re-configure it, instead of failing in the setup script.
I ran into this issue after trying to debug my wireguard setup. My setup is essentialy identical and I get the same error message. Running the start script that is causing the error results in this output. The offending 2 lines are .
I had to go one step further than deleting the interface. I needed to stop the via then redeploy configuration. But this solved it for me. Nixos should handle this much more gracefully.
I had to remove the routes with etc.
The command is . You can build it in your conf as pre-setup command, but it has the nasty side effect that it possible interferes with other connections.
I am still running into this issue.

Related discussion:
text: systemd = handleTest ./systemd.nix {}; systemd-confinement = handleTest ./systemd-confinement.nix {}; systemd-timesyncd = handleTest ./systemd-timesyncd.nix {}; <ins> systemd-networkd-wireguard = handleTest ./systemd-networkd-wireguard.nix {}; </ins> pdns-recursor = handleTest ./pdns-recursor.nix {}; taskserver = handleTest ./taskserver.nix {}; telegraf = handleTest ./telegraf.nix {};
Code change:
Darktable can make use of OpenCL, but the nix package apparently isn't set up properly to allow this. Run : system: host os: multi-user?: sandbox: version: channels(root): channels(lukas): nixpkgs: OpenCL is set up properly on my system: cc darktable maintainers:
I'd been meaning to fix this for myself for awhile. Should be good now, pending review.
Thanks!
Sorry to revive this, but I am still having this problem in dartable 2.4.4 using intel OpenCL Neo driver. Should ti be already solved? Or the fix is still not present in 2.4.4? Thanks
Disregard (at least partially) my last comment. I was using the snap version in Ubuntu 18.10. Using the deb, OpenCl works. Where should I submit the bug for the snap version?

Related discussion:
text: , ilmbase, gtk3, intltool, lcms2, lensfun, libX11, libexif, libgphoto2, libjpeg , libpng, librsvg, libtiff, openexr, osm-gps-map, pkgconfig, sqlite, libxslt , openjpeg, lua, pugixml, colord, colord-gtk, libwebp, libsecret, gnome3 <ins> , ocl-icd </ins> }: stdenv.mkDerivation rec {
Code change:
Darktable can make use of OpenCL, but the nix package apparently isn't set up properly to allow this. Run : system: host os: multi-user?: sandbox: version: channels(root): channels(lukas): nixpkgs: OpenCL is set up properly on my system: cc darktable maintainers:
I'd been meaning to fix this for myself for awhile. Should be good now, pending review.
Thanks!
Sorry to revive this, but I am still having this problem in dartable 2.4.4 using intel OpenCL Neo driver. Should ti be already solved? Or the fix is still not present in 2.4.4? Thanks
Disregard (at least partially) my last comment. I was using the snap version in Ubuntu 18.10. Using the deb, OpenCl works. Where should I submit the bug for the snap version?

Related discussion:
text: libgphoto2 libjpeg libpng librsvg libtiff openexr sqlite libxslt libsoup graphicsmagick json-glib openjpeg lua pugixml colord colord-gtk libwebp libsecret gnome3.adwaita-icon-theme <del> osm-gps-map </del> <ins> osm-gps-map ocl-icd </ins> ]; cmakeFlags = [ "-DBUILD_USERMANUAL=False" ];
Code change:
Darktable can make use of OpenCL, but the nix package apparently isn't set up properly to allow this. Run : system: host os: multi-user?: sandbox: version: channels(root): channels(lukas): nixpkgs: OpenCL is set up properly on my system: cc darktable maintainers:
I'd been meaning to fix this for myself for awhile. Should be good now, pending review.
Thanks!
Sorry to revive this, but I am still having this problem in dartable 2.4.4 using intel OpenCL Neo driver. Should ti be already solved? Or the fix is still not present in 2.4.4? Thanks
Disregard (at least partially) my last comment. I was using the snap version in Ubuntu 18.10. Using the deb, OpenCl works. Where should I submit the bug for the snap version?

Related discussion:
text: # the wrappers: preFixup = '' gappsWrapperArgs+=( <del> --prefix LD_LIBRARY_PATH ":" "$out/lib/darktable" </del> <ins> --prefix LD_LIBRARY_PATH ":" "$out/lib/darktable:${ocl-icd}/lib" </ins> ) '';
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: <del> { stdenv, fetchFromGitHub, cmake, libGLU_combined, freeglut, darwin }: </del> <ins> { stdenv, fetchFromGitHub, cmake, libGLU_combined, freeglut , Cocoa,  OpenGL }: </ins> stdenv.mkDerivation rec { name = "bullet-${version}";
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: sha256 = "1msp7w3563vb43w70myjmqsdb97kna54dcfa7yvi9l3bvamb92w3"; }; <del> buildInputs = [ cmake ] ++ (if stdenv.isDarwin then with darwin.apple_sdk.frameworks; [ Cocoa OpenGL ] else [libGLU_combined freeglut]); </del> <ins> nativeBuildInputs = [ cmake ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [ libGLU_combined freeglut ] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa OpenGL ]; </ins> patches = [ ./gwen-narrowing.patch ];
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: "-DBUILD_CPU_DEMOS=OFF" "-DINSTALL_EXTRA_LIBS=ON" ] ++ stdenv.lib.optionals stdenv.isDarwin [ <del> "-DMACOSX_DEPLOYMENT_TARGET="10.9"" </del> "-DOPENGL_FOUND=true" <del> "-DOPENGL_LIBRARIES=${darwin.apple_sdk.frameworks.OpenGL}/Library/Frameworks/OpenGL.framework" "-DOPENGL_INCLUDE_DIR=${darwin.apple_sdk.frameworks.OpenGL}/Library/Frameworks/OpenGL.framework" "-DOPENGL_gl_LIBRARY=${darwin.apple_sdk.frameworks.OpenGL}/Library/Frameworks/OpenGL.framework" "-DCOCOA_LIBRARY=${darwin.apple_sdk.frameworks.Cocoa}/Library/Frameworks/Cocoa.framework" </del> <ins> "-DOPENGL_LIBRARIES=${OpenGL}/Library/Frameworks/OpenGL.framework" "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks/OpenGL.framework" "-DOPENGL_gl_LIBRARY=${OpenGL}/Library/Frameworks/OpenGL.framework" "-DCOCOA_LIBRARY=${Cocoa}/Library/Frameworks/Cocoa.framework" "-DBUILD_BULLET2_DEMOS=OFF" "-DBUILD_UNIT_TESTS=OFF" </ins> ]; enableParallelBuilding = true; <del> meta = { </del> <ins> meta = with stdenv.lib; { </ins> description = "A professional free 3D Game Multiphysics Library"; longDescription = '' Bullet 3D Game Multiphysics Library provides state of the art collision detection, soft body and rigid body dynamics. ''; homepage = http://bulletphysics.org; <del> license = stdenv.lib.licenses.zlib; maintainers = with stdenv.lib.maintainers; [ aforemny ]; platforms = with stdenv.lib.platforms; unix; </del> <ins> license = licenses.zlib; maintainers = with maintainers; [ aforemny ]; platforms = platforms.unix; </ins> }; }
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: inherit (gnome2) gtksourceview; }; <del> bullet = callPackage ../development/libraries/bullet {}; </del> <ins> bullet = callPackage ../development/libraries/bullet { inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; }; </ins> spdlog = callPackage ../development/libraries/spdlog { };
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: sha256 = "004ly9xxjlsbrr2vhxsa1n84z3034gxrzr7z0wl45szd8v1v6qwh"; }; buildInputs = [ CaptureTiny CwdGuard FileCopyRecursiveReduced ]; <ins> propagatedBuildInputs = [ DevelCheckCompiler ]; perlPreHook = "export LD=$CC"; </ins> meta = { description = "A Module::Build class for building XS modules"; license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; }; <del> propagatedBuildInputs = [ DevelCheckCompiler ]; </del> }; ModuleCPANTSAnalyse = buildPerlPackage rec {
Code change:
! See the . This is to discuss Darwin-specific issues for ZHF. (or more)

Related discussion:
text: sha256 = "1j3048ip691j91rdig6wrlg6i4jdzhszxmz5pi2g7n355rl2w00l"; }; buildInputs = [ DevelPPPort ModuleBuildXSUtil TestException TestFatal TestLeakTrace TestOutput TestRequires TryTiny self.version ]; <ins> perlPreHook = "export LD=$CC"; </ins> NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isi686 "-fno-stack-protector"; hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector"; };
Code change:
I fail to compile graph-tool on nixos-unstable. The error message is a template one, thus cc
This is caused by
Fixed upstream:
thanks !

Related discussion:
text: <del> { stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook, pkgconfig, boost, expat, scipy, cgal, gmp, mpfr, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses, buildPythonPackage }: </del> <ins> { stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook , pkgconfig, boost, expat, scipy, cgal, gmp, mpfr , gobject-introspection, pygobject3, gtk3, matplotlib, ncurses , buildPythonPackage , fetchpatch }: </ins> buildPythonPackage rec { pname = "graph-tool";
Code change:
I fail to compile graph-tool on nixos-unstable. The error message is a template one, thus cc
This is caused by
Fixed upstream:
thanks !

Related discussion:
text: sha256 = "0w7pd2h8ayr88kjl82c8fdshnk6f3xslc77gy7ma09zkbvf76qnz"; }; <ins> patches = [ # fix build with cgal 4.13 (https://git.skewed.de/count0/graph-tool/issues/509) (fetchpatch { name = "cgal-4.13.patch"; url = "https://git.skewed.de/count0/graph-tool/commit/aa39e4a6b42d43fac30c841d176c75aff92cc01a.patch"; sha256 = "1578inb4jqwq2fhhwscn5z95nzmaxvmvk30nzs5wirr26iznap4m"; }) ]; </ins> configureFlags = [ "--with-python-module-path=$(out)/${python.sitePackages}" "--with-boost-libdir=${boost}/lib"
Code change:
Minor cosmetic issue: when using kpcli, the prompt shown to the user says ".kpcli-wrapped:/" instead of the usual "kpcli:/". system: host os: multi-user?: sandbox: version: channels(delroth): channels(root): nixpkgs:
Usually this can be fixed with the --argv0 flag:
kpcli uses wrapProgram which already sets --argv0 correctly AFAICT. Looks like this is a kpcli specific problem:
OK, I understand the reason why --argv0 did not work now. Since this is an interpreted script, we are indeed setting Perl's argv[0] to the right value, but within Perl 0) - Sent to just wrap the script manually and thus control the basename of the wrapped script.
Fixed in

Related discussion:
text: phases = [ "installPhase" "fixupPhase" ]; installPhase = '' <del> mkdir -p $out/bin cp ${src} $out/bin/kpcli chmod +x $out/bin/kpcli </del> <ins> mkdir -p $out/{bin,share} cp ${src} $out/share/kpcli.pl chmod +x $out/share/kpcli.pl </ins> <del> wrapProgram $out/bin/kpcli --set PERL5LIB  </del> <ins> makeWrapper $out/share/kpcli.pl $out/bin/kpcli --set PERL5LIB  </ins> "${with perlPackages; stdenv.lib.makePerlPath ([ CaptureTiny Clipboard Clone CryptRijndael SortNaturally TermReadKey TermShellUI FileKeePass TermReadLineGnu XMLParser ] ++ stdenv.lib.optional stdenv.isDarwin MacPasteboard)}"
Code change:
Ulauncher is an application launcher for Linux: Tried to package it myself but I am a rookie and this seems like a bit painful for the first package.
For those interested I made a really quick. However, if you build and execute it you'll realize there's definitely some problems.
More specifically, the first error I run into halts with the following stack trace: Any ideas for workarounds?
If you just examine the result of the derivation you'll notice that things in appear to be in the wrong locations. So that'll definitely make it not work. There's probably something wrong with and I don't think is maintained. So perhaps we can just change the build system if it's easy? Maybe do what  is doing.
Looking at the beginning of the build log, I noticed: Note that it thinks the version is . Maybe this has to do with ? I assume that is supposed to be replaced with something else at But clearly something is not working. That's all I've got. Cheers
Very late edit, I managed to change this after the build via: But last executable still cries:
Would you mind sharing your full nix expression? I can't figure out how to get past the issue. (I suspect you replaced it in ?)
Yes, but I did it after the build. the last status (which is a wreck with too many unnecessary stuff probably, I gave up after trying a bit).
I'm not sure how to implement this in Nix, but we can get past the error by setting the environment variable to the generated site-packages folder (). In other words: We still get an error but I think this is a step forward?
:) I guess. I am still rookie on nixland and this made me confused since we have defined under everything like crazy.
Just so we are on the same page, this is what I am currently using to build ulauncher: I replaced the version substitution code to put the version number where I think the ulauncher source code intends for it to be put. Doing so does not break the build.
The means that the is missing. I'm working on creating a . I've run into , meaning that I needed to make to load a few libraries with using absolute paths. I'm using to apply the patches: Applying the patches is the only way I was able to manage getting to build. The patch was applied with during build time. During runtime, however, the patch was applied, but without substitutions: How do we get the patch substitutions working for runtime?
module is provided by which we already have packaged. definitely should not be used.

Related discussion:
text: github = "aanderse"; name = "Aaron Andersen"; }; <ins> aaronjanse = { email = "aaron@ajanse.me"; github = "aaronjanse"; name = "Aaron Janse"; keys = [ { longkeyid = "rsa2048/0x651BD4B37D75E234"; # Email only fingerprint = "490F 5009 34E7 20BD 4C53  96C2 651B D4B3 7D75 E234"; } { longkeyid = "rsa4096/0xBE6C92145BFF4A34"; # Git, etc fingerprint = "CED9 6DF4 63D7 B86A 1C4B  1322 BE6C 9214 5BFF 4A34"; } ]; }; </ins> aaronschif = { email = "aaronschif@gmail.com"; github = "aaronschif";
Code change:
Ulauncher is an application launcher for Linux: Tried to package it myself but I am a rookie and this seems like a bit painful for the first package.
For those interested I made a really quick. However, if you build and execute it you'll realize there's definitely some problems.
More specifically, the first error I run into halts with the following stack trace: Any ideas for workarounds?
If you just examine the result of the derivation you'll notice that things in appear to be in the wrong locations. So that'll definitely make it not work. There's probably something wrong with and I don't think is maintained. So perhaps we can just change the build system if it's easy? Maybe do what  is doing.
Looking at the beginning of the build log, I noticed: Note that it thinks the version is . Maybe this has to do with ? I assume that is supposed to be replaced with something else at But clearly something is not working. That's all I've got. Cheers
Very late edit, I managed to change this after the build via: But last executable still cries:
Would you mind sharing your full nix expression? I can't figure out how to get past the issue. (I suspect you replaced it in ?)
Yes, but I did it after the build. the last status (which is a wreck with too many unnecessary stuff probably, I gave up after trying a bit).
I'm not sure how to implement this in Nix, but we can get past the error by setting the environment variable to the generated site-packages folder (). In other words: We still get an error but I think this is a step forward?
:) I guess. I am still rookie on nixland and this made me confused since we have defined under everything like crazy.
Just so we are on the same page, this is what I am currently using to build ulauncher: I replaced the version substitution code to put the version number where I think the ulauncher source code intends for it to be put. Doing so does not break the build.
The means that the is missing. I'm working on creating a . I've run into , meaning that I needed to make to load a few libraries with using absolute paths. I'm using to apply the patches: Applying the patches is the only way I was able to manage getting to build. The patch was applied with during build time. During runtime, however, the patch was applied, but without substitutions: How do we get the patch substitutions working for runtime?
module is provided by which we already have packaged. definitely should not be used.

Related discussion:
text: <ins> diff --git a/setup.py b/setup.py index 3616104..e9bbfda 100755 --- a/setup.py +++ b/setup.py @@ -112,7 +112,7 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): DistUtilsExtra.auto.install_auto.run(self) target_data = '/' + os.path.relpath(self.install_data, self.root) + '/' -        target_pkgdata = target_data + 'share/ulauncher/' +        target_pkgdata = '@out@/share/ulauncher/' target_scripts = '/' + os.path.relpath(self.install_scripts, self.root) + '/' </ins>
Code change:
Ulauncher is an application launcher for Linux: Tried to package it myself but I am a rookie and this seems like a bit painful for the first package.
For those interested I made a really quick. However, if you build and execute it you'll realize there's definitely some problems.
More specifically, the first error I run into halts with the following stack trace: Any ideas for workarounds?
If you just examine the result of the derivation you'll notice that things in appear to be in the wrong locations. So that'll definitely make it not work. There's probably something wrong with and I don't think is maintained. So perhaps we can just change the build system if it's easy? Maybe do what  is doing.
Looking at the beginning of the build log, I noticed: Note that it thinks the version is . Maybe this has to do with ? I assume that is supposed to be replaced with something else at But clearly something is not working. That's all I've got. Cheers
Very late edit, I managed to change this after the build via: But last executable still cries:
Would you mind sharing your full nix expression? I can't figure out how to get past the issue. (I suspect you replaced it in ?)
Yes, but I did it after the build. the last status (which is a wreck with too many unnecessary stuff probably, I gave up after trying a bit).
I'm not sure how to implement this in Nix, but we can get past the error by setting the environment variable to the generated site-packages folder (). In other words: We still get an error but I think this is a step forward?
:) I guess. I am still rookie on nixland and this made me confused since we have defined under everything like crazy.
Just so we are on the same page, this is what I am currently using to build ulauncher: I replaced the version substitution code to put the version number where I think the ulauncher source code intends for it to be put. Doing so does not break the build.
The means that the is missing. I'm working on creating a . I've run into , meaning that I needed to make to load a few libraries with using absolute paths. I'm using to apply the patches: Applying the patches is the only way I was able to manage getting to build. The patch was applied with during build time. During runtime, however, the patch was applied, but without substitutions: How do we get the patch substitutions working for runtime?
module is provided by which we already have packaged. definitely should not be used.

Related discussion:
text: testssl = callPackage ../applications/networking/testssl { }; <ins> ulauncher = callPackage ../applications/misc/ulauncher { }; </ins> umurmur = callPackage ../applications/networking/umurmur { }; udocker = pythonPackages.callPackage ../tools/virtualization/udocker { };
Code change:
Here is result of — I'll try to do something about it when I have time but it'll most likely be next year, so please go ahead and fix it if you have time for minor issues.
Screenshot?
pavucontrol has no binary wrapper, thus icons won't show unless relevant icon themes are installed in the system.
Fixed in master.

Related discussion:
text: { fetchurl, stdenv, pkgconfig, intltool, pulseaudio, gtkmm3 <del> , libcanberra_gtk3 }: </del> <ins> , libcanberra_gtk3, makeWrapper, gnome3 }: </ins> stdenv.mkDerivation rec { name = "pavucontrol-2.0";
Code change:
Here is result of — I'll try to do something about it when I have time but it'll most likely be next year, so please go ahead and fix it if you have time for minor issues.
Screenshot?
pavucontrol has no binary wrapper, thus icons won't show unless relevant icon themes are installed in the system.
Fixed in master.

Related discussion:
text: sha256 = "02s775m1531sshwlbvfddk3pz8zjmwkv1sgzggn386ja3gc9vwi2"; }; <del> buildInputs = [ pulseaudio gtkmm3 libcanberra_gtk3 ]; </del> <ins> preFixup = '' wrapProgram "$out/bin/pavucontrol"  --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" ''; buildInputs = [ pulseaudio gtkmm3 libcanberra_gtk3 makeWrapper gnome3.gnome_icon_theme ]; </ins> nativeBuildInputs = [ pkgconfig intltool ];
Code change:
Trying to compile fails with Install (not ) Create with run observe error
has gmp but doesn't have Base or Prelude (which is needed for stuff as simple as )
For reference, I think this issue is related:
You are meant to use to install additional packages with the compiler. I don't understand why the attribute it broken though from a brief look.
I bisected to the commit that caused this: This was in the idris update from 1.3.0 to 1.3.1 Currently looking into how this can be solved elegantly
In the meantime, is there a workaround for this?
Yes, the PR linked above () fixes this, but I'm not sure what to do with it, because it breaks Darwin in weird ways.

Related discussion:
text: <del> { lib, symlinkJoin, makeWrapper, idris-no-deps, gcc, gmp }: </del> <ins> { stdenv, lib, symlinkJoin, makeWrapper, idris-no-deps, gmp }: </ins> symlinkJoin { inherit (idris-no-deps) name src meta;
Code change:
Trying to compile fails with Install (not ) Create with run observe error
has gmp but doesn't have Base or Prelude (which is needed for stuff as simple as )
For reference, I think this issue is related:
You are meant to use to install additional packages with the compiler. I don't understand why the attribute it broken though from a brief look.
I bisected to the commit that caused this: This was in the idris update from 1.3.0 to 1.3.1 Currently looking into how this can be solved elegantly
In the meantime, is there a workaround for this?
Yes, the PR linked above () fixes this, but I'm not sure what to do with it, because it breaks Darwin in weird ways.

Related discussion:
text: buildInputs = [ makeWrapper ]; postBuild = '' wrapProgram $out/bin/idris  <del> --run 'export IDRIS_CC=''${IDRIS_CC:-${lib.getBin gcc}/bin/gcc}'  --suffix LIBRARY_PATH : ${lib.makeLibraryPath [ gmp ]} </del> <ins> --run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.cc}/bin/cc}'  --set NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST 1  --prefix NIX_CFLAGS_COMPILE " " "-I${lib.getDev gmp}/include"  --prefix NIX_CFLAGS_LINK " " "-L${lib.getLib gmp}/lib" </ins> ''; }