-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
creddump: init at 0.3 #78483
creddump: init at 0.3 #78483
Conversation
bec4728
to
d60d56b
Compare
d2519d8
to
6e02840
Compare
6e02840
to
a3b973b
Compare
a3b973b
to
458c428
Compare
Please use the PR format as is. |
85dccf9
to
d33f7d4
Compare
@fishi0x01 Please update your first comment to the PR template: https://github.com/NixOS/nixpkgs/blob/master/.github/PULL_REQUEST_TEMPLATE.md |
95b54e6
to
5bf745c
Compare
buildInput = [ python2 ]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin |
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.
Change this here and in the other commands.
mkdir -p $out/bin | |
mkdir -p ${placeholder "out"}/bin |
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.
Ok adjusted 👍
Out of curiosity: why is this 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.
TBH I'm not sure how to explain this I just had that comment in the past. I think the idea is that you get the actual content of what's in $out
inside these shell hooks so it's 1 less thing the shell evaluates and 1 more thing Nix does..
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 just found a thread which claims to avoid placeholder
if possible, as it is designed to be used for edge cases in which you need to reference $out
outside of classic places like buildPhase
or installPhase
. However, I cannot really find a good reason for that claim inside the referenced documentation :(
Anyways I also do not really see a downside using placeholder
, so I do not mind applying it here 👍
5bf745c
to
6e0214a
Compare
6e0214a
to
dd330e4
Compare
dd330e4
to
2c3ffb5
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.
Awesome :) Now your PR is perfect (in my eyes). Thank you for your contribution.
@doronbehar Thank you for the detailed review! I learned a lot from this 🙇♂️ |
2c3ffb5
to
7f8b571
Compare
7f8b571
to
d33c39c
Compare
Motivation for this change
creddump
is a collection of python scripts for retrieving hashes from windows hive files.Things done
I am wrapping the scripts with
python27Packages.buildPythonApplication
. Build and run successful locally onUbuntu18.04
. Installed via: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)