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

creddump: init at 0.3 #78483

Merged
merged 1 commit into from
Aug 23, 2020
Merged

creddump: init at 0.3 #78483

merged 1 commit into from
Aug 23, 2020

Conversation

fishi0x01
Copy link
Member

@fishi0x01 fishi0x01 commented Jan 25, 2020

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 on Ubuntu18.04. Installed via:

nix-env -f $NIXPKGS -iA creddump
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@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 10.rebuild-linux: 1-10 labels Jan 25, 2020
@fishi0x01 fishi0x01 changed the title init: creddump at 0.3 creddump: init at 0.3 Jan 27, 2020
@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch 3 times, most recently from d2519d8 to 6e02840 Compare February 2, 2020 13:50
@doronbehar
Copy link
Contributor

Please use the PR format as is.

@fishi0x01 fishi0x01 requested a review from doronbehar March 7, 2020 11:00
@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch from 85dccf9 to d33f7d4 Compare March 7, 2020 11:16
@doronbehar
Copy link
Contributor

Things done

I am wrapping the scripts with python27Packages.buildPythonApplication. Build and run successful locally on Ubuntu18.04. Installed via:

nix-env -f $NIXPKGS -iA creddump

@fishi0x01 Please update your first comment to the PR template: https://github.com/NixOS/nixpkgs/blob/master/.github/PULL_REQUEST_TEMPLATE.md

@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch 5 times, most recently from 95b54e6 to 5bf745c Compare March 8, 2020 00:21
buildInput = [ python2 ];

installPhase = ''
mkdir -p $out/bin
Copy link
Contributor

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.

Suggested change
mkdir -p $out/bin
mkdir -p ${placeholder "out"}/bin

Copy link
Member Author

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?

Copy link
Contributor

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..

Copy link
Member Author

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 👍

@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch from 5bf745c to 6e0214a Compare March 8, 2020 22:09
@fishi0x01 fishi0x01 requested a review from doronbehar March 8, 2020 22:13
@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch from 6e0214a to dd330e4 Compare March 8, 2020 22:22
@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch from dd330e4 to 2c3ffb5 Compare March 8, 2020 22:34
Copy link
Contributor

@doronbehar doronbehar left a 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.

@fishi0x01
Copy link
Member Author

@doronbehar Thank you for the detailed review! I learned a lot from this 🙇‍♂️

@fishi0x01 fishi0x01 force-pushed the fishi0x01/creddump branch from 7f8b571 to d33c39c Compare June 19, 2020 14:53
@infinisil infinisil merged commit ba1088c into NixOS:master Aug 23, 2020
@fishi0x01 fishi0x01 deleted the fishi0x01/creddump branch September 26, 2020 14:15
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.

None yet

3 participants