File tree Expand file tree Collapse file tree 1 file changed +26
-14
lines changed Expand file tree Collapse file tree 1 file changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -14,32 +14,44 @@ uninstall:
14
14
sudo pacman -R python-repl-python-wakatime
15
15
```
16
16
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 )
20
18
21
19
``` nix
22
20
{ config, pkgs, ... }:
23
21
{
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
+ )
34
40
}
35
41
```
36
42
37
- For nix,
43
+ ## [ Nix ] ( https://nixos.org )
38
44
39
45
``` sh
40
46
nix shell github:wakatime/repl-python-wakatime
41
47
```
42
48
49
+ Run without installation:
50
+
51
+ ``` sh
52
+ nix run github:wakatime/repl-python-wakatime -- --help
53
+ ```
54
+
43
55
## [ PYPI] ( https://pypi.org/project/repl-python-wakatime )
44
56
45
57
Install:
You can’t perform that action at this time.
0 commit comments