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 flake.nix #27

Merged
merged 1 commit into from
Oct 29, 2023
Merged

Add flake.nix #27

merged 1 commit into from
Oct 29, 2023

Conversation

MagicRB
Copy link
Contributor

@MagicRB MagicRB commented Oct 9, 2023

Adds flake.nix, allows for development on NixOS

Signed-off-by: magic_rb <richard@brezak.sk>
@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 9, 2023

I'm still testing this, please hold off on merging

@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 9, 2023

This seems to work

@futu2
Copy link
Contributor

futu2 commented Oct 13, 2023

I don't understand why it costs that lots of code.
How did the pkgs.haskellPackages.h-raylib works? It seems work well before ( broken in unstable now).
I am not very familiar with nix, but why system default drv works well, is anybody make a patch to it?
See NixOS/nixpkgs#197407

@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 18, 2023

the problem is that h-raylib brings its own raylib and glfw. Which works well on other distros but is very un-NixOS-sy imo. Removing that simplifies packaging a lot.

@Anut-py
Copy link
Owner

Anut-py commented Oct 18, 2023

I will have to update the git revision for raylib in flake.nix every time I pull the raylib source right?

@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 18, 2023

Well if you keep tracking master, then probably. raylib in nixpkgs is too old and tracks stable releases.

@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 18, 2023

there is no easy way to include a submodule. Nix doesn't do submodules.

@futu2
Copy link
Contributor

futu2 commented Oct 19, 2023

there is no easy way to include a submodule. Nix doesn't do submodules.

Can nix flake fetch a raylib repo right in the ./. folder?
My simple callCabal2nix flake scripts run nix build successfully if delete git info by running mv .git .git.bk

@MagicRB
Copy link
Contributor Author

MagicRB commented Oct 19, 2023

yeah deleting .git is a horrible hack, nix just does not work with submodules.

@Anut-py Anut-py merged commit 125ae9a into Anut-py:master Oct 29, 2023
7 checks passed
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