Skip to content

add flake.nix #230

Closed
Closed

Description

@adrian-gierakowski

maybe even publish to nixpkgs

Activity

  1. adrian-gierakowski commented on Jun 16, 2026

    @adrian-gierakowski
    Author

    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

  2. umputun commented on Jun 17, 2026

    @umputun
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions