uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/development/tools/fmbt/default.nix
Normal file
53
pkgs/development/tools/fmbt/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python, autoreconfHook, pkg-config, makeWrapper
|
||||
, flex
|
||||
, gettext, libedit, glib, imagemagick6, 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 imagemagick6 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="${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 lib; {
|
||||
description = "Free Model-Based Testing tool";
|
||||
homepage = "https://github.com/intel/fMBT";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue