-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
mphidflash: init at version 1.8 #426213
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
base: master
Are you sure you want to change the base?
mphidflash: init at version 1.8 #426213
Conversation
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp binaries/mphidflash-1.8-linux-64 $out/bin/mphidflash |
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.
could probably just use installBin
in postInstall instead
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.
That would require bringing in installShellFiles
as a dependency, it also doesn't make the derivation any clearer as the the project's makefile doesn't work for Nix (it tries copying files to /usr/bin/...). So it'd need to be overwritten anyways and the installed command should be renamed mphidflash
.
I did make it run runHook {pre,post}Install
though
Adds myself as maintainer for mphidflash package
I addressed your feedback, if you could take look at it again I'd be grateful! |
2d05b49
to
c668570
Compare
''; | ||
|
||
meta = { | ||
description = "'mphidflash' is a simple command-line tool for communicating with Microchips USB HID-Bootloader and downloading new firmware."; |
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.
description = "'mphidflash' is a simple command-line tool for communicating with Microchips USB HID-Bootloader and downloading new firmware."; | |
description = "Command-line tool for communicating with Microchips USB HID-Bootloader and downloading new firmware"; |
Not start with the package name.
Not end with a period (or any punctuation for that matter).
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 feedback! I implemented the change.
owner = "AdamLaurie"; | ||
repo = "mphidflash"; | ||
rev = "d65bedd3f564a5d91b29e06b4a5885c32780acc5"; | ||
sha256 = "sha256-akQjkkbGxkurBifTZuI+iVs8O2i8MM0LgMUYztg5hzE="; |
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.
sha256 = "sha256-akQjkkbGxkurBifTZuI+iVs8O2i8MM0LgMUYztg5hzE="; | |
hash = "sha256-akQjkkbGxkurBifTZuI+iVs8O2i8MM0LgMUYztg5hzE="; |
use hash for sri hash
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.
Done!
c668570
to
c897aa1
Compare
Creates a package for mphidflash. Despite mphidflash being an older tool not really being updated anymore, it remains very useful for flashing older PIC devices.
c897aa1
to
f8a133b
Compare
Creates a package for mphidflash. Despite mphidflash being an older tool not really being updated anymore, it remains very useful for flashing older PIC devices.
More information can be found here:
https://github.com/AdamLaurie/mphidflash
I also add myself as a maintainer to the maintainers list and set myself as package maintainer.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)