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

display3d: init at 0.2.1 #365657

Merged
merged 2 commits into from
Feb 12, 2025
Merged

display3d: init at 0.2.1 #365657

merged 2 commits into from
Feb 12, 2025

Conversation

renpenguin
Copy link
Contributor

Added display3d, a CLI for rendering and animating 3D objects: https://github.com/renpenguin/display3d
Added renpenguin as a package maintainer for display3d

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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.

Add a 👍 reaction to pull requests you find important.

@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Dec 16, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 16, 2024
@steeleduncan
Copy link
Contributor

Also, all changes should be squashed so that there are only 2 commits. The first with the maintainers list change, the second adding the package

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1 10.rebuild-linux: 1 labels Dec 17, 2024
@renpenguin renpenguin closed this Dec 17, 2024
@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 18, 2024
Copy link
Contributor

@steeleduncan steeleduncan left a comment

Choose a reason for hiding this comment

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

It looks good to me, but I don't have commit access, and don't maintain a similar package, so it doesn't make sense for me to leave an approving review.

My suggestion to get it merged would be to find someone who has merged a PR comparable to this into nixpkgs recently, and ping them for a review

@renpenguin
Copy link
Contributor Author

Hi @getchoo, are you able to review this? Thank you.

@renpenguin renpenguin changed the title display3d: init at 0.1.17 display3d: init at 0.2.0 Jan 13, 2025
@renpenguin renpenguin changed the title display3d: init at 0.2.0 display3d: init at 0.2.1 Feb 1, 2025
@renpenguin renpenguin requested a review from Tert0 February 1, 2025 00:52
@Tert0
Copy link
Member

Tert0 commented Feb 1, 2025

I have successfully build and tested the package on x86_64-linux.

Suggestion:

diff --git a/pkgs/by-name/di/display3d/package.nix b/pkgs/by-name/di/display3d/package.nix
index 0d21771f5a86..c1e72086deaf 100644
--- a/pkgs/by-name/di/display3d/package.nix
+++ b/pkgs/by-name/di/display3d/package.nix
@@ -2,6 +2,8 @@
   lib,
   rustPlatform,
   fetchFromGitHub,
+  versionCheckHook,
+  nix-update-script,
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -18,6 +20,12 @@ rustPlatform.buildRustPackage rec {
   useFetchCargoVendor = true;
   cargoHash = "sha256-E4Ncg9OPlYGra794pPS9u9oyqep+k3Ser5ZxfV+uSRM=";
 
+  nativeInstallCheckInputs = [ versionCheckHook ];
+  doInstallCheck = true;
+  versionCheckProgramArg = "--version";
+
+  passthru.updateScript = nix-update-script { };
+
   meta = {
     description = "CLI for rendering and animating 3D objects";
     homepage = "https://github.com/renpenguin/display3d";

@renpenguin
Copy link
Contributor Author

I have successfully build and tested the package on x86_64-linux.

Suggestion:

diff --git a/pkgs/by-name/di/display3d/package.nix b/pkgs/by-name/di/display3d/package.nix
index 0d21771f5a86..c1e72086deaf 100644
--- a/pkgs/by-name/di/display3d/package.nix
+++ b/pkgs/by-name/di/display3d/package.nix
@@ -2,6 +2,8 @@
   lib,
   rustPlatform,
   fetchFromGitHub,
+  versionCheckHook,
+  nix-update-script,
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -18,6 +20,12 @@ rustPlatform.buildRustPackage rec {
   useFetchCargoVendor = true;
   cargoHash = "sha256-E4Ncg9OPlYGra794pPS9u9oyqep+k3Ser5ZxfV+uSRM=";
 
+  nativeInstallCheckInputs = [ versionCheckHook ];
+  doInstallCheck = true;
+  versionCheckProgramArg = "--version";
+
+  passthru.updateScript = nix-update-script { };
+
   meta = {
     description = "CLI for rendering and animating 3D objects";
     homepage = "https://github.com/renpenguin/display3d";

done! should be ready for merge now

Copy link
Member

@Tert0 Tert0 left a comment

Choose a reason for hiding this comment

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

LGTM

@Tert0 Tert0 added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Feb 4, 2025
@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Feb 4, 2025
Copy link
Member

@getchoo getchoo left a comment

Choose a reason for hiding this comment

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

Tested on x86_64-linux, and it seems all works well!

Thanks and welcome to Nixpkgs :)

@getchoo getchoo added 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people and removed 12.approvals: 2 This PR was reviewed and approved by two reputable people labels Feb 12, 2025
@getchoo getchoo merged commit 00aa5cf into NixOS:master Feb 12, 2025
10 checks passed
@renpenguin renpenguin deleted the add/display3d branch February 16, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants