2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libmpdclient
|
2023-02-02 18:25:31 +00:00
|
|
|
, yaml-cpp
|
2024-01-25 14:12:00 +00:00
|
|
|
, darwin
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ashuffle";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.14.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joshkunz";
|
|
|
|
repo = "ashuffle";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-id55Ss/7PLBPn55RikAlqr3VkNzgm8NiL/ruFGAmH30=";
|
2020-09-25 04:45:31 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeBuildInputs = [ cmake pkg-config meson ninja ];
|
2024-01-25 14:12:00 +00:00
|
|
|
buildInputs = [ libmpdclient yaml-cpp ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/joshkunz/ashuffle";
|
|
|
|
description = "Automatic library-wide shuffle for mpd";
|
|
|
|
maintainers = [ maintainers.tcbravo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ashuffle";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|