Created
July 28, 2019 12:40
-
-
Save meditans/c00a4ba8dc8b3fc1f223a02d2663a579 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ]; | |
postPatch = '' | |
sed -i 's@/usr/@${MMA}/@g' src/main/config/linuxband.rc.in | |
substituteInPlace configure.ac --replace 'AC_PROG_INSTALL' '# AC_PROG_INSTALL' | |
substituteInPlace Makefile.in --subst-var-by INSTALL install | |
''; | |
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