Skip to content

Instantly share code, notes, and snippets.

@meditans
Created July 28, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meditans/c00a4ba8dc8b3fc1f223a02d2663a579 to your computer and use it in GitHub Desktop.
Save meditans/c00a4ba8dc8b3fc1f223a02d2663a579 to your computer and use it in GitHub Desktop.
{ 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