2021-02-12 11:30:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libmpdclient
|
2023-01-29 14:44:19 +00:00
|
|
|
, yaml-cpp
|
2021-02-12 11:30:45 +00:00
|
|
|
}:
|
2020-05-29 20:41:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ashuffle";
|
2023-02-21 03:37:57 +00:00
|
|
|
version = "3.13.6";
|
2020-05-29 20:41:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joshkunz";
|
|
|
|
repo = "ashuffle";
|
|
|
|
rev = "v${version}";
|
2023-02-21 03:37:57 +00:00
|
|
|
sha256 = "sha256-8XjLs4MI5MXvA6veCoTAj8tlYDe7YTggutO3F9eNyMM=";
|
2020-05-29 20:41:27 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeBuildInputs = [ cmake pkg-config meson ninja ];
|
2023-01-29 14:44:19 +00:00
|
|
|
buildInputs = [ libmpdclient yaml-cpp ];
|
2022-11-07 05:20:12 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ];
|
2020-05-29 20:41:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-29 20:41:27 +00:00
|
|
|
homepage = "https://github.com/joshkunz/ashuffle";
|
|
|
|
description = "Automatic library-wide shuffle for mpd";
|
|
|
|
maintainers = [ maintainers.tcbravo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|