collab/mpdhaj

reimplementation of the music player daemon

git clone https://git.julia.blue/collab/mpdhaj

Julia Ryanget it working on macosb4216c6

sqlite
861 B32 linesraw
1{
2  inputs = {
3    utils.url = "github:numtide/flake-utils";
4    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5    rust-overlay.url = "github:oxalica/rust-overlay";
6  };
7  outputs =
8    inputs: inputs.utils.lib.eachDefaultSystem (
9      system: let
10        pkgs = inputs.nixpkgs.legacyPackages.${system}.extend inputs.rust-overlay.overlays.default;
11        rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
12      in {
13        devShell = pkgs.mkShell {
14          nativeBuildInputs = with pkgs; [
15            rust
16          ] ++ lib.optionals pkgs.stdenv.isLinux [
17            pkg-config
18          ];
19
20          buildInputs = with pkgs; [] ++ lib.optionals pkgs.stdenv.isLinux [
21            alsa-lib
22          ];
23
24          packages = with pkgs; [
25            rmpc
26            mpc
27            mpd
28          ];
29        };
30      }
31    );
32}