small improvements; aur package
This commit is contained in:
parent
79a6049a91
commit
03677e24be
15 changed files with 386 additions and 287 deletions
28
README.md
28
README.md
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue