2014-07-31 10:47:17 +00:00
|
|
|
{ stdenv, fetchurl, alsaLib, boost, glib, jack2, ladspaPlugins
|
2012-04-01 12:41:01 +00:00
|
|
|
, libarchive, liblrdf , libsndfile, pkgconfig, qt4, scons, subversion }:
|
2011-04-17 14:23:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-18 20:26:08 +00:00
|
|
|
version = "0.9.5.1";
|
2011-04-17 14:23:33 +00:00
|
|
|
name = "hydrogen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/hydrogen/hydrogen-${version}.tar.gz";
|
2014-01-18 20:26:08 +00:00
|
|
|
sha256 = "1fvyp6gfzcqcc90dmaqbm11p272zczz5pfz1z4lj33nfr7z0bqgb";
|
2011-04-17 14:23:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2014-07-31 10:47:17 +00:00
|
|
|
alsaLib boost glib jack2 ladspaPlugins libarchive liblrdf
|
2012-04-01 12:41:01 +00:00
|
|
|
libsndfile pkgconfig qt4 scons subversion
|
2011-04-17 14:23:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./scons-env.patch ];
|
|
|
|
|
2012-04-01 12:41:01 +00: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
|
2013-02-16 20:07:48 +00:00
|
|
|
sed "s#pkg_ver.rstrip().split('.')#pkg_ver.rstrip().split('.')[:3]#" -i Sconstruct
|
|
|
|
'';
|
2012-04-01 12:41:01 +00:00
|
|
|
|
2011-04-17 14:23:33 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|