Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Nix Support #573

Merged
merged 5 commits into from
Jun 21, 2022
Merged

Nix Support #573

merged 5 commits into from
Jun 21, 2022

Conversation

FedX-sudo
Copy link
Contributor

Hi, I am not sure if this is a feature you where looking to implament, but I put in the work, and I thought I would put it here as a way of contribution to the project.

Things Done:

  • Add nix flake support.
  • Add nix-shell support.

How to use:

  • Run nix shell github:byt3bl33d3r/CrackMapExec and you will have a shell with CME in it.
  • From within the repo run nix-shell and you will have a shell with CME in it.

Reason for change:

Python applications are poorly supported on NixOS, and I was working with Poetry2Nix to run CME on my machine. At that point, I had put in about half the work needed for this to work, and I decided to proceed forward and open a PR. Thanks for looking either way!

@pinpox
Copy link

pinpox commented May 25, 2022

You might want to use the devShell output of the flake instead of having a separate shell.nix file

@FedX-sudo
Copy link
Contributor Author

FedX-sudo commented May 26, 2022

Ah, super new to flakes, thanks for catching that! However, I did include a standard shell.nix in case anyone did not have flakes implemented on their system they could run nix-shell and not have to worry about figuring out flakes.

@mpgn
Copy link
Contributor

mpgn commented Jun 17, 2022

I have zero knowledge in this, @pinpox can you confirm everything looks good ?

@pinpox
Copy link

pinpox commented Jun 21, 2022

LGTM! Not sure if the shell.nix file is useful here, but it wont harm I guess.

@mpgn mpgn merged commit b1d1888 into byt3bl33d3r:master Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants