nixpkgs/pkgs/applications/audio/musikcube/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, cmake
2020-04-05 13:40:32 +01:00
, pkg-config
, curl
2023-01-27 11:20:23 +00:00
, asio
2020-04-05 13:40:32 +01:00
, fetchFromGitHub
, fetchpatch
, ffmpeg
2022-04-10 19:07:38 +01:00
, gnutls
2020-04-05 13:40:32 +01:00
, lame
, libev
, game-music-emu
2020-04-05 13:40:32 +01:00
, libmicrohttpd
2022-07-11 14:35:22 +01:00
, libopenmpt
, mpg123
2020-04-05 13:40:32 +01:00
, ncurses
, taglib
2022-04-30 17:03:44 +01:00
# Linux Dependencies
, alsa-lib
, pulseaudio
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
2021-12-29 02:03:05 +00:00
, systemd
2022-04-30 17:03:44 +01:00
# Darwin Dependencies
, Cocoa
, SystemConfiguration
2020-04-05 13:40:32 +01:00
}:
stdenv.mkDerivation rec {
pname = "musikcube";
2023-01-27 11:20:23 +00:00
version = "0.99.4";
2020-04-05 13:40:32 +01:00
src = fetchFromGitHub {
owner = "clangen";
repo = pname;
rev = version;
2023-01-27 11:20:23 +00:00
sha256 = "sha256-GAO3CKtlZF8Ol4K+40lD8n2RtewiHj3f59d5RIatNws=";
2020-04-05 13:40:32 +01:00
};
2022-11-03 09:05:34 +00:00
outputs = [ "out" "dev" ];
2020-04-05 13:40:32 +01:00
nativeBuildInputs = [
cmake
pkg-config
];
2022-04-30 17:03:44 +01:00
2020-04-05 13:40:32 +01:00
buildInputs = [
2023-01-27 11:20:23 +00:00
asio
2020-04-05 13:40:32 +01:00
curl
ffmpeg
2022-04-10 19:07:38 +01:00
gnutls
2020-04-05 13:40:32 +01:00
lame
libev
game-music-emu
2020-04-05 13:40:32 +01:00
libmicrohttpd
2022-07-11 14:35:22 +01:00
libopenmpt
mpg123
2020-04-05 13:40:32 +01:00
ncurses
taglib
2022-05-14 08:25:44 +01:00
] ++ lib.optionals systemdSupport [
2022-04-30 17:03:44 +01:00
systemd
2022-05-14 08:25:44 +01:00
] ++ lib.optionals stdenv.isLinux [
2022-04-30 17:03:44 +01:00
alsa-lib pulseaudio
2022-05-14 08:25:44 +01:00
] ++ lib.optionals stdenv.isDarwin [
2022-04-30 17:03:44 +01:00
Cocoa SystemConfiguration
];
2020-04-05 13:40:32 +01:00
2020-05-27 02:16:18 +01:00
cmakeFlags = [
"-DDISABLE_STRIP=true"
];
2022-07-26 11:02:32 +01:00
postFixup = lib.optionals stdenv.isDarwin ''
install_name_tool -add_rpath $out/share/${pname} $out/share/${pname}/${pname}
install_name_tool -add_rpath $out/share/${pname} $out/share/${pname}/${pname}d
'';
2022-07-25 22:11:12 +01:00
meta = with lib; {
2020-04-05 13:40:32 +01:00
description = "A fully functional terminal-based music player, library, and streaming audio server";
homepage = "https://musikcube.com/";
maintainers = with maintainers; [ aanderse srapenne ];
2020-04-05 13:40:32 +01:00
license = licenses.bsd3;
platforms = platforms.all;
};
}