nixpkgs/pkgs/os-specific/linux/uml-utilities/builder.sh

15 lines
421 B
Bash
Raw Normal View History

buildinputs=""
source $stdenv/setup
tar xvfj $src
cd tools
sed -e 's/mconsole//' -e '1s/.*/TUNCTL = \$(shell [ -n tunctl ] \&\& echo tunctl)/' -i Makefile
mkdir $out
mkdir $out/bin
mkdir $out/lib
mkdir $out/lib/uml
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml install
ln -s $out/lib/uml/port-helper $out/bin/port-helper
[ -n $tunctl ] && [ -f $out/bin/tunctl ] || fail_no_tunctl