3
0
Fork 0
forked from mirrors/nixpkgs

jflex: 1.4.3 -> 1.6.1

This commit is contained in:
José Romildo Malaquias 2016-01-26 01:19:18 -02:00
parent 9e56b18cde
commit 663cbd16b8
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;
};
}