44 lines
645 B
Markdown
44 lines
645 B
Markdown
# Build
|
|
to build:
|
|
```
|
|
go build main.go
|
|
```
|
|
to run:
|
|
```
|
|
./main
|
|
```
|
|
|
|
# NixOS
|
|
credits to melvi for this
|
|
|
|
to build with nix:
|
|
```bash
|
|
nix build
|
|
```
|
|
to run with nix:
|
|
```
|
|
nix run
|
|
```
|
|
|
|
to install with nixos:
|
|
|
|
1. Add to inputs:
|
|
```
|
|
goGoFetch.url = "git+https://codeberg.org/nekohepott/goGoFetch";
|
|
```
|
|
2. Add to packages (system-wide or home-manager):
|
|
```
|
|
environment.systemPackages = [
|
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
|
];
|
|
```
|
|
or
|
|
```
|
|
home.packages = [
|
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
|
];
|
|
```
|
|
3. Run rebuild and then you can run fetch with *gogofetch* command
|
|
|
|
# Screenshots
|
|
 |