2006-07-01 01:30:45 +02:00
|
|
|
{stdenv, fetchurl, m4}:
|
|
|
|
|
|
|
|
assert m4 != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "bison-2.3";
|
|
|
|
src = fetchurl {
|
2007-08-27 15:42:00 +02:00
|
|
|
url = mirror://gnu/bison/bison-2.3.tar.bz2;
|
2006-07-01 01:30:45 +02:00
|
|
|
md5 = "c18640c6ec31a169d351e3117ecce3ec";
|
|
|
|
};
|
2009-12-08 20:42:18 +01:00
|
|
|
|
- Removed all *NoCross expressions I dupilcated in nixpkgs, while maintaining
the cross compilation functionality.
- I renamed some expected stdenv.mkDerivation parameter attributes so we can
keep this branch properly updated from trunk. We agreed with Nicolas Pierron
doing a massive renaming, so all current buildInputs become hostInputs (input
as build for the host machine, in autotools terminology) , and
then buildInputs would mean "input as for the build machine".
By now, the specific "input as for the build machine" is specified through
buildNativeInputs. We should fix this in the merge to trunk.
- I made the generic stdenv understand the buildNativeInputs, otherwise if
we start changing nixpkgs expressions so they distinguish the current
buildInputs into buildInputs and buildNativeInputs, we could break even more
nixpkgs for other platforms.
- I changed the default result of mkDerivation so it becomes the derivation for
to be run in the build machine. This allows, without any special rewriting,
"fetchurl" derivations to be always results for the build machine to use
them.
- The change above implies that, for anyone wanting to cross-compile, has to
build the hostDrv of the wanted derivation. For example, after this commit,
the usual test of "nix-build -A bison.hostDrv arm.nix" works. I described
the contents of this arm.nix in r18398.
svn path=/nixpkgs/branches/stdenv-updates/; revision=18471
2009-11-19 20:03:34 +01:00
|
|
|
buildNativeInputs = [m4];
|
2009-12-08 20:42:18 +01:00
|
|
|
propagatedBuildInputs = [m4];
|
2006-10-11 18:45:55 +02:00
|
|
|
|
|
|
|
meta = {
|
2008-11-03 19:27:35 +01:00
|
|
|
description = "GNU Bison, a Yacc-compatible parser generator";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Bison is a general-purpose parser generator that converts an
|
|
|
|
annotated context-free grammar into an LALR(1) or GLR parser for
|
|
|
|
that grammar. Once you are proficient with Bison, you can use
|
|
|
|
it to develop a wide range of language parsers, from those used
|
|
|
|
in simple desk calculators to complex programming languages.
|
|
|
|
|
|
|
|
Bison is upward compatible with Yacc: all properly-written Yacc
|
|
|
|
grammars ought to work with Bison with no change. Anyone
|
|
|
|
familiar with Yacc should be able to use Bison with little
|
|
|
|
trouble. You need to be fluent in C or C++ programming in order
|
|
|
|
to use Bison.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/bison/;
|
|
|
|
|
2008-11-03 19:28:13 +01:00
|
|
|
license = "GPLv2+";
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2008-11-14 16:53:07 +01:00
|
|
|
|
|
|
|
passthru = { glrSupport = true; };
|
2006-07-01 01:30:45 +02:00
|
|
|
}
|