Skip to content
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 flake #124

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

Add Nix flake #124

wants to merge 1 commit into from

Conversation

nilp0inter
Copy link

  • This PR adds a flake with a derivation using the current nixpkgs's Nim infrastructure.
  • The previous nix code is unchanged.
  • A small documentation section is added to the README.

@nilp0inter
Copy link
Author

Ping @Lord-Valen

@leana8959
Copy link

Hello,

I have tried to use the executable built using the nix flake proposed by this PR, however it gives an error "No appropriate visual found", is this related to a bad build process, or am I using the program incorrectly?

[~] $ result/bin/boomer
/home/leana/.config/boomer/config doesn't exist. Using default values.
Using config: (min_scale: 0.01, scroll_speed: 1.5, drag_friction: 6.0, scale_friction: 4.0)
Screen rate: 60
GLX version 1.4
GLX extension:
No appropriate visual found

Thanks :)

@nilp0inter
Copy link
Author

@leana8959,

During this year, nixpkgs's Nim machinery changed quite a bit. I updated and simplified this PR, taking advantage of the new function buildNimPackage and now it should work just fine.

Try running:

nix run github:nilp0inter/boomer

Cheers,
Roberto

@leana8959
Copy link

I confirm that this version of the flake does work, thank you!

Have a nice day :)

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.

3 participants