Skip to content

Add support for NixOS #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

brcha
Copy link

@brcha brcha commented May 18, 2020

Added default.nix that builds a nix-shell capable of building this project.

NixOS uses sandboxing to install software so basically no libraries are available to the user when he tries compiling anything, unless the user first enters a nix-shell (basically chroot with changed parameters) first. Since this project is using conan, no external libraries are really needed, except for OpenGL and libUdev that are required by SFML, so I've added them to the default.nix and made sure gcc10 is present on the system.

Added default.nix that builds a nix-shell capable of building this
project
@ddalcino
Copy link
Contributor

ddalcino commented May 19, 2020

Cool! Is there any way to get it running in a CI environment?
I mean, like, a Github Actions workflow or something.

@brcha
Copy link
Author

brcha commented May 19, 2020

Cool! Is there any way to get it running in a CI environment?
I mean, like, a Github Actions workflow or something.

There's a NixOS docker image (https://hub.docker.com/r/nixos/nix), so you'd have to add stable and unstable channels, update them (similar to what's written in the image description) and then run cmake+make+make test or what ever in a nix-shell. So, yeah, it shouldn't be a problem to make a Nix-based Github workflow.

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.

2 participants