about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/util-linux/builder.sh
blob: d60064c8b7fe69704e3b5de212fd60a7ad5980a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh -e

buildinputs="$patch"
. $stdenv/setup

# !!! hack; this is because $linuxHeaders/config.h includes some
# file autoconf.h.  What is that?
export NIX_CFLAGS_COMPILE="-D_LINUX_CONFIG_H $NIX_CFLAGS_COMPILE"

tar xvfz $src
cd util-linux-*
patch MCONFIG $mconfigPatch
./configure
make
export DESTDIR=$out
make install