2020-04-24 23:36:52 +00:00
|
|
|
{ cmake
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, curl
|
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchpatch
|
2021-05-03 20:48:10 +00:00
|
|
|
, ffmpeg
|
2022-04-27 09:35:20 +00:00
|
|
|
, gnutls
|
2020-04-24 23:36:52 +00:00
|
|
|
, lame
|
|
|
|
, libev
|
|
|
|
, libmicrohttpd
|
|
|
|
, ncurses
|
2021-12-30 13:39:12 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, taglib
|
2022-05-18 14:49:53 +00:00
|
|
|
# Linux Dependencies
|
|
|
|
, alsa-lib
|
|
|
|
, pulseaudio
|
2021-12-30 13:39:12 +00:00
|
|
|
, systemdSupport ? stdenv.isLinux
|
|
|
|
, systemd
|
2022-05-18 14:49:53 +00:00
|
|
|
# Darwin Dependencies
|
|
|
|
, Cocoa
|
|
|
|
, SystemConfiguration
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "musikcube";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.97.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clangen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-W9Ng1kqai5qhaDs5KWg/1sOTIAalBXLng1MG8sl/ZOg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Fix pending upstream inclusion for ncurses-6.3 support:
|
2021-12-06 16:07:01 +00:00
|
|
|
# https://github.com/clangen/musikcube/pull/474
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/clangen/musikcube/commit/1240720e27232fdb199a4da93ca6705864442026.patch";
|
|
|
|
sha256 = "0bhjgwnj6d24wb1m9xz1vi1k9xk27arba1absjbcimggn54pinid";
|
|
|
|
})
|
2022-05-18 14:49:53 +00:00
|
|
|
./0001-apple-cmake.patch
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
curl
|
2021-05-03 20:48:10 +00:00
|
|
|
ffmpeg
|
2022-04-27 09:35:20 +00:00
|
|
|
gnutls
|
2020-04-24 23:36:52 +00:00
|
|
|
lame
|
|
|
|
libev
|
|
|
|
libmicrohttpd
|
|
|
|
ncurses
|
|
|
|
taglib
|
2022-05-18 14:49:53 +00:00
|
|
|
] ++ lib.optional systemdSupport [
|
|
|
|
systemd
|
|
|
|
] ++ lib.optional stdenv.isLinux [
|
|
|
|
alsa-lib pulseaudio
|
|
|
|
] ++ lib.optional stdenv.isDarwin [
|
|
|
|
Cocoa SystemConfiguration
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DDISABLE_STRIP=true"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A fully functional terminal-based music player, library, and streaming audio server";
|
|
|
|
homepage = "https://musikcube.com/";
|
|
|
|
maintainers = [ maintainers.aanderse ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|