git.iko.soy/typeable/nixpkgs
on master help sign in
Add flexc++ 2.02.00: C++ lexical scanner generator
commit897897cc30066abbf191a5b52c144a2b2c479f9f authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateTue 5 May 2015, 18:55 (12 years ago) parent32ff988
2 files changed+49
pkgs/development/tools/parsing/flexc++/default.nix+47 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/parsing/flexc++/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchurl, bobcat, gcc49, icmake, yodl }:
2+
3+let version = "2.02.00"; in
4+stdenv.mkDerivation rec {
5+ name = "flexc++-${version}";
6+
7+ src = fetchurl {
8+ sha256 = "0mz5d0axr4c8rrmn4iw7b5llmf6f3g9cnjzzz3kw02mfzwll79rz";
9+ url = "mirror://sourceforge/flexcpp/${version}/flexc++_${version}.orig.tar.gz";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "";
15+ longDescription = ''
16+ Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
17+ and requires simpler specification files than offered by flex's C++
18+ option.
19+ '';
20+ homepage = http://flexcpp.sourceforge.net/;
21+ downloadPage = http://sourceforge.net/projects/flexcpp/files/;
22+ license = with licenses; gpl3;
23+ platforms = with platforms; linux;
24+ maintainers = with maintainers; [ nckx ];
25+ };
26+
27+ buildInputs = [ bobcat gcc49 icmake yodl ];
28+
29+ postPatch = ''
30+ substituteInPlace INSTALL.im --replace /usr $out
31+ patchShebangs ./build
32+ '';
33+
34+ buildPhase = ''
35+ ./build man
36+ ./build manual
37+ ./build program
38+ '';
39+
40+ installPhase = ''
41+ ./build install man
42+ ./build install manual
43+ ./build install program
44+ ./build install skel
45+ ./build install std
46+ '';
47+}
pkgs/top-level/all-packages.nix+2
@@ -5165,6 +5165,8 @@ let
51655165 flex_2_5_39 = callPackage ../development/tools/parsing/flex/2.5.39.nix { };
51665166 flex = flex_2_5_39;
51675167
5168+ flexcpp = callPackage ../development/tools/parsing/flexc++ { };
5169+
51685170 m4 = gnum4;
51695171
51705172 geis = callPackage ../development/libraries/geis { };