forked from mirrors/nixpkgs
* Fork iputils.
svn path=/nixpkgs/trunk/; revision=3267
This commit is contained in:
parent
cf09d1933d
commit
785fb78cf2
10
pkgs/development/tools/parsing/flex-iputils/builder.sh
Normal file
10
pkgs/development/tools/parsing/flex-iputils/builder.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
. $stdenv/setup
|
||||
|
||||
installPhase() {
|
||||
make install
|
||||
cd $out/bin; ln -s flex lex
|
||||
cd $out/lib; ln -s libfl.a libl.a
|
||||
}
|
||||
|
||||
installPhase=installPhase
|
||||
genericBuild
|
13
pkgs/development/tools/parsing/flex-iputils/default.nix
Normal file
13
pkgs/development/tools/parsing/flex-iputils/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{stdenv, fetchurl, yacc}:
|
||||
|
||||
assert yacc != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "flex-2.5.4a";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/flex-2.5.4a.tar.gz;
|
||||
md5 = "bd8753d0b22e1f4ec87a553a73021adf";
|
||||
};
|
||||
buildInputs = [yacc];
|
||||
}
|
16
pkgs/development/tools/parsing/flex-iputils/flex-new.nix
Normal file
16
pkgs/development/tools/parsing/flex-iputils/flex-new.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
# !!! this should be moved to default.nix eventually (but I delay
|
||||
# doing that since it would cause a rebuild of lots of stuff).
|
||||
|
||||
{stdenv, fetchurl, yacc, m4}:
|
||||
|
||||
assert yacc != null && m4 != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "flex-2.5.31";
|
||||
src = fetchurl {
|
||||
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/flex-2.5.31.tar.bz2;
|
||||
md5 = "363dcc4afc917dc51306eb9d3de0152f";
|
||||
};
|
||||
buildInputs = [yacc];
|
||||
propagatedBuildInputs = [m4];
|
||||
}
|
Loading…
Reference in a new issue