Skip to content

Commit eebf770

Browse files
committed
docs: add Nix installation method
1 parent ebdf0ee commit eebf770

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ cargo install gitlogue
3636
pacman -S gitlogue
3737
```
3838

39+
### Using Nix
40+
41+
```bash
42+
nix run github:unhappychoice/gitlogue
43+
```
44+
3945
### From Source
4046

4147
```bash

docs/installation.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,25 @@ cargo install gitlogue
6060

6161
This will download, compile, and install the latest version.
6262

63-
### Method 5: Download Pre-built Binaries
63+
### Method 5: Using Nix
64+
65+
Run directly without installation:
66+
67+
```bash
68+
nix run github:unhappychoice/gitlogue
69+
```
70+
71+
Or add to your flake inputs:
72+
73+
```nix
74+
{
75+
inputs.gitlogue.url = "github:unhappychoice/gitlogue";
76+
}
77+
```
78+
79+
Then use `inputs.gitlogue.packages.${system}.default` in your configuration.
80+
81+
### Method 6: Download Pre-built Binaries
6482

6583
Pre-built binaries for multiple platforms are available in the [Releases](https://github.com/unhappychoice/gitlogue/releases) section.
6684

@@ -84,7 +102,7 @@ Pre-built binaries for multiple platforms are available in the [Releases](https:
84102
sudo mv gitlogue /usr/local/bin/
85103
```
86104

87-
### Method 6: From Source
105+
### Method 7: From Source
88106

89107
If you want to build the latest development version or contribute to the project:
90108

0 commit comments

Comments
 (0)