Skip to content

Add Nix flake#87

Open
opdavies wants to merge 1 commit into
splitsh:masterfrom
opdavies:add-nix-flake
Open

Add Nix flake#87
opdavies wants to merge 1 commit into
splitsh:masterfrom
opdavies:add-nix-flake

Conversation

@opdavies
Copy link
Copy Markdown

@opdavies opdavies commented May 6, 2026

Add a Nix flake that creates a package using libgit2 and pkg-config.

Pinning nixpkgs to 22.11 ensures the correct version of libgit2 is used as per the README with no changed needed to the source code.

With this in place, the package can be build using nix build which creates an executable at result/bin/lite.

A dev shell can also be started with nix develop based on the package inputs.

@opdavies opdavies force-pushed the add-nix-flake branch 2 times, most recently from 528cee8 to 9e26dcb Compare May 6, 2026 19:18
Add a Nix flake that creates a package using `libgit2` and `pkg-config`.

Pinning nixpkgs to 22.11 ensures the correct version of `libgit2` is
used as per the README with no changed needed to the source code.

With this in place, the package can be build using `nix build` which
creates an executable at `result/bin/splitsh-lite`.

A dev shell can also be started with `nix develop` based on the package
inputs.
@opdavies
Copy link
Copy Markdown
Author

opdavies commented May 6, 2026

Tested with nix run github:opdavies/splitsh-lite/add-nix-flake and nix shell github:opdavies/splitsh-lite/add-nix-flake.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant