New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Nix/NixOS support #282
base: dev
Are you sure you want to change the base?
Conversation
Calling
|
Hi, Thanks for this pull request. Regarding the issue here:
This may be on a separate thread as an Issue. Strangely, it does not have permission to read that file. It never happened to me. Can you check the permissions? Which distro are you using?
Regarding the pull request I am not sure whether this repository would be the one suitable for having such files. Also, can you tell me how the nixos and flake work (possibly with some snippets) and what's their benefit in the JuNest context? Thanks! |
Hello, sorry for the delay, I would be happy to explain how flake.nix and other components of this PR (default.nix / flake.lock) work. First of all I will establish some definitions: To make a package, even a bash script work on NixOS, you will need to package it because packages don't go in directories like The
or if I dont like the declarative method I can install it from the CLI with this command
Junest has nothing to lose by supporting one more distro, of course it's absurd to say you should support every unconventional and obscure linux distro in the world, but I am willing to help with this. Junest is also a great tool to escape "the Nix way" of doing things, I use Junest on my NixOS box to install some AppImages and other software that is too complicated to package for Nix as a user.
I opened an issue about this: 284
Those files only serve to tell Nix how to install Junest on the nix store, since junest checks for some commands in |
I might say that this is very specific to the given Nix space and, supporting the packaging of JuNest codebase is not part of what this repository is supposed to be. Otherwise, this will require to add more code to support addtitional package managers in the future. I think each code repo should follow a single responsibility principle as much as possible. For this reason, I do see this useful though as part of a separate repository which describe the Nix package only and pull the JuNest code to it even if from a different git repo (I do not know if this is feasible with Nix but there are other package managers that allows that). As side note: talking about (universal) package managers, you might be interested on Pearl package manager which help define custom environments (programs, dotfiles, etc) on different systems (linux distro or OSX). Be aware though that I might be bias given that I am maintaining it ;) |
Features
This pull request enables Nix and NixOS support via nix flakes
Important Notes
Testing must be done to ensure there are no breaking issues with junest after nix install it.
Issues must be fixed before merging this pull request.