Files
etherlab-nix/testmanager.nix
2023-08-16 08:42:22 +03:00

49 lines
1011 B
Nix

{
stdenv,
lib,
pkgs,
qtbase,
qttools,
wrapQtAppsHook,
pdcom ? pkgs.callPackage ./pdcom.nix {},
qtpdwidgets ? pkgs.libsForQt5.callPackage ./qtpdwidgets.nix {},
}:
with pkgs;
let
version="master";
rev = "ea10d2b5b872ea2269bf08169d18d52212f8a0af"; #master
in
stdenv.mkDerivation {
name = "testmanager";
inherit version;
src = fetchGit {
url = "https://gitlab.com/etherlab.org/testmanager.git";
ref = "${version}";
inherit rev;
};
enableParallelBuilding = true;
buildInputs = [ qtbase qttools python3 pdcom qtpdwidgets ];
nativeBuildInputs = [ wrapQtAppsHook ];
installFlags = [ "INSTALL_ROOT=${placeholder "out"}" ];
preConfigure = ''
#set -x
echo ${rev} > revision
VERSION=${version} qmake
'';
postInstall = ''
mv $out/usr/local/* $out/
rm -r $out/usr
'';
meta = with lib; {
description = "Dynamic operation and visualization software. Connects to a realtime application via TCP/IP";
platforms = platforms.linux;
};
}