about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2023-05-22 14:18:35 +0200
committerGitHub <noreply@github.com>2023-05-22 14:18:35 +0200
commitc856c0e9fab9cb7d558ed87c073213d82d1b4917 (patch)
treeb31971a6713b30927f4e18f8ecd4dbf8354d3362 /pkgs/applications/audio
parentebb411ede3f515402cea4250b376407eb207582e (diff)
buzztrax: init at unstable-2022-01-26 (#233364)
* buzztrax: init at unstable-2022-01-26

* buzztrax: reformat

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/buzztrax/default.nix74
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/applications/audio/buzztrax/default.nix b/pkgs/applications/audio/buzztrax/default.nix
new file mode 100644
index 0000000000000..85d8fbed7671f
--- /dev/null
+++ b/pkgs/applications/audio/buzztrax/default.nix
@@ -0,0 +1,74 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, gtk-doc
+, intltool
+, itstool
+, libtool
+, pkg-config
+, wrapGAppsHook
+, yelp-tools
+, clutter-gtk
+, gst_all_1
+, glib
+, gtk2
+, libgsf
+, libxml2
+, fluidsynth
+, orc
+}:
+
+stdenv.mkDerivation {
+  pname = "buzztrax";
+  version = "unstable-2022-01-26";
+
+  src = fetchFromGitHub {
+    owner = "Buzztrax";
+    repo = "buzztrax";
+    rev = "833287c6a06bddc922cd346d6f0fcec7a882aee5";
+    hash = "sha256-iI6m+zBWDDBjmeuU9Nm4aIbEKfaPe36APPktdjznQpU=";
+  };
+
+  postPatch = ''
+    touch AUTHORS
+  '';
+
+  nativeBuildInputs = [
+    autoreconfHook
+    gtk-doc
+    intltool
+    itstool
+    libtool
+    pkg-config
+    wrapGAppsHook
+    yelp-tools
+  ];
+
+  buildInputs = [
+    clutter-gtk
+    gst_all_1.gstreamer
+    gst_all_1.gst-plugins-base
+    gst_all_1.gst-plugins-good
+    glib
+    gtk2
+    libgsf
+    libxml2
+    # optional packages
+    fluidsynth
+    gst_all_1.gst-plugins-bad
+    gst_all_1.gst-plugins-ugly
+    orc
+  ];
+
+  # 'g_memdup' is deprecated: Use 'g_memdup2' instead
+  env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
+
+  meta = with lib; {
+    description = "Buzztrax is a modular music composer for Linux.";
+    homepage = "https://www.buzztrax.org/";
+    license = licenses.lgpl21Plus;
+    maintainers = [ maintainers.bendlas ];
+    platforms = platforms.unix;
+  };
+}