Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
result
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ proserver 9999
# or
vpro 9999
```

## Nix
```bash
nix run github:punktDe/proserver-cli
```
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }: { } //
(flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = system;
};
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.
default = self.packages.${system}.proserver-cli;
};
formatter = pkgs.nixpkgs-fmt;

}
));
}