lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 meson,
8 ninja,
9 libmpdclient,
10 yaml-cpp,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "ashuffle";
15 version = "3.14.9";
16
17 src = fetchFromGitHub {
18 owner = "joshkunz";
19 repo = "ashuffle";
20 tag = "v${version}";
21 hash = "sha256-HQ4+vyTvX0mhfuRclbiC+MvllV3300ztAwL0IxrUiC8=";
22 fetchSubmodules = true;
23 };
24
25 dontUseCmakeConfigure = true;
26 nativeBuildInputs = [
27 cmake
28 pkg-config
29 meson
30 ninja
31 ];
32 buildInputs = [
33 libmpdclient
34 yaml-cpp
35 ];
36
37 mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ];
38
39 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
40 NIX_LDFLAGS = "-framework CoreFoundation";
41 };
42
43 meta = with lib; {
44 homepage = "https://github.com/joshkunz/ashuffle";
45 description = "Automatic library-wide shuffle for mpd";
46 maintainers = [ maintainers.tcbravo ];
47 platforms = platforms.unix;
48 license = licenses.mit;
49 mainProgram = "ashuffle";
50 };
51}