forked from mirrors/nixpkgs
Add flexc++ 2.02.00: C++ lexical scanner generator
This commit is contained in:
parent
32ff988030
commit
897897cc30
47
pkgs/development/tools/parsing/flexc++/default.nix
Normal file
47
pkgs/development/tools/parsing/flexc++/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ stdenv, fetchurl, bobcat, gcc49, icmake, yodl }:
|
||||||
|
|
||||||
|
let version = "2.02.00"; in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "flexc++-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
sha256 = "0mz5d0axr4c8rrmn4iw7b5llmf6f3g9cnjzzz3kw02mfzwll79rz";
|
||||||
|
url = "mirror://sourceforge/flexcpp/${version}/flexc++_${version}.orig.tar.gz";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
inherit version;
|
||||||
|
description = "";
|
||||||
|
longDescription = ''
|
||||||
|
Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
|
||||||
|
and requires simpler specification files than offered by flex's C++
|
||||||
|
option.
|
||||||
|
'';
|
||||||
|
homepage = http://flexcpp.sourceforge.net/;
|
||||||
|
downloadPage = http://sourceforge.net/projects/flexcpp/files/;
|
||||||
|
license = with licenses; gpl3;
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ bobcat gcc49 icmake yodl ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace INSTALL.im --replace /usr $out
|
||||||
|
patchShebangs ./build
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
./build man
|
||||||
|
./build manual
|
||||||
|
./build program
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
./build install man
|
||||||
|
./build install manual
|
||||||
|
./build install program
|
||||||
|
./build install skel
|
||||||
|
./build install std
|
||||||
|
'';
|
||||||
|
}
|
|
@ -5165,6 +5165,8 @@ let
|
||||||
flex_2_5_39 = callPackage ../development/tools/parsing/flex/2.5.39.nix { };
|
flex_2_5_39 = callPackage ../development/tools/parsing/flex/2.5.39.nix { };
|
||||||
flex = flex_2_5_39;
|
flex = flex_2_5_39;
|
||||||
|
|
||||||
|
flexcpp = callPackage ../development/tools/parsing/flexc++ { };
|
||||||
|
|
||||||
m4 = gnum4;
|
m4 = gnum4;
|
||||||
|
|
||||||
geis = callPackage ../development/libraries/geis { };
|
geis = callPackage ../development/libraries/geis { };
|
||||||
|
|
Loading…
Reference in a new issue