nixpkgs/pkgs/applications/audio/csound/csound-qt/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

69 lines
1.4 KiB
Nix

{
lib,
stdenv,
csound,
desktop-file-utils,
fetchFromGitHub,
python3,
python-qt,
qmake,
qtwebengine,
qtxmlpatterns,
rtmidi,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "csound-qt";
version = "1.1.3";
src = fetchFromGitHub {
owner = "CsoundQt";
repo = "CsoundQt";
rev = "v${version}";
hash = "sha256-ZdQwWRAr6AKLmZ/L0lSxIlvWRLoZIKinn7BAQiR+luk=";
};
patches = [
./rtmidipath.patch
];
nativeBuildInputs = [
qmake
qtwebengine
qtxmlpatterns
wrapQtAppsHook
];
buildInputs = [
csound
desktop-file-utils
rtmidi
];
qmakeFlags = [
"qcs.pro"
"CONFIG+=rtmidi"
"CONFIG+=pythonqt"
"CONFIG+=record_support"
"CONFIG+=html_webengine"
"CSOUND_INCLUDE_DIR=${csound}/include/csound"
"CSOUND_LIBRARY_DIR=${csound}/lib"
"RTMIDI_DIR=${rtmidi.src}"
"PYTHONQT_SRC_DIR=${python-qt.src}"
"PYTHONQT_LIB_DIR=${python-qt}/lib"
"LIBS+=-L${python-qt}/lib"
"INSTALL_DIR=${placeholder "out"}"
"SHARE_DIR=${placeholder "out"}/share"
"PYTHON_DIR=${python3}"
"PYTHON_VERSION=3.${python3.sourceVersion.minor}"
];
meta = with lib; {
description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features";
homepage = "https://csoundqt.github.io/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ hlolli ];
};
}