eklairs / tlock

Two-Factor Authentication Tokens Manager in Terminal
MIT License
132 stars 5 forks source link

Add nix flake w/ derivation and example #4

Closed Maroka-chan closed 1 month ago

Maroka-chan commented 1 month ago

:wave: I was curious to try out the project, but noticed that there is no derivation to build it with Nix.

The PR adds a flake and derivation, and I also included a minimal example in the README. This way the Github repo can be referenced directly, but you should also be able to reuse the package output if you want to add it to nixpkgs -> #2

eklairs commented 1 month ago

Thanks for the PR! I will test it once I get free and merge it

Maroka-chan commented 1 month ago

You can also run it directly from the shell without the need of a system configuration like this: nix run "git+https://github.com/eklairs/tlock?submodules=1"

It might be nice to include this in the README as a way to try it out before installing. Let me know if you'd like me to add that~

I can also add a development shell to the flake either in this or in another PR if you are interested :sparkles:

eklairs commented 1 month ago

It might be nice to include this in the README as a way to try it out before installing. Let me know if you'd like me to add that~

Yea that sounds like a good idea!

I can also add a development shell to the flake either in this or in another PR if you are interested ✨

Well I would love to have that :)

eklairs commented 1 month ago

Ping me when you have completed the impl and I will merge this PR :)

Maroka-chan commented 1 month ago

@eklairs It should be good to go 👍