kimono-koans / httm

Interactive, file-level Time Machine-like tool for ZFS/btrfs/nilfs2 (and even Time Machine and Restic backups!)
https://crates.io/crates/httm
Mozilla Public License 2.0
1.35k stars 29 forks source link

Create flake.nix #86

Closed quidnu closed 1 year ago

quidnu commented 1 year ago

Rudimentary flake.nix created using nix-cargo-integration.

Allows installation in an existing nix installation with flakes enabled using nix profile install github:kimono-koans/httm

Doesn't currently install the helper scripts just the main binary.

I'm on Ubuntu and using the PPA so I'm not using flakes for httm but others might find it helpful. It's also my second nix package/flake.

Feel free to reject.

quidnu commented 1 year ago

I think you can also run it without installing nix run github:kimono-koans/httm which is a pretty nice feature

kimono-koans commented 1 year ago

I have no idea about flakes, but I did see @alxpettit did something similar. See: https://github.com/alxpettit/httm

I'd be pleased to add, but, with anything I don't personally use, I'd like for someone to be responsible for it, who also uses it. I'll keep open, but, if no one claims this, I may reject for that reason.

Only note other I have, because I know so little: I think it should be moved to the packaging directory?

quidnu commented 1 year ago

Probably the right decision (If you think btrfs is crazy wait until you see nix).

I think (but am not sure) that the flake.nix has to be in the base directory, or at least that is the convention/expectation. I haven't personally seen it put anywhere else and am not sure if all the tools will work correctly.

quidnu commented 1 year ago

Actually I think the right thing to do (at least for now) is to point to https://github.com/alxpettit/httm in the readme.

It will be functionally equivalent without the maintenance burden.

Closing.