2012-04-01 13:41:01 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, boost, glib, jackaudio, ladspaPlugins
|
|
|
|
, libarchive, liblrdf , libsndfile, pkgconfig, qt4, scons, subversion }:
|
2011-04-17 15:23:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.5";
|
|
|
|
name = "hydrogen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/hydrogen/hydrogen-${version}.tar.gz";
|
|
|
|
sha256 = "1hyri49va2ss26skd6p9swkx0kbr7ggifbahkrcfgj8yj7pp6g4n";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2012-04-01 13:41:01 +01:00
|
|
|
alsaLib boost glib jackaudio ladspaPlugins libarchive liblrdf
|
|
|
|
libsndfile pkgconfig qt4 scons subversion
|
2011-04-17 15:23:33 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./scons-env.patch ];
|
|
|
|
|
2012-04-01 13:41:01 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -e 's#/usr/lib/ladspa#${ladspaPlugins}/lib/ladspa#' -i libs/hydrogen/src/preferences.cpp
|
|
|
|
sed '/\/usr/d' -i libs/hydrogen/src/preferences.cpp
|
|
|
|
'';
|
|
|
|
|
2011-04-17 15:23:33 +01:00
|
|
|
# why doesn't scons find librdf?
|
|
|
|
buildPhase = ''
|
|
|
|
scons prefix=$out libarchive=1 lrdf=0 install
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ":";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Advanced drum machine";
|
|
|
|
homepage = http://www.hydrogen-music.org;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|