revdiff icon indicating copy to clipboard operation
revdiff copied to clipboard

add flake.nix

Open adrian-gierakowski opened this issue 5 months ago • 2 comments

maybe even publish to nixpkgs

adrian-gierakowski avatar Jun 16 '26 14:06 adrian-gierakowski

for example with https://github.com/ahkohd/oyo/blob/main/flake.nix I can simply do: nix shell github:ahkohd/oyo and I'm dropped into sub-shell with oyo on path can also just nix run github:ahkohd/oyo

adrian-gierakowski avatar Jun 16 '26 14:06 adrian-gierakowski

happy to take a minimal flake.nix as a PR. The repo is already shaped for it - CGO_ENABLED=0 and fully vendored, so buildGoModule with vendorHash = null builds straight from the committed vendor/ tree with no hash to chase on dependency bumps. The ldflag matches the Makefile's -X main.revision, wrapped in flake-utils.eachDefaultSystem that gives you nix run github:umputun/revdiff.

pls keep it to just flake.nix + flake.lock, no extra CI - I'd rather not carry a nix builder in the pipeline, and a pure-go vendored flake is stable enough not to need one.

nixpkgs I'll leave to the community side - an entry there can be authored and updated by anyone without touching this repo, so feel free to own that if you want it.

umputun avatar Jun 17 '26 05:06 umputun