summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorlethalman <lucabru@src.gnome.org>2015-03-30 17:31:09 +0200
committerlethalman <lucabru@src.gnome.org>2015-03-30 17:31:09 +0200
commitf2bb0bf964d01ab6f6c11d609bdecf43d53d452b (patch)
tree93aab543b91b86d7f9870c1d3e108f1ac1c43db8 /pkgs/applications/audio
parent9bbeb44517185ddde6059381ee4efd838be8e7e1 (diff)
parent93228a08630c1e815334c854555636645d0f814a (diff)
downloadnixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar.gz
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar.bz2
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar.lz
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar.xz
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.tar.zst
nixlib-f2bb0bf964d01ab6f6c11d609bdecf43d53d452b.zip
Merge pull request #6913 from bdimcheff/add-packages-brasero-soundjuicer
Add packages brasero and soundjuicer
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/sound-juicer/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/audio/sound-juicer/default.nix b/pkgs/applications/audio/sound-juicer/default.nix
new file mode 100644
index 000000000000..f7f5998846bc
--- /dev/null
+++ b/pkgs/applications/audio/sound-juicer/default.nix
@@ -0,0 +1,50 @@
+{ stdenv, fetchurl, pkgconfig, gtk3, intltool, itstool, libxml2, brasero
+, libcanberra_gtk3, gnome3, gst_all_1, libmusicbrainz5, libdiscid, isocodes
+, makeWrapper }:
+
+let
+  major = "3.15";
+  minor = "92";
+  GST_PLUGIN_PATH = stdenv.lib.makeSearchPath "lib/gstreamer-1.0" [
+    gst_all_1.gst-plugins-base
+    gst_all_1.gst-plugins-good
+    gst_all_1.gst-plugins-bad
+    gst_all_1.gst-libav ];
+
+in stdenv.mkDerivation rec {
+  version = "${major}.${minor}";
+  name = "sound-juicer-${version}";
+
+  src = fetchurl {
+    url = "http://download.gnome.org/sources/sound-juicer/${major}/${name}.tar.xz";
+    sha256 = "b1420f267a4c553f6ca242d3b6082b60682c3d7b431ac3c979bd1ccfbf2687dd";
+  };
+
+  buildInputs = [ pkgconfig gtk3 intltool itstool libxml2 brasero libcanberra_gtk3
+                  gnome3.gsettings_desktop_schemas libmusicbrainz5 libdiscid isocodes
+                  makeWrapper gnome3.dconf
+                  gst_all_1.gstreamer gst_all_1.gst-plugins-base
+                  gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad ];
+
+  preFixup = ''
+    for f in $out/bin/* $out/libexec/*; do
+      wrapProgram "$f" \
+        --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
+        --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
+        --prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules" \
+        --prefix GST_PLUGIN_PATH : "${GST_PLUGIN_PATH}"
+    done
+  '';
+
+  postInstall = ''
+    rm $out/share/icons/hicolor/icon-theme.cache
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A Gnome CD Ripper";
+    homepage = https://wiki.gnome.org/Apps/SoundJuicer;
+    maintainers = [ maintainers.bdimcheff ];
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+  };
+}