about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2020-04-05 08:40:32 -0400
committerAaron Andersen <aaron@fosslib.net>2020-04-24 06:52:41 -0400
commit27d8b3ef400b3d0e0c0b26fc40be813da69387c6 (patch)
tree6963ab828fa1ba47b28b6c49df8baa8f2e4e675b /pkgs/applications/audio
parentede6944f4f4b8e6e363a3fcf37b3b8ef4c873783 (diff)
downloadnixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar.gz
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar.bz2
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar.lz
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar.xz
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.tar.zst
nixlib-27d8b3ef400b3d0e0c0b26fc40be813da69387c6.zip
musikcube: init at 0.90.1
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/musikcube/default.nix56
-rw-r--r--pkgs/applications/audio/musikcube/dont-strip.patch14
2 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/audio/musikcube/default.nix b/pkgs/applications/audio/musikcube/default.nix
new file mode 100644
index 000000000000..0c076946b927
--- /dev/null
+++ b/pkgs/applications/audio/musikcube/default.nix
@@ -0,0 +1,56 @@
+{ cmake
+, pkg-config
+, alsaLib
+, boost
+, curl
+, fetchFromGitHub
+, ffmpeg
+, lame
+, libev
+, libmicrohttpd
+, ncurses
+, pulseaudio
+, stdenv
+, taglib
+, systemdSupport ? stdenv.isLinux, systemd
+}:
+
+stdenv.mkDerivation rec {
+  pname = "musikcube";
+  version = "0.90.1";
+
+  src = fetchFromGitHub {
+    owner = "clangen";
+    repo = pname;
+    rev = version;
+    sha256 = "1ff2cgbllrl2pl5zfbf0cd9qbf6hqpwr395sa1k245ar4f1rfwpg";
+  };
+
+  # https://github.com/clangen/musikcube/issues/339
+  patches = [ ./dont-strip.patch ];
+
+  nativeBuildInputs = [
+    cmake
+    pkg-config
+  ];
+  buildInputs = [
+    alsaLib
+    boost
+    curl
+    ffmpeg
+    lame
+    libev
+    libmicrohttpd
+    ncurses
+    pulseaudio
+    taglib
+  ] ++ stdenv.lib.optional systemdSupport systemd;
+
+  meta = with stdenv.lib; {
+    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;
+  };
+}
diff --git a/pkgs/applications/audio/musikcube/dont-strip.patch b/pkgs/applications/audio/musikcube/dont-strip.patch
new file mode 100644
index 000000000000..b7385dcddba9
--- /dev/null
+++ b/pkgs/applications/audio/musikcube/dont-strip.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a3e02666..7c43c7e6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -370,9 +370,3 @@ endif()
+ # they don't yet exist!
+ add_custom_target(postbuild ALL DEPENDS musikcube musikcubed)
+ add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .)
+-
+-# strip binaries in release mode
+-if (CMAKE_BUILD_TYPE MATCHES Release)
+-  message(STATUS "stripping binaries...")
+-  add_custom_command(TARGET postbuild POST_BUILD COMMAND "${CMAKE_SOURCE_DIR}/strip-nix.sh")
+-endif()