summary refs log tree commit diff
path: root/pkgs/applications/audio/hydrogen
diff options
context:
space:
mode:
authorCillian de Roiste <cillian.deroiste@gmail.com>2011-04-17 14:23:33 +0000
committerCillian de Roiste <cillian.deroiste@gmail.com>2011-04-17 14:23:33 +0000
commitc7bf27de021ac77376c9dbf1fd59f7d0e170799d (patch)
tree28dc5cfb10679bd99a11a590f414c3a8302dd276 /pkgs/applications/audio/hydrogen
parentfec06f7196b651473afdcbdf6625cda78a3d5ae5 (diff)
downloadnixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar.gz
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar.bz2
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar.lz
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar.xz
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.tar.zst
nixlib-c7bf27de021ac77376c9dbf1fd59f7d0e170799d.zip
Adding Hydrogen: drum machine
svn path=/nixpkgs/trunk/; revision=26866
Diffstat (limited to 'pkgs/applications/audio/hydrogen')
-rw-r--r--pkgs/applications/audio/hydrogen/default.nix35
-rw-r--r--pkgs/applications/audio/hydrogen/scons-env.patch20
2 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/audio/hydrogen/default.nix b/pkgs/applications/audio/hydrogen/default.nix
new file mode 100644
index 000000000000..765f5559914e
--- /dev/null
+++ b/pkgs/applications/audio/hydrogen/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl, 
+  alsaLib, boost, glib, jackaudio, libarchive, liblrdf, libsndfile,
+  pkgconfig, qt4, scons, subversion }:
+
+stdenv.mkDerivation rec {
+  version = "0.9.5";
+  name = "hydrogen-${version}";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/hydrogen/hydrogen-${version}.tar.gz";
+    sha256 = "1hyri49va2ss26skd6p9swkx0kbr7ggifbahkrcfgj8yj7pp6g4n";
+  };
+
+  buildInputs = [ 
+    alsaLib boost glib jackaudio libarchive liblrdf libsndfile
+    pkgconfig qt4 scons subversion 
+  ];
+
+  patches = [ ./scons-env.patch ];
+
+  # 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 ];
+  };
+}
diff --git a/pkgs/applications/audio/hydrogen/scons-env.patch b/pkgs/applications/audio/hydrogen/scons-env.patch
new file mode 100644
index 000000000000..4ffa1f91e91d
--- /dev/null
+++ b/pkgs/applications/audio/hydrogen/scons-env.patch
@@ -0,0 +1,20 @@
+--- hydrogen-0.9.5/Sconstruct	2011-03-15 13:22:35.000000000 +0100
++++ hydrogen-0.9.5/Sconstruct	2011-04-17 16:06:54.000000000 +0200
+@@ -178,7 +178,7 @@
+ 
+ 	includes.append( "libs/hydrogen/include" )
+ 	
+-	env = Environment( options = opts ) 
++	env = Environment( options = opts, ENV = os.environ ) 
+ 
+ 
+ 	#location of qt4.py
+@@ -379,7 +379,7 @@
+ 
+ includes, a , b = get_platform_flags( opts )
+ 
+-env = Environment(options = opts, CPPPATH = includes)
++env = Environment(options = opts, ENV = os.environ)
+ 
+ 
+ Help(opts.GenerateHelpText(env))