!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

803 Members
162 Servers

Load older messages


SenderMessageTime
24 Apr 2025
@arjen:langebaerd.netarjen changed their profile picture.17:10:41
@ortolanbunting3002:tchncs.de@ortolanbunting3002:tchncs.de joined the room.18:20:31
25 Apr 2025
@jethair:matrix.orgjethair (int32/i32) joined the room.01:01:53
@nrs-status:matrix.orgthirdofmay18081814goya joined the room.16:08:19
@rav:vergara.techRene joined the room.18:37:30
@rav:vergara.techRene

Hi. I have an app in a flake that uses another app (like a database). It doesn't need it for building, but it should be there for run-time. Is there a way I can bundle the two together?

18:43:41
@rob.sliwi:matrix.orgrobsliwiWhat's the context? NixOS has modules that make this possible. Otherwise you could include the run-time deps in the devShell and use them when you need it? Or make an app that runs both, the app and the deps as well?18:59:50
@rav:vergara.techRene
In reply to @rob.sliwi:matrix.org
What's the context?
NixOS has modules that make this possible.
Otherwise you could include the run-time deps in the devShell and use them when you need it?
Or make an app that runs both, the app and the deps as well?

I thought of maybe making a flake that depends on two flakes for the two apps that I want to bundle together. I was wondering if there was any official flake-y way of having a user install a set of related apps in their profile.

19:03:02
@rob.sliwi:matrix.orgrobsliwiSounds simple like: Specify both flakes in the inputs and go for it?19:07:26
26 Apr 2025
@awwpotato:envs.netawwpotato (she/her) changed their profile picture.19:59:07
27 Apr 2025
@wilma-schultz:tchncs.de@wilma-schultz:tchncs.de joined the room.03:22:20
@mjolnir:nixos.orgmjolnir banned @wilma-schultz:tchncs.de@wilma-schultz:tchncs.de (<no reason supplied>).03:22:21
@dschodschiii_2:matrix.orgJohn joined the room.09:51:52
@dschodschiii_2:matrix.orgJohn Hi, I hope to be in the right place (otherwise I'd appreciate a redirect), to ask if anyone ever had to build something with kotlin-native, as I have the problem that my build succeeds when I am running a nix shell with shellHook gradle ... but not when I run nix develop with the same shell hook.
I think to have been able to boil the problem down to specific caches being created in ~/ (e.g. ~/.konan), but I cannot get kotlin-native to create the folders elsewhere.
TL:DR; did anyone ever try to do s.t. with kotlin-native within the a nix-flake sandbox?
09:58:08
@sandro:supersandro.deSandro 🐧You are mixing things up. The pure mode of flakes doesn't work on that level, it is pure evaluation time.12:27:49
@dschodschiii_2:matrix.orgJohn I might be mixing things up, but I am trying to use the flake in pure mode - however kotlin-native seems to cache things in my home-folder, which in nix develop works because it allows the impurity, but my goal is it to make it pure and to use nix build to build the application. 12:50:51
@dramforever:matrix.orgdramforever oh, you mean sandbox = true? 13:19:49
@dramforever:matrix.orgdramforever

some packages have a hook like this or similar

preBuild = ''
  export XDG_CACHE_HOME="$(mktemp -d)"
'';
13:20:44
28 Apr 2025
@devalot:matrix.orgPeter Jones joined the room.12:43:08
@devalot:matrix.orgPeter Jones

I have a flake with a devShells.default that uses inputsFrom to create a development environment for a package. If I use nix develop it drops me into a shell with a correct phase functions (buildPhase, etc.). However, if I use nix develop --build I get unexpected errors about no makefiles and if I use nix develop --command bash -c buildPhase bash complains about no such command buildPhase.

What do I need to do in my devShells.default so that either nix develop --build or nix develop --command bash -c buildPhase works? Thanks!

12:48:32
@charlotte:vanpetegem.mechvp left the room.14:31:08
@coolio:nope.chatcoolio joined the room.18:21:17
29 Apr 2025
@ortolanbunting3002:tchncs.de@ortolanbunting3002:tchncs.de left the room.01:27:50
@jethair:matrix.orgjethair (int32/i32) changed their display name from jethair to jethair (int32/i32).01:39:46
@nixx_sf:matrix.orgNixx joined the room.02:04:00
@dschodschiii_2:matrix.orgJohn hi dramforever thanks for the reply! Yes, I mean to use the sandboxing-property of nix-flakes as intended. Just to make sure, that I, as a newbie, understand correctly: sandbox=true does not have to specified anywhere for the flake to be in "sandbox-mode", right? 08:24:37
@dschodschiii_2:matrix.orgJohnokay, thanks for this hint in the right direction - it turns out that I was trying the right thing all along, only that the variable-name changed in one of the versions and therefore it did not work. Thanks ^^08:27:24
@jimalexberger:matrix.orgjimalexberger joined the room.14:05:00
@sleeves:envs.netsleeves joined the room.16:05:15
@fkouhai:matrix.orgfkouhai joined the room.16:35:34

Show newer messages


Back to Room ListRoom Version: 6