File tree 5 files changed +61
-5
lines changed
5 files changed +61
-5
lines changed Original file line number Diff line number Diff line change
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/rust
3
+ {
4
+ "name" : " Rust" ,
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image" : " mcr.microsoft.com/devcontainers/rust:1-1-bullseye" ,
7
+ "features" : {
8
+ "ghcr.io/devcontainers/features/github-cli:1" : {},
9
+ "ghcr.io/devcontainers/features/nix:1" : {}
10
+ },
11
+
12
+ // Use 'mounts' to make the cargo cache persistent in a Docker Volume.
13
+ // "mounts": [
14
+ // {
15
+ // "source": "devcontainer-cargo-cache-${devcontainerId}",
16
+ // "target": "/usr/local/cargo",
17
+ // "type": "volume"
18
+ // }
19
+ // ]
20
+
21
+ // Features to add to the dev container. More info: https://containers.dev/features.
22
+ // "features": {},
23
+
24
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
25
+ // "forwardPorts": [],
26
+
27
+ // Use 'postCreateCommand' to run commands after the container is created.
28
+ "postCreateCommand" : " nix develop --experimental-features \" nix-command flakes\" "
29
+
30
+ // Configure tool-specific properties.
31
+ // "customizations": {},
32
+
33
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34
+ // "remoteUser": "root"
35
+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ Like [mpd](https://github.com/MusicPlayerDaemon/MPD) or [Mopidy](https://github.
56
56
57
57
## Installation
58
58
59
+ Compiling from source, without Nix:
60
+
59
61
``` bash
60
62
# Install dependencies
61
63
brew install protobuf # macOS
@@ -65,20 +67,37 @@ choco install protoc # Windows using Chocolatey Package Manager
65
67
git clone https://github.com/tsirysndr/music-player.git
66
68
cd music-player/webui/musicplayer
67
69
nvm install # install node version specified in .nvmrc (optional on windows)
68
- npm install -g yarn
69
- yarn install && yarn build # build webui
70
+ bun install && bun run build # build webui
70
71
cd ../..
71
72
cargo install --path .
72
73
```
73
74
74
- Note: Don't forget to add ` ~/.cargo/bin ` to your ` PATH ` environment variable.
75
+ With Nix:
76
+
77
+ ``` bash
78
+ git clone https://github.com/tsirysndr/music-player.git
79
+ cd music-player
80
+ nix develop --experimental-features " nix-command flakes"
81
+ cd webui/musicplayer
82
+ bun install && bun run build # build webui
83
+ cd ../..
84
+ cargo install --path .
85
+ ```
75
86
76
87
### macOS/Linux
77
88
89
+ Using [ Homebrew] ( https://brew.sh/ ) :
90
+
78
91
``` bash
79
92
brew install tsirysndr/tap/musicplayer
80
93
```
81
94
95
+ Using [ Nix] ( https://nixos.org/ ) :
96
+
97
+ ``` bash
98
+ nix profile install --experimental-features " nix-command flakes" github:tsirysndr/music-player
99
+ ```
100
+
82
101
Or download the latest release for your platform [ here] ( https://github.com/tsirysndr/music-player/releases ) .
83
102
84
103
## 📦 Downloads
Original file line number Diff line number Diff line change 54
54
pkgs . gnumake
55
55
pkgs . protobuf
56
56
pkgs . zstd
57
+ pkgs . bun
58
+ pkgs . nodejs_18
57
59
] ++ lib . optionals pkgs . stdenv . isDarwin [
58
60
# Additional darwin specific inputs can be set here
59
61
pkgs . libiconv
Original file line number Diff line number Diff line change 1
- v16.13 .0
1
+ v18.16 .0
Original file line number Diff line number Diff line change 1
- v16.13 .0
1
+ v18.16 .0
You can’t perform that action at this time.
0 commit comments