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
nxpmicro-mfgtools: init at 1.3.191 #91634
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be cleaner that way.
EDIT: derp, I didn't add the requested suggested changes.
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
You didn't check "Tested using sandboxing". Are you sure you are not using sandboxing? It's enabled by default in NixOS. You can check by running: |
homepage = https://github.com/NXPmicro/mfgtools; | ||
license = licenses.bsd3; | ||
maintainers = [ maintainers.bmilanov ]; | ||
platforms = [ "x86_64-linux" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure it's Linux only? The project's readme says:
The real cross platform. Linux, Windows, MacOS(not test yet)
Maybe try platforms.all
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It says it's cross-platform, but I wanted to add only the platform that I am working on.
Should I add all stated working, or should I add only confirmed platforms?
A bit more info, at:
https://github.com/NXPmicro/mfgtools/releases
NXP publishes compiled binaries, and I can confirm that the one for Windows works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what the NixOS policy exactly is on this but maybe it's fine if we put "all" and the ofborg bot doesn't complain while building for all the platforms it supports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
13f3760 fingers crossed
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
version = "uuu_1.3.191"; | ||
|
||
meta = with stdenv.lib; { | ||
description = "uuu (Universal Update Utility), mfgtools 3.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For brevity, don’t repeat the name of package — just describe what it does
Check https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes
I think a description of what the program does would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's better to get the contents of the long description in this field. Then think about what to add in the long description itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this: 5f5d2ee ?
Most of the long description taken from:
https://github.com/NXPmicro/mfgtools/wiki
Apologies for the multiple commits, I just now saw that I can batch suggestions into one. |
Seems like I have:
|
Ops I pasted the wrong command sorry. Ignore the checks about the |
@GrahamcOfBorg build nxpmicro-mfgtools |
Reviewed points
Possible improvementsCommentsIt's my first "real" review but it looks fine. Thanks for the contribution. Result of 1 package built:- nxpmicro-mfgtools |
I don't know if it matters for new packages but here's the closure size: ❯ nix path-info -S -h /nix/store/fkfi4ainw1iq49zp2jgpmmd0dyqrhixd-nxpmicro-mfgtools-1.3.191 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to nixpkgs
. I have added some more comments.
Could you squash the commits together? The first commit should add you to maintainers.nix
, the second should add the derivation.
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/science/electronics/nxpmicro-mfgtools/default.nix
Outdated
Show resolved
Hide resolved
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "nxpmicro-mfgtools"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be just be called mfgtools
? Not 100% sure though ;).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for all the feedback!
I am not sure which way's better.
Usually I would add the "nxpmicro-" as I don't know how many mfgtools can pop up in the future (doubt there will be any more), with the assumption that adding "namespaces" later would be harder. I am really tempted to make it only "mfgtools" as it's less text to write.
Your call. I can amend the commit based on what you decide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. There was a small syntax error that caused evaluation to fail, so I fixed that. I also used nixpkgs-fmt
to format the derivation.
I think the prefix may be better here. As you say, mfgtools
is very generic. I don't think there will be another package with the same name, but with the prefix it's easier to recognize and quickly find.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, seems like we are force-pushing at the same time. If you only fixed the syntax error, I can push my changes again.
13f3760
to
b437a30
Compare
b437a30
to
a27327f
Compare
a27327f
to
93dbfd8
Compare
@danieldk Just after I pushed I saw that you've changed the comma style because of the build error. I will back off so you can force push to the proper commit. |
93dbfd8
to
a27327f
Compare
Add nxpmicro-mfgtools to nixpkgs From the project's homepage [1]: Freescale/NXP I.MX Chip image deploy tools. The project's only binary and library at the moment is UUU. NXP might add more in the future, so making the package name: nxpmicro-mfgtools instead of: nxp-uuu or something similar. [1]: https://github.com/NXPmicro/mfgtools
a27327f
to
cb2ab83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great now!
Result of nixpkgs-review pr 91634
1
1 package built:
- nxpmicro-mfgtools
Tested binary to work.
Add nxpmicro-mfgtools to nixpkgs
From the project's homepage 1:
The project's only binary and library at the moment is UUU. NXP
might add more in the future, so making the package name:
instead of:
or something similar.
Add a preConfigure step based on bbigras' suggestion.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)