nixpkgs/pkgs/applications/misc/qlcplus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.4 KiB
Nix
Raw Normal View History

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