| 14 Aug 2022 |
Ethan Brooks | What phase would you recommend for that? | 15:15:22 |
Ethan Brooks | postPatch? | 15:15:31 |
K900 | Yes | 15:19:28 |
Ethan Brooks | Redacted or Malformed Event | 15:21:10 |
Ethan Brooks | * This is what I have but it is not performing the replacement correctly:
postPatch = ''
export BAZELISK_HOME=$TMPDIR
substituteInPlace bazelisk.py --replace '@bazel@' ${pkgs.bazel}
'';
| 15:21:25 |
Ethan Brooks | Redacted or Malformed Event | 15:21:27 |
Ethan Brooks | Ok I think we fixed that error! | 15:22:37 |
Ethan Brooks | We are now getting:
ERROR: The project you're trying to build requires Bazel 5.0.0 (specified in /build/tensorstore-0.1.22/.bazelversion), but it wasn't found in /nix/store/lkwzv0kxhw915i7j0cdrcvj8r3rficl6-bazel-3.7.2/bin.
| 15:22:57 |
Ethan Brooks | I can look into this a bit | 15:23:00 |
Ethan Brooks | I was able to get past a few more errors, but started running into weird issues with bazel and perl. However I think I may not actually need the tensorstore package after all. | 15:59:02 |
Ethan Brooks | What I really wanted was the flax library which can work without tensorstore though it disables one minor feature. | 15:59:28 |
Ethan Brooks | Poetry thinks thinks that tensorstore is a dependency of flax but I was wondering if there was a correct way, via poetry2nix to tell it to ignore tensorstore. Should I patch poetry.lock? | 16:00:30 |
Ethan Brooks | I will work on a pull request for tensorstore, just need to learn a little more about bazel. Thanks for all your help @K900. | 19:30:56 |
| 15 Aug 2022 |
| pbsds changed their display name from pederbs to pbsds. | 23:18:49 |
| 16 Aug 2022 |
| ruddy joined the room. | 12:11:51 |
| ruddy left the room. | 12:11:54 |
| skinnedcat joined the room. | 23:35:34 |
skinnedcat | I'm trying to build poetry using poetry2nix like is done in nixpkgs. I need to pin to master. | 23:35:56 |
skinnedcat | I'm getting some weird build failure, though, when I try to do this. It looks like the derivation is null?
$ nix build github:johnrichardrinehart/poetry-flake
error: value is null while a set was expected
at /nix/store/p3bvy3abha8dihrczhsfmcvp3a87dwd2-source/pkgs/development/tools/poetry2nix/poetry2nix/overrides/default.nix:41:9:
40| else
41| drv.overridePythonAttrs (
| ^
42| old:
(use '--show-trace' to show detailed location information)
| 23:36:31 |
skinnedcat | The flake is pretty simple and the pyproject.toml and poetry.lock came directly from python-poetry/poetry (which may be a mistake... not sure). | 23:37:07 |
skinnedcat | Before I created this flake I had tried modifying the nixpkgs source for poetry directly. But, I got the same result. | 23:37:37 |
skinnedcat | What is failing, here? | 23:38:32 |
| 17 Aug 2022 |
skinnedcat | Posted this issue at https://github.com/nix-community/poetry2nix/issues/697 | 10:14:18 |
skinnedcat | @adis:blad.is: I've been seeing the above issue in building poetry from the latest commit which has some changes that I want to use (https://github.com/python-poetry/poetry/issues/755). But, I'm a bit stuck on a problem with the derivation. If you have any bandwidth could you help me out or point me in the direction of someone who might know what's going on? | 11:49:45 |
| greaka joined the room. | 20:23:19 |
| 18 Aug 2022 |
plato | I'm not entirely sure if this is a poetry2nix issue, but in my build, I'm getting:
File "/nix/store/g4064rhz6p4z9v8zbzfh2hr5afs9489s-python3.10-pip-22.1.2/lib/python3.10/site-packages/pip/_internal/utils/logging.py", line 179, in emit
self.handleError(record)
Message: '[present-rich] %s'
Arguments: (UpgradePrompt(old='22.1.2', new='22.2.2'),)
Finished executing pipShellHook
as well as
FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/xf1k5k05vg3zn7dfcpfh1qa7ga48hi3m-python3-3.10.6/bin/pip'
| 11:36:12 |
plato | I'm sure this is the damn pip upgrade hook, but that doesn't make a lot of sense with Nix anyways - can I disable it easily? | 11:36:35 |
| 21 Aug 2022 |
| greaka changed their display name from greaka ⚡️ to greaka . | 09:25:58 |
Jeff | Trying to package a simple Python/Gtk app, but I'm running into this:
Traceback (most recent call last):
File "/nix/store/1dk4vbp3bgvz26bv0lf7n1lqa973ixhd-python3.10-gnome-random-background-0.1.0/bin/.gnome-choose-random-background-wrapped", line 6, in <module>
from gnome_random_background.main import choose_random_background
File "/nix/store/1dk4vbp3bgvz26bv0lf7n1lqa973ixhd-python3.10-gnome-random-background-0.1.0/lib/python3.10/site-packages/gnome_random_background/main.py", line 6, in <module>
gi.require_version("Gtk", "4.0")
File "/nix/store/lhw4cvfapk2dwhz6fsac4cv0awibbm9m-python3.10-pygobject-3.42.2/lib/python3.10/site-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Source is at https://git.ocjtech.us/jeff/gnome-random-background if anyone can help me get this going.
| 23:59:26 |
| 22 Aug 2022 |
adisbladis | In reply to @jeff:ocjtech.us
Trying to package a simple Python/Gtk app, but I'm running into this:
Traceback (most recent call last):
File "/nix/store/1dk4vbp3bgvz26bv0lf7n1lqa973ixhd-python3.10-gnome-random-background-0.1.0/bin/.gnome-choose-random-background-wrapped", line 6, in <module>
from gnome_random_background.main import choose_random_background
File "/nix/store/1dk4vbp3bgvz26bv0lf7n1lqa973ixhd-python3.10-gnome-random-background-0.1.0/lib/python3.10/site-packages/gnome_random_background/main.py", line 6, in <module>
gi.require_version("Gtk", "4.0")
File "/nix/store/lhw4cvfapk2dwhz6fsac4cv0awibbm9m-python3.10-pygobject-3.42.2/lib/python3.10/site-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Source is at https://git.ocjtech.us/jeff/gnome-random-background if anyone can help me get this going.
I think propagating gtk is not enough, you'll need to set some env var (I don't know which one) | 05:07:55 |