nixpkgs/pkgs/applications/audio/seq66/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

58 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
qttools,
which,
alsa-lib,
libjack2,
liblo,
qtbase,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "seq66";
version = "0.99.19";
src = fetchFromGitHub {
owner = "ahlstromcj";
repo = "seq66";
rev = version;
hash = "sha256-9cEvwJTH6Iwi4aZQHTjQ/DhUtKYw2QC1Oq+D1/tpE90=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
qttools
which
wrapQtAppsHook
];
buildInputs = [
alsa-lib
libjack2
liblo
qtbase
];
postPatch = ''
for d in libseq66/src libsessions/include libsessions/src seq_qt5/src seq_rtmidi/src; do
substituteInPlace "$d/Makefile.am" --replace-fail '$(git_info)' '${version}'
done
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/ahlstromcj/seq66";
description = "Loop based midi sequencer with Qt GUI derived from seq24 and sequencer64";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ orivej ];
mainProgram = "qseq66";
platforms = platforms.linux;
};
}