Skip to content

Package zlaunch for Nix/NixOS users and create devshell#22

Merged
zortax merged 4 commits intozortax:mainfrom
ItzDerock:main
Jan 19, 2026
Merged

Package zlaunch for Nix/NixOS users and create devshell#22
zortax merged 4 commits intozortax:mainfrom
ItzDerock:main

Conversation

@ItzDerock
Copy link
Copy Markdown
Contributor

Added a flake.nix and flake.lock to add support for Nix.

Nix/NixOS users can test out zlaunch by running:

nix shell github:zortax/zlaunch
# Will enter a shell with zlaunch
zlaunch & bg
zlaunch toggle

and it can be installed globally (impurely) via

nix profile add github:zortax/zlaunch

or installed declaratively by adding it to their system configuration.

There is also a devshell, so Nix users can easily enter an environment with cargo and all other dependencies already installed:

nix develop

@zortax
Copy link
Copy Markdown
Owner

zortax commented Jan 17, 2026

It would be nice to be able to use the flake for development on non-nixos systems as well, but If I remember correctly that would require using nixGL. Do you think this would make sense to include? Or is it to annoying to do this in a way that doesn't brick usage for NixOS users?

Co-authored-by: Janrupf <werbung.janrupf@t-online.de>
@ItzDerock
Copy link
Copy Markdown
Contributor Author

It would be nice to be able to use the flake for development on non-nixos systems as well, but If I remember correctly that would require using nixGL. Do you think this would make sense to include? Or is it to annoying to do this in a way that doesn't brick usage for NixOS users?

I'm not too familiar with NixGL, but imo it makes more sense for those who need it to provide it themselves. The non-nixos users who are using this flake can install nixGL to their system, and prefix their cargo/zlaunch command with nixGL: nixGL cargo run --release for example.

README.md Outdated
Comment on lines +47 to +57
nix shell github:zortax/zlaunch
zlaunch & bg # Run the daemon
zlaunch toggle
```

or add it to your system configuration,

```nix
{
inputs = {
zlaunch.url = "github:zortax/zlaunch";
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we instruct users to explicitly use the tag of the latest release version instead of this (which If I understand correctly will use latest commit on main)? I probably will not think about updating the hash on every commit...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's a good idea, good catch.

Copy link
Copy Markdown
Owner

@zortax zortax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the contribution

@zortax zortax merged commit a1368e5 into zortax:main Jan 19, 2026
1 check passed
zortax added a commit that referenced this pull request Jan 19, 2026
* add nix flake

---------

Co-authored-by: Janrupf <werbung.janrupf@t-online.de>
Co-authored-by: Leonard Seibold <leo@zrtx.de>
zortax added a commit that referenced this pull request Jan 19, 2026
* add nix flake

---------

Co-authored-by: Janrupf <werbung.janrupf@t-online.de>
Co-authored-by: Leonard Seibold <leo@zrtx.de>
zortax added a commit that referenced this pull request Jan 19, 2026
* add nix flake

---------

Co-authored-by: Janrupf <werbung.janrupf@t-online.de>
Co-authored-by: Leonard Seibold <leo@zrtx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants