-
-
Save meditans/7c8db107a065d5cd6899646708034892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl, makeWrapper, pkgconfig, MMA, libjack2, libsmf, python2Packages, fetchFromGitHub, automake, autoconf, autoreconfHook }: | |
let | |
inherit (python2Packages) pyGtkGlade pygtksourceview python; | |
in stdenv.mkDerivation rec { | |
version = "master"; | |
name = "linuxband-${version}"; | |
src = fetchFromGitHub { | |
owner = "noseka1"; | |
repo = "linuxband"; | |
rev = version; | |
sha256 = "08b55kdnckpray27vgpfl6l298mfbaqih6bnv82s4xqj979ca3hd"; | |
}; | |
nativeBuildInputs = [ pkgconfig autoreconfHook ]; | |
buildInputs = [ makeWrapper MMA libjack2 libsmf python pyGtkGlade pygtksourceview automake autoconf ]; | |
patchPhase = '' | |
sed -i 's@/usr/@${MMA}/@g' src/main/config/linuxband.rc.in | |
''; | |
autoreconfPhase = '' | |
./autogen.sh | |
''; | |
postFixup = '' | |
PYTHONPATH=$pyGtkGlade/share/:pygtksourceview/share/:$PYTHONPATH | |
for f in $out/bin/*; do | |
wrapProgram $f \ | |
--prefix PYTHONPATH : $PYTHONPATH | |
done | |
''; | |
meta = { | |
description = "A GUI front-end for MMA: Type in the chords, choose the groove and it will play an accompaniment"; | |
homepage = http://linuxband.org/; | |
license = stdenv.lib.licenses.gpl2; | |
maintainers = [ stdenv.lib.maintainers.magnetophon ]; | |
platforms = stdenv.lib.platforms.linux; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment