Skip to content

Commit d9d65d2

Browse files
committed
📝 Update install.md
1 parent d6ef48b commit d9d65d2

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

docs/resources/install.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,44 @@ uninstall:
1414
sudo pacman -R python-repl-python-wakatime
1515
```
1616

17-
## [Nix](https://nixos.org)
18-
19-
For NixOS, add the following code to `/etc/nixos/configuration.nix`:
17+
## [NUR](https://nur.nix-community.org/repos/freed-wu)
2018

2119
```nix
2220
{ config, pkgs, ... }:
2321
{
24-
nix.settings.experimental-features = [ "flakes" ];
25-
environment.systemPackages =
26-
let
27-
repl-python-wakatime = (
28-
builtins.getFlake "github:wakatime/repl-python-wakatime"
29-
).packages.${builtins.currentSystem}.default;
30-
in
31-
[
32-
repl-python-wakatime
33-
];
22+
nixpkgs.config.packageOverrides = pkgs: {
23+
nur = import
24+
(
25+
builtins.fetchTarball
26+
"https://github.com/nix-community/NUR/archive/master.tar.gz"
27+
)
28+
{
29+
inherit pkgs;
30+
};
31+
};
32+
environment.systemPackages = with pkgs;
33+
(
34+
python3.withPackages (
35+
p: with p; [
36+
nur.repos.Freed-Wu.repl-python-wakatime
37+
]
38+
)
39+
)
3440
}
3541
```
3642

37-
For nix,
43+
## [Nix](https://nixos.org)
3844

3945
```sh
4046
nix shell github:wakatime/repl-python-wakatime
4147
```
4248

49+
Run without installation:
50+
51+
```sh
52+
nix run github:wakatime/repl-python-wakatime -- --help
53+
```
54+
4355
## [PYPI](https://pypi.org/project/repl-python-wakatime)
4456

4557
Install:

0 commit comments

Comments
 (0)