3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #12618 from romildo/update-jflex

jflex: 1.4.3 -> 1.6.1
This commit is contained in:
Arseniy Seroka 2016-01-26 18:56:37 +03:00
commit c03b113a63
2 changed files with 20 additions and 11 deletions

View file

@ -1,6 +0,0 @@
set -e
source $stdenv/setup
tar zxvf $src
mkdir -p $out
mv $name/* $out

View file

@ -1,11 +1,26 @@
{stdenv, fetchurl} :
stdenv.mkDerivation {
name = "jflex-1.4.3";
builder = ./builder.sh;
stdenv.mkDerivation rec {
name = "jflex-1.6.1";
src = fetchurl {
url = http://jflex.de/jflex-1.4.3.tar.gz;
sha256 = "0sm74sgjvw01fsiqr5q9ipbm8rfyihf6yn00dqymhyc3wmbhr517";
url = "http://jflex.de/${name}.tar.gz";
sha256 = "1h7q2vhb4s42g4pqz5xxxliagprray7i9krr6hyaz1mjlx7gnycq";
};
sourceRoot = name;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out
cp -a * $out
patchShebangs $out
'';
meta = {
homepage = http://www.jflex.de/;
description = "Lexical analyzer generator for Java, written in Java";
license = stdenv.lib.licenses.bsd3;
};
}