sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
3.12k stars 193 forks source link

document NixOS package #1033

Open Keksoj opened 1 year ago

Keksoj commented 1 year ago

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 :pray:

gaelreyrol commented 1 year ago

@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

Keksoj commented 1 year ago

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

gaelreyrol commented 1 year ago

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

Keksoj commented 1 year ago

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 ;-)