!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

895 Members
179 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
18 Nov 2024
@anadon:matrix.orgAnadon * I want to use git repos with Nix Flakes in them directly as if they were package dependencies in another Flake. I can't seem to find good documentation for this. Is it even a thing? The purpose is to improve, but not impose perfection or slowdown, on developers or researchers as they Nix-ify their projects. The application is that I have a root project that needs to be put into a flake, which in turn has a number of other projects which are not Nix packages but could feasibly add a Nix Flake. The end goal is to be able to set up and package a project such that the end result is as easy to replicate for others as described here: https://obscuratur-in-arena.readthedocs.io/en/latest/A-good-way-to-set-up-your-python-project-using-Nix-Direnv-and-Poetry.html18:04:37
20 Nov 2024
@inayet:matrix.orgInayet removed their profile picture.00:59:06
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event21:59:49
21 Nov 2024
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event01:56:44
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event02:00:10
22 Nov 2024
@jake:hillion.co.ukJake Hillion joined the room.00:47:02
@jake:hillion.co.ukJake Hillion

hey all, I'm hoping this is the right place to ask about packaging problems with flakes. I'm trying to add a flake to a project that builds with meson (poor me) and having some trouble with run_command. The error I'm ending up with is:

meson.build:51:16: ERROR: Could not execute command `/build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang'.

I did the usual things: replacing #!/bin/bash in the script with #!/usr/bin/env bash, running the script from my flake directory (./meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang, works as intended), doing the same in nix develop -i which also works.

I ran nix build --keep-failed and got note: keeping build directory '/tmp/nix-build-scx.drv-4/build'. I cd'd to /tmp/nix-build-scx.drv-4/ (dropping the final /build, hoping that's where the script chroots) and ran ./build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang in nix develop -i. Also worked. I'm a bit stumped how else to debug this, what else can I do when the problem isn't reproducible in an environment ignoring nix develop?

00:52:30
@jake:hillion.co.ukJake HillionWIP diff if it's helpful: https://github.com/sched-ext/scx/commit/43ef529001d059a799dccbbd2b7a1c4541da0c9601:02:24
@rager:lolrav.esrager set a profile picture.07:47:36
@rager:lolrav.esrager changed their profile picture.07:50:26
@hive:the-apothecary.club👉@crystallinefire:chat.solarpunk.moe changed their profile picture.20:25:37
24 Nov 2024
@nyncral:matrix.org@nyncral:matrix.org joined the room.17:16:51

Show newer messages


Back to Room ListRoom Version: 6