blinry / habitctl

Minimalist command line tool you can use to track and examine your habits.
363 stars 24 forks source link

flake-ify #28

Open mhuesch opened 2 years ago

mhuesch commented 2 years ago

hi 👋

I am currently switching my nixos system to flakes and did a conversion of my "habitctl wrapper derivation" to flakes style. I wanted to share the code in the event it's interesting. no obligation - if you don't use flakes or nix then it is perhaps not worth the overhead.

however, the nix develop dev-shell would allow people to set up a rust environment with one command (assuming they have nix installed), and also allows nix-folks to easily install habitctl to their system by referencing the flake.

I based this on #27 because it looks nice and I want to use my branch as a base to install this. this branch can of course be rebased / whatever as desired, tho.