sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!

Home Page:https://www.sozu.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

document NixOS package

Keksoj opened this issue · comments

A search on NixOs Search shows Sōzu has been packaged for NixOS here, however only version 13.6 seems to appear, although a commit on the NixOS package repo seems to package the last version:

https://github.com/NixOS/nixpkgs/blob/cd2476d2404d1a21019fa476435ad978a384411f/pkgs/servers/sozu/default.nix#L12

rustPlatform.buildRustPackage rec {
  pname = "sozu";
  version = "0.15.15";
  # ...
}

If Sōzu is indeed packaged and work for NixOS, it would be awesome to make it official on Sōzu's repository and/or codebase, alongside Arch Linux for instance.

Do you know, @gaelreyrol , why search.nixos.org fails to show your last update of the sozu package on the nixpkgs repo ? And how do you think this NixOS package would be best documented in the Sōzu repository?
Thanks a lot for your interest and contribution, by the way 🙏

@Keksoj It is because you searched in the Nixpkgs release channel "23.05", this particular channel is a pin on the master channel of Nixpkgs that happened in 2023/05.

If you click on the "unstable" button below the search input it will show the latest release of Sōzu:

image

Oh, cool !
So where in the Sōzu repo do you think we could best notify users of this ?

Maybe in the "Getting started" section ? Do you need me to provide command line examples to show how to install / run Sōzu?

A few lines in the getting_started.md would be cool indeed. Do you mind writing them? In this style:

## Run on NixOS

Sōzu is packaged for NixOS (links etc)

You can include it in your nix packages like so…

You can include it in your nix os config like so…

either in a PR or here, and I'll do it ;-)