File tree 2 files changed +49
-2
lines changed
2 files changed +49
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
## Setup
15
15
16
- ### Build & Install
16
+ ### Manual install
17
17
18
18
Make sure you have ` go ` and ` make ` installed, then run
19
19
@@ -28,6 +28,17 @@ Optionally install ZSH completions with:
28
28
make completions.zsh
29
29
```
30
30
31
+ ### With Nix
32
+
33
+ Clone this repository and run
34
+
35
+ ``` bash
36
+ nix-build
37
+ nix profile install ./result
38
+ ```
39
+
40
+ ### Configuration
41
+
31
42
` zube ` expects a configuration file with your ** client_id** .
32
43
` zube ` looks for this configuration file, in order, in:
33
44
@@ -106,7 +117,7 @@ Read [CONTRIBUTING](CONTRIBUTING.md)
106
117
- [ ] Filter support by name instead of just by IDs
107
118
- [ ] Optionally dump response data as JSON
108
119
- [ ] `zubed` daemon for periodic update polling
109
- - [ ] Move `zube` functionality into dedicated `zube-go` library
120
+ - [x ] Move `zube` functionality into dedicated `zube-go` library
110
121
- Internal
111
122
- [x] request caching
112
123
- [ ] smart automatic auth using browser cookie store access
Original file line number Diff line number Diff line change
1
+ with import <nixpkgs> { } ;
2
+
3
+ buildGoModule rec {
4
+ pname = "zube-cli" ;
5
+ version = "0.3.3" ;
6
+ binary = "zube" ;
7
+
8
+ src = fetchFromGitHub {
9
+ owner = "platogo" ;
10
+ repo = "zube-cli" ;
11
+ rev = "${ version } " ;
12
+ hash = "sha256-tF4cxqZ/9I+USrUxmGeRc7VxnPVr4vrObmXthYGNDoA=" ;
13
+ } ;
14
+
15
+ vendorHash = "sha256-CZHEYjy1oL4ns0MEDE3JxDfeUoTaX+JZktB0EpqVIPk=" ;
16
+
17
+ ldflags =
18
+ [ "-s" "-w" "-X main.Version=${ version } " "-X main.Commit=${ version } " ] ;
19
+
20
+ meta = with lib ; {
21
+ description = "Simple command-line snippet manager, written in Go" ;
22
+ homepage = "https://github.com/platogo/zube-cli" ;
23
+ license = licenses . gpl3 ;
24
+ maintainers = with maintainers ; [ danirukun ] ;
25
+ } ;
26
+
27
+ installPhase = ''
28
+ runHook preInstall
29
+ install -D $GOPATH/bin/${ pname } $out/bin/zube # Rename binary here
30
+ runHook postInstall
31
+ '' ;
32
+
33
+ checkPhase = ''
34
+ make test
35
+ '' ;
36
+ }
You can’t perform that action at this time.
0 commit comments