nixpkgs/pkgs/development/tools/fmbt/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

54 lines
1.5 KiB
Nix

{ stdenv, fetchFromGitHub, python, autoreconfHook, pkg-config, makeWrapper
, flex
, gettext, libedit, glib, imagemagick, libxml2, boost, gnuplot, graphviz
, tesseract, gts, libXtst
}:
stdenv.mkDerivation rec {
version = "0.42";
pname = "fMBT";
src = fetchFromGitHub {
owner = "intel";
repo = "fMBT";
rev = "v${version}";
sha256 = "1jb9nb2mipc5cg99a80dny4m06vz2zral0q30fv75rz2cb6ja4zp";
};
nativeBuildInputs = [ autoreconfHook pkg-config 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 ];
};
}