3
0
Fork 0
forked from mirrors/nixpkgs

fmbt: init at 0.39

This commit is contained in:
Michael Raskin 2018-03-11 15:44:20 +01:00
parent 4fd2ce037a
commit ec2981ae3d
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ stdenv, fetchFromGitHub, python, autoreconfHook, pkgconfig, makeWrapper
, flex
, gettext, libedit, glib, imagemagick, libxml2, boost, gnuplot, graphviz
, tesseract, gts, libXtst
}:
stdenv.mkDerivation rec {
version = "0.39";
name = "fMBT-${version}";
src = fetchFromGitHub {
owner = "intel";
repo = "fMBT";
rev = "v${version}";
sha256 = "15sxwdcsjybq50vkla4md2ay8m67ndc4vwcsl5vwsjkim5qlxslb";
};
nativeBuildInputs = [ autoreconfHook pkgconfig flex makeWrapper
python.pkgs.wrapPython ];
buildInputs = [ python gettext libedit glib imagemagick libxml2 boost
gnuplot graphviz tesseract gts
];
propagatedBuildInputs = with python.pkgs; [
pyside pydbus pexpect pysideShiboken
];
preBuild = ''
export PYTHONPATH="$PYTHONPATH:$out/lib/python${python.pythonVersion}/site-packages"
export PATH="$PATH:$out/bin"
export LD_LIBRARY_PATH="${stdenv.lib.makeLibraryPath [libXtst]}"
'';
postInstall = ''
echo -e '#! ${stdenv.shell}\npython "$@"' > "$out/bin/fmbt-python"
chmod a+x "$out/bin/fmbt-python"
patchShebangs "$out/bin"
for i in "$out"/bin/*; do
wrapProgram "$i" --suffix "PATH" ":" "$PATH" \
--suffix "PYTHONPATH" ":" "$PYTHONPATH" \
--suffix "LD_LIBRARY_PATH" ":" "$LD_LIBRARY_PATH"
done
'';
meta = with stdenv.lib; {
description = "Free Model-Based Testing tool";
homepage = "https://github.com/intel/fMBT";
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ raskin ];
};
}

View file

@ -2290,6 +2290,10 @@ with pkgs;
flameGraph = flamegraph;
flvtool2 = callPackage ../tools/video/flvtool2 { };
fmbt = callPackage ../development/tools/fmbt {
python = python2;
};
fontforge = lowPrio (callPackage ../tools/misc/fontforge {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;