Skip to content

Commit 4c32ad5

Browse files
committed
fix: build directives on README
Signed-off-by: Yagiz Degirmenci <yagizcanilbey1903@gmail.com>
1 parent 434dc21 commit 4c32ad5

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ brew install ycd/tap/dstp
4444
go install github.com/ycd/dstp/cmd/dstp
4545
```
4646

47+
#### NixOS
48+
49+
1. Add `dstp`to `/etc/nixos/configuration.nix`:
50+
51+
```nix
52+
environment.systemPackages = with pkgs; [
53+
dstp
54+
];
55+
```
56+
57+
2. Run:
58+
59+
```zsh
60+
sudo nixos-rebuild switch
61+
```
62+
4763

4864
### Downloads
4965

@@ -62,7 +78,7 @@ for 64-bit Windows, macOS, and Linux targets. They contain the compiled executab
6278

6379
### Installation from source
6480

65-
0. Verify that you have Go 1.16+ installed
81+
0. Verify that you have Go 1.17+ installed (The source code uses _( `//go:build` )_ conditional compilation directives that is introduced in Go 1.17.)
6682

6783
```
6884
$ go version
@@ -82,7 +98,7 @@ for 64-bit Windows, macOS, and Linux targets. They contain the compiled executab
8298
#### Unix/Linux
8399
```
84100
# May require you to use sudo
85-
$ go build .
101+
$ go build cmd/dstp/main.go
86102
$ cp dstp /usr/local/bin/dstp
87103
```
88104

0 commit comments

Comments
 (0)