!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

869 Members
171 Servers

Load older messages


SenderMessageTime
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
26 Jun 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".01:39:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".01:39:59
@grahamc:nixos.org@grahamc:nixos.org changed the room topic to "" from "".01:39:59
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.01:40:14
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgmjolnir.01:40:31
@mjolnir:nixos.orgmjolnir joined the room.01:40:32
@pachumicchu:myrdd.infoPacman99 joined the room.01:46:13
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:49:01
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.01:57:36
@charlotte:vanpetegem.mechvp joined the room.07:05:16
@jez:petrichor.meJez (he/him) joined the room.07:07:24
@wucke13:matrix.orgwucke13 joined the room.08:50:04
@tim:stratum0.orgdadada joined the room.11:59:48

Show newer messages


Back to Room ListRoom Version: 6