2024-06-05 15:53:02 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, udev
|
2024-04-21 15:54:59 +00:00
|
|
|
, qtmultimedia, qtscript, qtserialport, alsa-lib, ola, libftdi1, libusb-compat-0_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsndfile, libmad
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qlcplus";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "4.13.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mcallegari";
|
|
|
|
repo = "qlcplus";
|
|
|
|
rev = "QLC+_${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-AKmPxHOlMtea3q0NDULp3XfJ0JnYeF/iFUJw0dDOiio=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
udev qtmultimedia qtscript qtserialport alsa-lib ola libftdi1 libusb-compat-0_1 libsndfile libmad
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
qmakeFlags = [ "INSTALLROOT=$(out)" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
sed -i -e '/unix:!macx:INSTALLROOT += \/usr/d' \
|
|
|
|
-e "s@\$\$LIBSDIR/qt4/plugins@''${qtPluginPrefix}@" \
|
|
|
|
-e "s@/etc/udev/rules.d@''${out}/lib/udev/rules.d@" \
|
|
|
|
variables.pri
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# Fix gcc-13 build failure by removing blanket -Werror.
|
|
|
|
fgrep Werror variables.pri
|
|
|
|
substituteInPlace variables.pri --replace-fail "QMAKE_CXXFLAGS += -Werror" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
ln -sf $out/lib/*/libqlcplus* $out/lib
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Free and cross-platform software to control DMX or analog lighting systems like moving heads, dimmers, scanners etc";
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
homepage = "https://www.qlcplus.org/";
|
|
|
|
};
|
|
|
|
}
|