2015-03-23 05:06:23 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk3, intltool, itstool, libxml2, brasero
|
|
|
|
, libcanberra_gtk3, gnome3, gst_all_1, libmusicbrainz5, libdiscid, isocodes
|
|
|
|
, makeWrapper }:
|
2015-03-20 22:50:38 +03:00
|
|
|
|
|
|
|
let
|
2015-10-01 10:41:45 +03:00
|
|
|
major = "3.16";
|
|
|
|
minor = "1";
|
2015-03-20 22:50:38 +03:00
|
|
|
|
|
|
|
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";
|
2015-10-01 10:41:45 +03:00
|
|
|
sha256 = "0mx6n901vb97hsv0cwaafjffj75s1kcp8jsqay90dy3099849dyz";
|
2015-03-20 22:50:38 +03:00
|
|
|
};
|
|
|
|
|
2017-09-06 00:26:13 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtk3 intltool itstool libxml2 brasero libcanberra_gtk3
|
2015-03-20 22:50:38 +03:00
|
|
|
gnome3.gsettings_desktop_schemas libmusicbrainz5 libdiscid isocodes
|
2017-07-24 07:24:11 +03:00
|
|
|
makeWrapper (stdenv.lib.getLib gnome3.dconf)
|
2015-03-20 22:50:38 +03:00
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
2016-04-13 15:38:08 +03:00
|
|
|
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
];
|
2015-03-20 22:50:38 +03:00
|
|
|
|
|
|
|
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" \
|
2017-07-24 07:24:11 +03:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules"
|
2015-03-20 22:50:38 +03:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|