!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

852 Members
163 Servers

Load older messages


SenderMessageTime
30 Apr 2026
@isabel:isabelroses.comisabel changed their profile picture.18:47:03
1 May 2026
@llakala:matrix.orgllakala set a profile picture.17:12:30
3 May 2026
@isabel:isabelroses.comisabel changed their profile picture.10:38:44
6 May 2026
@lukzmu:matrix.orglukzmu joined the room.17:09:01
8 May 2026
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 (4094@epvpn) to jopejoe1.08:43:10
@rav:vergara.techRené

Hi. I'm having an issue installing a flake with nix profile install. The test suite of the package runs some checks with the MySQL database and it is failing with "can't connect with mysqld.sock". What's odd is that running the test suite with nix develop -c bash "cabal test" succeeds.

19:55:36
@sarahec:matrix.orgSarah ClarkWhich platform and what's your sandbox setting?20:40:05
@tajo48:matrix.org@tajo48:matrix.org left the room.20:40:53
@rav:vergara.techRenéI'm running Nix on Ubuntu20:45:15
@rav:vergara.techRené

installing the flake with --impure gives the same issue

20:45:43
@sarahec:matrix.orgSarah Clark Nix packages expect the socket at /run/mysqld/mysqld.sock but Ubuntu defaults to /var/run/mysqld/mysqld.sock. If you know where your sock file is, you can use export MYSQL_UNIX_PORT with the socket path 20:56:50
9 May 2026
@rav:vergara.techRené
In reply to @sarahec:matrix.org
Nix packages expect the socket at /run/mysqld/mysqld.sock but Ubuntu defaults to /var/run/mysqld/mysqld.sock. If you know where your sock file is, you can use export MYSQL_UNIX_PORT with the socket path
I set this both on the user profile and on the nix-daemon.service, still can't find mysql
12:37:37
@sarahec:matrix.orgSarah ClarkI"m sorry that didn't work. Which package are you installing? (I want to check that it's not a problem with the derivation.)17:11:58
@sarahec:matrix.orgSarah Clark* I'm sorry that didn't work. Which package are you installing? (I want to check that it's not a problem with the derivation.)17:13:23
10 May 2026
@rav:vergara.techRené

It's not a public package, I'm trying to set up the CI to my server. The flake builds, runs and tests correctly when you git clone the repo into the server. But if you try to nix profile install, I get this "MySQL not found" error. I even changed the code to not use the socket and instead use TCP and I got ConnectionError {errFunction = "connect", errNumber = 2002, errMessage = "Can't connect to server on '127.0.0.1' (115)"}.

12:20:56
@rav:vergara.techRené

is there an option for nix profile install to skip the checkPhase?

12:31:33
@sarahec:matrix.orgSarah Clark You could try, in your list of packages, foo { overrideAttrs = { doCheck = false; }} where foo is the package name. 18:48:21
12 May 2026
@awaizazam:matrix.orgAwaiz Azam joined the room.00:19:48

There are no newer messages yet.


Back to Room ListRoom Version: 6