Package zlaunch for Nix/NixOS users and create devshell#22
Package zlaunch for Nix/NixOS users and create devshell#22zortax merged 4 commits intozortax:mainfrom
Conversation
|
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>
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: |
README.md
Outdated
| 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"; |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Yeah that's a good idea, good catch.
zortax
left a comment
There was a problem hiding this comment.
lgtm, thanks for the contribution
* add nix flake --------- Co-authored-by: Janrupf <werbung.janrupf@t-online.de> Co-authored-by: Leonard Seibold <leo@zrtx.de>
* add nix flake --------- Co-authored-by: Janrupf <werbung.janrupf@t-online.de> Co-authored-by: Leonard Seibold <leo@zrtx.de>
* add nix flake --------- Co-authored-by: Janrupf <werbung.janrupf@t-online.de> Co-authored-by: Leonard Seibold <leo@zrtx.de>
Added a
flake.nixandflake.lockto add support for Nix.Nix/NixOS users can test out zlaunch by running:
and it can be installed globally (impurely) via
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: