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

narrowlink: init at 0.1.4 #248723

Merged
merged 1 commit into from Aug 24, 2023
Merged

narrowlink: init at 0.1.4 #248723

merged 1 commit into from Aug 24, 2023

Conversation

dit7ya
Copy link
Member

@dit7ya dit7ya commented Aug 12, 2023

Description of changes

Closes #248617.

Disclaimer: I haven't tested the resulting binaries thoroughly yet.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

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

Could you please mark this broken on x86_64-darwin (or fix it!)?

Otherwise, LGTM. :)


rustPlatform.buildRustPackage rec {
pname = "narrowlink";
version = "0.1.2";
Copy link
Member

Choose a reason for hiding this comment

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

0.1.3 is out, but it's fine to leave that for follow-up IMO.

};

postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice if upstream kept this in version control. Maybe ask them?

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@SajjadPourali can you please cut a release after the lock-file addition commit? That would make automating updating this package a bit simpler here.

Also since you commented, do you have any idea why the build is failing on x86_64-darwin - build logs here - https://logs.ofborg.org/?key=nixos/nixpkgs.248723&attempt_id=d7ae30ff-d5b7-4cb0-9d55-884033c82973

Choose a reason for hiding this comment

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

I think the failure is due to using Apple SDK 10 instead of 11. Please take a look at this issue for more info: GuillaumeGomez/sysinfo#915


For the tag/release, does https://github.com/narrowlink/narrowlink/releases/tag/Nightly works for you? It might take a bit time for the actual release.

Copy link
Member Author

@dit7ya dit7ya Aug 18, 2023

Choose a reason for hiding this comment

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

Thanks! The build failure is solved!

Using the Nightly tag will imply making the version unstable-DDDD-MM-YY. Do you think cutting a minor or patch release is possible?

There are workarounds but not clean.

Choose a reason for hiding this comment

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

The new release will be done after narrowlink/narrowlink#28. I plan to finish it by this weekend.

Copy link

Choose a reason for hiding this comment

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

Thanks! The build failure is solved!

Using the Nightly tag will imply making the version unstable-DDDD-MM-YY. Do you think cutting a minor or patch release is possible?

There are workarounds but not clean.

@dit7ya Done https://github.com/narrowlink/narrowlink/tree/0.1.4

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, the Cargo.lock is still outdated but I figured using a patch (much smaller than checking in the entire lockfile) is faster than waiting for the next release.

@JeremiahSecrist
Copy link
Contributor

Once this gets merged I'll make a nixos module for it.

@dit7ya dit7ya changed the title narrowlink: init at 0.1.2 narrowlink: init at 0.1.4 Aug 24, 2023
@dit7ya dit7ya requested a review from alyssais August 24, 2023 06:58
@alyssais alyssais merged commit 1f49f87 into NixOS:master Aug 24, 2023
22 checks passed
];

meta = {
description = "Narrowlink securely connects devices and services together, even when both nodes are behind separate NAT";
Copy link
Member Author

Choose a reason for hiding this comment

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

Damn, I forgot to remove the package name from the description. I guess its for the next update then 🤷 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: Narrowlink
4 participants