Skip to content

Add support for Nix develop through flakes #246

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

Conversation

8roken
Copy link

@8roken 8roken commented May 26, 2025

For the unfamiliar, flake.nix is vaguely similar to what a Dockerfile would be: It describes packages, dependencies, environment variables required to build the project.

This flake.nix should be all that's required for someone who wants to build this project under Nix. Although I haven't tested it myself, I believe the flake should support most system configuration as it doesn't have hard coded values, but if there was such a problem, I'd be more than happy to help and fix those as they arise.

Here's how someone would use this flake to build cosmic-greeter:

cd cosmic-greeter
nix develop
cargo build

For the unfamiliar, flake.nix is vaguely similar to what a
Dockerfile would be: It describes packages, dependencies, environment
variables required to build the project.

This flake.nix should be all that's required for someone who wants to
build this project under Nix.
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.

1 participant