Import code
This commit is contained in:
48
testmanager.nix
Normal file
48
testmanager.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user