jflex: add smoke test

This commit is contained in:
Jörg Thalheim 2018-11-19 09:50:29 +00:00
parent 02212e1d02
commit 01502a04e5
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
1 changed files with 9 additions and 2 deletions

View File

@ -10,15 +10,22 @@ stdenv.mkDerivation rec {
sourceRoot = name;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -a * $out
rm -f $out/bin/jflex.bat
patchShebangs $out
sed -i -e '/^JAVA=java/ s#java#${jre}/bin/java#' $out/bin/jflex
runHook postInstall
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preCheck
$out/bin/jflex --version
runHook postCheck
'';
meta = {