nixpkgs/pkgs/development/tools/parsing/flex/builder-new.sh

13 lines
241 B
Bash
Raw Normal View History

#! /bin/sh
export buildinputs="$yacc $m4"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd flex-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
echo "$m4" > $out/propagated-build-inputs || exit 1