Skip to content

Add nix environment and update script - #171

Closed
jtojnar wants to merge 4 commits into
pygobject:masterfrom
jtojnar:nix
Closed

jtojnar wants to merge 4 commits into
pygobject:masterfrom
jtojnar:nix

Conversation

@jtojnar

@jtojnar jtojnar commented Feb 11, 2024

Copy link
Copy Markdown
Contributor

Nix package manager makes it easy to obtain all the typelibs without having to install them globally. Just run nix-shell (or enter the project directory if you have direnv) and then you will have the libraries available in the environment.

Then you can run tools/update.sh to re-generate all stubs.

@jtojnar jtojnar closed this Feb 11, 2024
@jtojnar

jtojnar commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

Just using this for local development.

@jtojnar

jtojnar commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

Tried regenerating all stubs that worked (GstPbutils generation segfaults) before and after #167 for comparison.

Only two stubs are invalid code (Gst #172 and Gtk3 #169) but that was a pre-existing condition.

@lovetox

lovetox commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

you need to use the -o argument, not output to a file.

The current stubs need to be parsed to find all override comments.

@lovetox

lovetox commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

Can you contain the nix stuff to some subfolder, maybe with a README how to use?

Further please separate this MR from updating the files.

@jtojnar

jtojnar commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

I mostly just opened this to share the diff for #167

It probably does not make sense to merge the Nix environment unless someone else is interested in using it.

@lovetox

lovetox commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

I would keep the update.sh though, it makes it easier for people to execute all steps, they can comment out the libs they dont want to update.

@matperc

matperc commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

I love the idea of update.sh.

IMHO we should automate this to run every X days, to keep every stub in sync with upstream

@jtojnar

jtojnar commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

Opened #174 with the update script.

@jtojnar
jtojnar force-pushed the nix branch 2 times, most recently from 26cce52 to e586229 Compare February 25, 2024 22:06
@lovetox

lovetox commented May 10, 2026

Copy link
Copy Markdown
Collaborator

Closing for now, if this is still needed please rebase and reopen.

@lovetox lovetox closed this May 10, 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.

3 participants