Skip to content

Add Nix flake - #356

Merged
htkhiem merged 1 commit into
htkhiem:mainfrom
aaravrav:feat/nix-flake
Sep 13, 2026
Merged

htkhiem merged 1 commit into
htkhiem:mainfrom
aaravrav:feat/nix-flake

Conversation

@aaravrav

@aaravrav aaravrav commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This adds optional Nix flake support for building and developing Euphonica on Linux. Useful for anyone who uses nix (on any Linux distro)

Nix users can:

  • Run nix run github:htkhiem/euphonica to reproducibly build and launch Euphonica from the tip of main on Linux, or use nix run . from a local checkout.
  • nix develop to drop into a shell with all native and Rust build dependencies on Linux/MacOS (MacOS won't be able to compile Euphonica obviously, yet)

For incremental development on Linux:

nix develop
meson setup build --prefix="$PWD/build/install" -Dprofile=dev
meson compile -C build
meson install -C build
build/install/bin/euphonica

After the initial setup, only the final three commands are needed.

@htkhiem

htkhiem commented Sep 12, 2026

Copy link
Copy Markdown
Owner

I see you have Darwin stuff in there. You sure we can run on macOS already? :)

@aaravrav

Copy link
Copy Markdown
Contributor Author

Just for the future, I saw someone talking about them porting euphonica to macOS. Right now it just drops you into a shell with the meson toolchain

@htkhiem

htkhiem commented Sep 13, 2026

Copy link
Copy Markdown
Owner

I see, thanks a lot :D

@htkhiem
htkhiem merged commit 2f89edc into htkhiem:main Sep 13, 2026
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