Skip to content

Conversation

@michielp1807
Copy link
Collaborator

@michielp1807 michielp1807 commented Jul 9, 2025

This allows you to build the ziplinter Python module using:

nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix { }'

(the parameters are needed to make the imports work)

Some things to consider:

  • Maybe we want a package.nix instead of a default.nix?

Copy link
Member

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

I've made the repo public now.

Maybe we want a package.nix instead of a default.nix?

No clue. Based on some quick searches default.nix is a fine option for small projects.

Maybe we want to change the imports to something along the lines of

I don't have strong feelings about this.

default.nix Outdated
Comment on lines 8 to 18
# Currently, it uses the current directory as a source:
src = ./.;

# When the repository becomes public, we probably want something like this instead:

# src = fetchFromGitHub {
# owner = "trifectatechfoundation";
# repo = "ziplinter";
# rev = "4cac21b3bbf83b71409c6747248b98ea6f8d5306"; # can be a commit hash or a release tag
# hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
# };
Copy link
Member

Choose a reason for hiding this comment

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

it's public now

Copy link
Collaborator

Choose a reason for hiding this comment

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

please note that you can get packaging help (for free) from the NGI project. Just contact NLnet.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, but there is some bureaucracy there, and this should just work regardless right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's now using fetchFromGitHub. Maybe it would be nice to create a release on GitHub and use the release tag instead of the commit hash?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, but there is some bureaucracy there, and this should just work regardless right?

Is the goal to also publish it on nixpkgs? If so, some help from someone who has done so before could be nice just to confirm we are doing everything in the proper manner. Alternatively, we could also just submit a PR and see what happens

Copy link
Member

Choose a reason for hiding this comment

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

@michielp1807 michielp1807 marked this pull request as ready for review July 16, 2025 12:41
@folkertdev folkertdev merged commit 502c710 into main Jul 16, 2025
2 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.

4 participants