!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

862 Members
177 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@exaltia:chat.exaltia.fr@exaltia:chat.exaltia.fr joined the room.02:51:26
@hatimthayyil:matrix.orgHatim joined the room.09:31:35
@timschumi:matrix.orgtimschumi joined the room.18:28:46
@n4ch723hr3r:nope.chatn4ch723hr3r joined the room.22:28:59
@softmoonworld:matrix.org@softmoonworld:matrix.org joined the room.23:58:47
14 Jul 2025
@softmoonworld:matrix.org@softmoonworld:matrix.org Hi! I'm a bit new to NixOS and to flakes. I'm using flakes to create a Java dev environment, and it wants to dynamically link libGL.so.1 and cannot find it. I'm trying to use nix-ld to solve this problem and set LD_LIBRARY_PATH. I might be doing something wrong in multiple places, and I'm wondering if I should share a snippet of my flake file. Please let me know if there is a better room to ask this question. Thanks! 00:08:21
@softmoonworld:matrix.org@softmoonworld:matrix.org * Hi! I'm a bit new to NixOS and to flakes. I'm using flakes to create a Java dev environment, and the program I'm developing wants to dynamically link libGL.so.1 and cannot find it. I'm trying to use nix-ld to solve this problem and set LD_LIBRARY_PATH. I might be doing something wrong in multiple places, and I'm wondering if I should share a snippet of my flake file. Please let me know if there is a better room to ask this question. Thanks! 00:08:57
@tbaldwin:matrix.orgTrent BaldwinAre you trying to build a Java program for nix or just set up a dev environment? 02:29:10
@anderson_torres:matrix.org@anderson_torres:matrix.org left the room.11:14:55
@softmoonworld:matrix.org@softmoonworld:matrix.orgI'm trying to set up a dev environment13:44:09
@n4ch723hr3r:nope.chatn4ch723hr3ryou use devShells for that13:44:39
@softmoonworld:matrix.org@softmoonworld:matrix.org

I think I misunderstood the purpose of nix develop and need to read through the nix-shell man page. I appreciate the devShells rec I didn't know about that project.

14:11:52
@znaniye:matrix.orgznaniye joined the room.19:31:15
15 Jul 2025
@softmoonworld:matrix.org@softmoonworld:matrix.org changed their display name from softmoonworld to moon.00:03:46
@softmoonworld:matrix.org@softmoonworld:matrix.org set a profile picture.00:06:08
@softmoonworld:matrix.org@softmoonworld:matrix.org changed their profile picture.00:12:02
@softmoonworld:matrix.org@softmoonworld:matrix.org removed their profile picture.00:12:14
@softmoonworld:matrix.org@softmoonworld:matrix.org set a profile picture.00:13:34
@atagen:ch.atagen.coatagen devShells is not a project, it's an output of a nix flake
ie.
{
  outputs =
    { self, nixpkgs }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
    in
    {
      devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.hello ]; };
    };
}
01:46:56
@atagen:ch.atagen.coatagenif you are looking at devenv or something it's totally different and usually unnecessary01:47:10
@softmoonworld:matrix.org@softmoonworld:matrix.org
In reply to @atagen:ch.atagen.co
if you are looking at devenv or something it's totally different and usually unnecessary
oh i see! i need to read up on this. sounds like i was heading in the right direction with a flake, but wasn't using devShells to wrap my mkShell. will report back
07:27:29
@ginkogruen:matrix.orgginkogruen joined the room.22:52:11
@softmoonworld:matrix.org@softmoonworld:matrix.org

yay it worked! thank you

22:58:13
16 Jul 2025
@fjolliton:matrix.orgcods joined the room.13:47:38
@scotthdev:matrix.orgSCOTT-HAMILTON joined the room.14:36:15
@scotthdev:matrix.orgSCOTT-HAMILTON

Hello, I have a environment that is built with buildEnv.

I've added this buildEnv to a devShell's packages and I can confirm that when I run nix develop the environment is accessible.

How can I create a bash default runnable (nix run) such that running it is equivalent to running nix develop and then running the bash script ?

14:38:45
@scotthdev:matrix.orgSCOTT-HAMILTON *

Hello, I have an environment that is built with buildEnv.

I've added this buildEnv to a devShell's packages and I can confirm that when I run nix develop the environment is accessible.

How can I create a bash default runnable (nix run) such that running it is equivalent to running nix develop and then running the bash script ?

14:39:05
17 Jul 2025
@atagen:ch.atagen.coatagenare you perhaps looking for shellHook in the mkShell ?04:16:03
@atagen:ch.atagen.coatagen using nix run to enter a dev shell seems a little off but if you put the bash script into the shell packages and execute it in shellHook I think you can achieve what you want 04:17:34
@atagen:ch.atagen.coatagen using nix run to enter a dev shell seems a little off but if you put the bash script into the shell packages and execute it in shellHook I think you can achieve what you want with just the nix develop cmd 04:17:44

Show newer messages


Back to Room ListRoom Version: 6