small improvements; aur package

This commit is contained in:
XenGi 2024-04-06 18:57:43 +02:00
parent 79a6049a91
commit 03677e24be
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
15 changed files with 386 additions and 287 deletions

View file

@ -24,10 +24,11 @@ Example flake setup (untested):
```nix
{
description = "Example Flake to install sanic on your host";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
sanic = {
url = "git+https://git.berlin.ccc.de/cccb/sanic?ref=main";
url = "git.berlin.ccc.de/cccb/sanic";
inputs.nixpkgs.follows = "nixpkgs";
};
};
@ -37,16 +38,17 @@ Example flake setup (untested):
pkgs = import nixpkgs { inherit system; };
in
{
devShell.${system} = pkgs.mkShell {
packages = [
sanic.packages.${system}.default
nixosConfigurations."myhostname".nixpkgs.lib.nixosSystem = {
inherit system;
modules = [
{ environment.systemPackages = [ sanic.packages.${system}.default ]; }
];
};
};
}
```
### Arch Linux (Manjaro, etc)
### Arch Linux
Install from the AUR:
@ -54,18 +56,6 @@ Install from the AUR:
yay -S sanic
```
### Debian (Ubuntu, Mint, etc)
_tba_
### Red Hat (Fedora, Rocky Linux, etc)
_tba_
### Windows / macOS
lol! 🤣
## 🛠️ Development
sanic is developed using [Nix][nix], but you can also just use the usual Golang tooling.
@ -77,7 +67,7 @@ Update go depdendencies like this:
```shell
go get -u # or `make update`
go mod tidy # or `make tidy`
gomod2nix
gomod2nix # sync go deps with nix
```
### ❄️ w/ Nix
@ -88,7 +78,7 @@ Enter development shell (also has [mpc][mpc] client installed for testing):
nix develop
```
Build nix flake:
Build sanic:
```shell
nix build