mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub, python, autoreconfHook, pkgconfig, makeWrapper
|
|
, flex
|
|
, gettext, libedit, glib, imagemagick, libxml2, boost, gnuplot, graphviz
|
|
, tesseract, gts, libXtst
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
version = "0.39";
|
|
pname = "fMBT";
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|