Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/glifPublic
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Add Nix flake support#370

Draft
jakeisnt wants to merge5 commits intoMFEK:master
base:master
Choose a base branch
Loading
fromjakeisnt:flake
Draft

Add Nix flake support#370

jakeisnt wants to merge5 commits intoMFEK:masterfromjakeisnt:flake

Conversation

jakeisnt
Copy link

@jakeisntjakeisnt commentedDec 24, 2022
edited
Loading

This helps anyone who usesNixOS ornix get started with a development environment seamlessly. If someone hasnix anddirenv installed, upon entering this repository they'll have a development environment with the exact versions of rust and all of the system packages necessary to build the repo.

It:

  • Exposes a development shell with all system and rust dependencies configured
  • Adds aglif-test command adhering to the suggestedcargo run command in the README for testing the package
  • Enables nix builds of theglif package, which can then be pulled into other packages

I put this together to get glif to run on my end; merge if others would use, OK to close if not.

Copy link
Collaborator

@ctrlcctrlvctrlcctrlv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for the very long contribution. I've used nix before but barely, I just used it as some package required it so I don't know how to test this but assume it works.

However I think this ought to also build (at least) MFEKmetadata, MFEKstroke, MFEKpathops, MFEKinit. They're all a lot simpler to build. Some functions willnot work if MFEKmetadata is not installed. MFEKinit is very useful for making initial .glif files.

@ctrlcctrlv
Copy link
Collaborator

If you do this then probably these files belong in a new repo, MFEK/flake.nix. I can create it for you and leave it empty if you want me to.

@ctrlcctrlv
Copy link
Collaborator

Oh and last thought. MFEK's IPC uses--version and$PATH only to find its fellow modules so there's nothing special you have to do besides put all those binaries in the NixOS$PATH.

@alerque
Copy link
Contributor

I would suggest a flake in each of those other repositories, then depend on them from the flake in this repository. Having a "parking" repository just for a combined flake kind of defeats the purpose and expected usage.

jakeisnt reacted with thumbs up emoji

@ctrlcctrlv
Copy link
Collaborator

Oh, I see. Well, I still think a parking repository makes sense, as even though this is the org's most popular project, it's not the "root" module in any sense. You can use MFEKstroke / MFEKpathops / MFEKmetadata without it just fine.

But perhaps that actually makes this easier for@jakeisnt. If he adds a flake to MFEKmetadata, and makes this rely on that, I'll consider that enough to merge this. (That's the only IPC-checked dependency at current.)

@jakeisnt
Copy link
Author

jakeisnt commentedDec 24, 2022
edited
Loading

Agree that the flake-per-repo approach is more reasonable, as it allows developers to make use of nix shell environments. On it!

@ctrlcctrlv
Copy link
Collaborator

Thanks! Sorry for my ignorance of NixOS :-)

If there's enough interest I'll make MFEK/flake.nix myself after merging this and the MFEKmetadata PR.

@ctrlcctrlv
Copy link
Collaborator

ctrlcctrlv commentedDec 25, 2022
edited
Loading

Agree that the flake-per-repo approach is more reasonable, as it allows developers to make use of nix shell environments.

Do you think that the idea of having an MFEK/flake.nix with all the binary tools isn't useful then?

The best supported installation method, if you can even call it one, is basically that:

@ctrlcctrlvctrlcctrlv marked this pull request as draftDecember 26, 2022 21:13
@ctrlcctrlv
Copy link
Collaborator

Marked as draft as blocked onMFEK/metadata#139 (comment) (see subsequent comment on potential fix).

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ctrlcctrlvctrlcctrlvctrlcctrlv requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@jakeisnt@ctrlcctrlv@alerque

[8]ページ先頭

©2009-2025 Movatter.jp