Skip to content

feat: add nix flake#1

Draft
pilz0 wants to merge 5 commits intomainfrom
add_nix_flake
Draft

feat: add nix flake#1
pilz0 wants to merge 5 commits intomainfrom
add_nix_flake

Conversation

@pilz0
Copy link
Member

@pilz0 pilz0 commented Feb 26, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Nix flake support to the proserver-cli tool, providing an alternative installation method alongside the existing Homebrew installation. The flake enables users to run the CLI tool directly from GitHub using nix run.

Changes:

  • Added flake.nix with package definitions and overlay
  • Added flake.lock with locked dependency versions
  • Updated README.md with Nix installation instructions
  • Added result to .gitignore (Nix build output)

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 4 comments.

File Description
flake.nix Defines Nix flake with inputs, overlay, packages, and formatter configuration
flake.lock Lock file with pinned versions of nixpkgs and flake-utils dependencies
README.md Adds Nix usage section with example command
.gitignore Ignores Nix build result symlink

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

in
{
packages = {
proserver-cli = pkgs.writeScriptBin "proserver-cli" (builtins.readFile ./proserver);
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package has multiple critical issues:

  1. Missing vpro symlink: The Homebrew formula creates a vpro symlink to the proserver script (as shown in Formula/proserver-cli.rb:12), but this Nix package doesn't provide it. Users who expect the vpro command based on README examples will be unable to use it.

  2. Missing runtime dependencies: The proserver script depends on external commands like dig, curl, grep, ssh, and scp, but these dependencies are not declared. The script will fail at runtime if these tools are not available in the user's PATH.

Consider using a proper derivation with makeWrapper to add both the vpro symlink and ensure all runtime dependencies are available on PATH.

Copilot uses AI. Check for mistakes.
pilz0 and others added 3 commits February 26, 2026 10:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pilz0 pilz0 marked this pull request as draft February 26, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants