2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, MMA, libjack2, libsmf, python2Packages }:
|
2016-05-02 22:28:32 +01:00
|
|
|
|
2016-09-26 08:45:17 +01:00
|
|
|
let
|
2016-11-25 09:03:53 +00:00
|
|
|
inherit (python2Packages) pyGtkGlade pygtksourceview python;
|
2016-09-26 08:45:17 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2016-05-02 22:28:32 +01:00
|
|
|
version = "12.02.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "linuxband";
|
2016-05-02 22:28:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-26 00:33:42 +00:00
|
|
|
url = "https://linuxband.org/assets/sources/${pname}-${version}.tar.gz";
|
2016-05-02 22:28:32 +01:00
|
|
|
sha256 = "1r71h4yg775m4gax4irrvygmrsclgn503ykmc2qwjsxa42ri4n2n";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ makeWrapper MMA libjack2 libsmf python pyGtkGlade pygtksourceview ];
|
2016-05-02 22:28:32 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@/usr/@${MMA}/@g' src/main/config/linuxband.rc.in
|
|
|
|
cat src/main/config/linuxband.rc.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2021-01-26 00:33:42 +00:00
|
|
|
homepage = "https://linuxband.org/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-05-02 22:28:32 +01:00
|
|
|
};
|
|
|
|
}
|