2018-02-24 14:12:44 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, cmake, libGLU_combined, makeWrapper, qt4 }:
|
2012-04-22 18:55:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pianobooster-${version}";
|
|
|
|
version = "0.6.4b";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pianobooster/pianobooster-src-0.6.4b.tar.gz";
|
|
|
|
sha256 = "1xwyap0288xcl0ihjv52vv4ijsjl0yq67scc509aia4plmlm6l35";
|
|
|
|
};
|
|
|
|
|
2014-01-25 17:54:28 +01:00
|
|
|
patches = [
|
|
|
|
./pianobooster-0.6.4b-cmake.patch
|
|
|
|
./pianobooster-0.6.4b-cmake-gcc4.7.patch
|
|
|
|
];
|
|
|
|
|
2012-04-22 18:55:12 +02:00
|
|
|
preConfigure = "cd src";
|
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ alsaLib cmake makeWrapper libGLU_combined qt4 ];
|
2019-01-04 20:33:50 +01:00
|
|
|
NIX_LDFLAGS = [ "-lGL" "-lpthread" ];
|
2014-01-25 17:54:28 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/pianobooster \
|
2018-02-24 14:12:44 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : ${libGLU_combined}/lib
|
2014-01-25 17:54:28 +01:00
|
|
|
'';
|
2012-04-22 18:55:12 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A MIDI file player that teaches you how to play the piano";
|
|
|
|
homepage = http://pianobooster.sourceforge.net;
|
|
|
|
license = licenses.gpl3;
|
2014-01-25 17:54:28 +01:00
|
|
|
platforms = platforms.linux;
|
2012-04-22 18:55:12 +02:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|