Skip to content

Commit 0c866eb

Browse files
committed
add nix to installation methods
1 parent 9f922e8 commit 0c866eb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,30 @@ Download the appropriate binary for your system from the [latest release](https:
8989
9090
Make the binary executable (for Linux/macOS) with `chmod +x local-content-share-*` and then run the binary with `./local-content-share-*`. The application will be available at `http://localhost:8080`.
9191

92+
### Using Nix
93+
94+
The package is available as a flake :
95+
96+
```bash
97+
nix run github:Tanq16/local-content-share
98+
```
99+
100+
You can also add it to your system/home-manager configuration :
101+
102+
```
103+
# flake.nix
104+
inputs.local-content-share = {
105+
url = "github:Tanq16/local-content-share";
106+
inputs.nixpkgs.follows = "nixpkgs";
107+
};
108+
```
109+
```
110+
# configuration.nix
111+
environment.systemPackages = [
112+
inputs.local-content-share.packages.x86_64-linux.local-content-share
113+
];
114+
```
115+
92116
### Local development
93117
94118
With `Go 1.23+` installed, run the following to download the binary to your GOBIN:

0 commit comments

Comments
 (0)