50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
pkgs,
|
|
qtbase,
|
|
qttools,
|
|
wrapQtAppsHook,
|
|
pdcom ? pkgs.callPackage ./pdcom.nix {},
|
|
#qtpdcom ? pkgs.libsForQt5.callPackage ./qtpdcom.nix {},
|
|
}:
|
|
|
|
with pkgs;
|
|
let
|
|
version="stable-1.3";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "qtpdwidgets";
|
|
inherit version;
|
|
|
|
src = fetchGit {
|
|
url = "https://gitlab.com/etherlab.org/qtpdwidgets.git";
|
|
ref = "${version}";
|
|
rev = "1f963f3acb6b250eb7447829d5c40bde1e6dd8d1"; #stable-1.3
|
|
};
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ qtbase qttools pdcom ];
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
preConfigure = ''
|
|
#qmake
|
|
PREFIX=$out qmake
|
|
substituteInPlace Makefile.Release --replace 'DESTDIR =' 'DESTDIR =${placeholder "out"}'
|
|
|
|
'';
|
|
|
|
installFlags = [ "INSTALL_ROOT=${placeholder "out"}" ];
|
|
|
|
postInstall = ''
|
|
#ln -s $out/include/QtPdWidgets2 $out/include/QtPdWidgets
|
|
mv $out/usr/local/* $out/
|
|
rm -r $out/usr
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Process-data aware widget library for Qt, that uses PdCom for process variable access.";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|