!oeFELgatfbdiAEkJAY:nixos.org

Nix Zürich

112 Members
https://www.meetup.com/nix-zurich/ - ZHF Hackathon 25-26 Nov 202324 Servers

Load older messages


SenderMessageTime
15 Nov 2025
@fabio.lenherr:matrix.orgFabio Lenherr will be working on rustdress: https://github.com/niteshbalusu11/rustdress 10:47:34
@gabyx:matrix.orggabyx Maybe do you have some minutes to resolve one package with me =) or later review i3-back. 10:52:00
@ners:nixos.devners

@room

When do you want to have fondue for dinner here at OST? 🫕🧀 (and yes, that's also free)
1️⃣: Saturday 15.11. at ~17:00
2️⃣: Sunday 16.11. at ~16:00

10:54:51
@ners:nixos.devners * @all
When do you want to have fondue for dinner here at OST? 🫕🧀 (and yes, that's also free)
1️⃣: Saturday 15.11. at ~17:00
2️⃣: Sunday 16.11. at ~16:00
10:55:13
@gabyx:matrix.orggabyxRedacted or Malformed Event10:55:30
@ners:nixos.devners* @room
When do you want to have fondue for dinner here at OST? 🫕🧀 (and yes, that's also free)
1️⃣: Saturday 15.11. at ~17:00
2️⃣: Sunday 16.11. at ~16:0010:56:19
@fabio.lenherr:matrix.orgFabio Lenherrsure, just come by when you need me11:07:30
@gefla:aber.netGerd FlaigOh. I was wondering why all the activity is happening here in the channel, given that I had ZHF on my calendar the weekend after next. Noticed the error too late, so won't be able to join. 🥺11:14:04
@sECuRE:matrix.orgzekjurit was moved a little earlier so that the schedule works out this time :) 11:29:15
@das-g:matrix.orgdas-gJust a version bump unrelated to ZHF, but would someone review https://github.com/NixOS/nixpkgs/pull/454110 ?11:29:34
@sECuRE:matrix.orgzekjurcan someone show me how to use nativeBuildInputs = [ breakpointHook ]; to debug a failing package build? the package in question is frigate, a python application: https://github.com/NixOS/nixpkgs/issues/46106411:40:50
@sECuRE:matrix.orgzekjurthe issue i’m running into is that i can enter the failing build container, but then i don’t know what command to run in there. functions like “postPatch” or “genericBuild” are not available somehow11:41:18
@kirelagin:matrix.orgkirelagin zekjur: usually you just ran phases manually one by one e.g. eval "${unpackPhase:-unpackPhase}" 11:42:31
@sECuRE:matrix.orgzekjurthanks, but this is what i get: sudo /nix/store/sikvbjrwks8hpbyglk76cn6iq3zvn0lp-attach/bin/attach 4486029 bash-5.3# eval "${unpackPhase:-unpackPhase}" bash: unpackPhase: command not found bash-5.3# 11:43:14
@kirelagin:matrix.orgkirelagin wait, sorry, I guess I am confused, I am not really sure what you are talking about when you say “containers”. Is this different from like nix develop? The build phase scripts are just passed as environment variables to the build (form the derivation), so, I guess, if you just attach to the namespace, you do not get the env (but you can probably source it somehow?) 11:44:42
@gabyx:matrix.orggabyx Fabio Lenherr: Can I add you here as a reviewer? https://github.com/NixOS/nixpkgs/pull/461889 11:45:49
@sECuRE:matrix.orgzekjur

in a current nixpkgs checkout, i modified frigate like so:

--- i/pkgs/by-name/fr/frigate/package.nix
+++ w/pkgs/by-name/fr/frigate/package.nix
@@ -1,6 +1,7 @@
{
lib,
stdenv,

  • breakpointHook,
    callPackage,
    python313Packages,
    fetchFromGitHub,
    @@ -214,6 +215,8 @@ python3Packages.buildPythonApplication rec {
    pytestCheckHook
    ];

  • nativeBuildInputs = [ breakpointHook ];

  • interpreter crash in onnxruntime on aarch64-linux

    doCheck = !(stdenv.hostPlatform.system == "aarch64-linux");

and then i run nix build .#frigate, which ultimately prints something like:

[1/0/1 built] building frigate-0.16.2 (pytestCheckPhase): sudo /nix/store/sikvbjrwks8hpbyglk76cn6iq3zvn0lp-attach/bin/attach 5167301

that’s what i run

11:46:20
@sECuRE:matrix.orgzekjur *

in a current nixpkgs checkout, i modified frigate like so:

--- i/pkgs/by-name/fr/frigate/package.nix
+++ w/pkgs/by-name/fr/frigate/package.nix
@@ -1,6 +1,7 @@
{
lib,
stdenv,

- breakpointHook,
callPackage,
python313Packages,
fetchFromGitHub,
@@ -214,6 +215,8 @@ python3Packages.buildPythonApplication rec {
pytestCheckHook
\];
- nativeBuildInputs = \[ breakpointHook \];
- # interpreter crash in onnxruntime on aarch64-linux
doCheck = !(stdenv.hostPlatform.system == "aarch64-linux");

and then i run nix build .#frigate, which ultimately prints something like:

[1/0/1 built] building frigate-0.16.2 (pytestCheckPhase): sudo /nix/store/sikvbjrwks8hpbyglk76cn6iq3zvn0lp-attach/bin/attach 5167301

that’s what i run

11:46:35
@sECuRE:matrix.orgzekjur * in a current nixpkgs checkout, i modified frigate like so: https://paste.noname-ev.de/paste/113 and then i run nix build .#frigate, which ultimately prints something like: [1/0/1 built] building frigate-0.16.2 (pytestCheckPhase): sudo /nix/store/sikvbjrwks8hpbyglk76cn6iq3zvn0lp-attach/bin/attach 5167301 that’s what i run 11:47:43
@kirelagin:matrix.orgkirelagin ok, I see, I have never heard of this hook tbh. I usually just do nix devleop and then run phases manually. There used to be a wiki page explaining this (basically, how to troubleshoot failing builds with nix-shell but I can’t see to find it now :/) 11:49:24
@sECuRE:matrix.orgzekjuryeah the wiki page instructions never worked for me 🤷 maybe all my packages are unusual somehow :D11:49:47
@kirelagin:matrix.orgkirelagin @zekjur anyway, what works for me is nix develop .#frigate, then, in the shell, you just do eval "${unpackPhase:-unpackPhase}", then the same with patchPhase, and then you, um, figure out what it does next, because the expression has dontBuild = true so I assume it just runs the tests or something. That’s the traditional way of debugging builds 11:57:25
@kirelagin:matrix.orgkirelagin * zekjur: anyway, what works for me is nix develop .#frigate, then, in the shell, you just do eval "${unpackPhase:-unpackPhase}", then the same with patchPhase, and then you, um, figure out what it does next, because the expression has dontBuild = true so I assume it just runs the tests or something. That’s the traditional way of debugging builds 11:57:33
@kirelagin:matrix.orgkirelagin * zekjur: anyway, what works for me is nix develop .#frigate, then, in the shell, you just do eval "${unpackPhase:-unpackPhase}", then cd in to the directory, then the same with patchPhase, and then you, um, figure out what it does next, because the expression has dontBuild = true so I assume it just runs the tests or something. That’s the traditional way of debugging builds 11:57:58
@sECuRE:matrix.orgzekjurthanks. let me try how far i get with the different phases12:04:28
@sECuRE:matrix.orgzekjur

running eval "${buildPhase:-buildPhase}" results in an entirely different error :(

2.009 × Failed to build installable wheels for some pyproject.toml based projects
2.009 ╰─> nvidia-pyindex

ERROR: failed to solve: process "/bin/sh -c pip3 install -r /requirements.txt" did not complete successfully: exit code: 1

12:05:58
@sECuRE:matrix.orgzekjurokay, so the phase that fails is pytestCheckPhase, but when i run unpackPhase and pytestCheckPhase, i get a different error, too :-/12:24:08
@kirelagin:matrix.orgkirelagin Nix gives you reproducibility they say 12:29:24
@kirelagin:matrix.orgkirelaginOh it segfaults lol12:31:19
@kirelagin:matrix.orgkirelagin Yeah, the easy way to check is /nix/store/ab4v2qp7q426zrizz38d4jfx025xifdf-pytest-check-hook/nix-support/setup-hook: line 23: 541 Segmentation fault – if you look at that line, you’ll see it is the pytestCheckPhase 12:32:01

Show newer messages


Back to Room ListRoom Version: 10