@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, qttools, which
2+, alsaLib, libjack2, liblo, qtbase
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "seq66";
7+ version = "0.90.5";
8+
9+ src = fetchFromGitHub {
10+ owner = "ahlstromcj";
11+ repo = pname;
12+ rev = version;
13+ sha256 = "1jvra1wzlycfpvffnqidk264zw6fyl4fsghkw5256ldk22aalmq9";
14+ };
15+
16+ nativeBuildInputs = [ autoreconfHook pkg-config qttools which ];
17+
18+ buildInputs = [ alsaLib libjack2 liblo qtbase ];
19+
20+ postPatch = ''
21+ for d in libseq66/include libseq66/src libsessions/include libsessions/src seq_qt5/src seq_rtmidi/include seq_rtmidi/src Seqtool/src; do
22+ substituteInPlace "$d/Makefile.am" --replace '$(git_info)' '${version}'
23+ done
24+ '';
25+
26+ enableParallelBuilding = true;
27+
28+ meta = with stdenv.lib; {
29+ homepage = "https://github.com/ahlstromcj/seq66";
30+ description = "Loop based midi sequencer with Qt GUI derived from seq24 and sequencer64";
31+ license = licenses.gpl2Plus;
32+ maintainers = with maintainers; [ orivej ];
33+ platforms = platforms.linux;
34+ };
35+}