summary refs log tree commit diff
path: root/pkgs/stdenv/generic/builder.sh
blob: ac9851607733e6d92ae38391f16a1921708eaebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

. $stdenv/setup

mkdir $out || exit 1

sed \
 -e "s^@preHook@^$preHook^g" \
 -e "s^@postHook@^$postHook^g" \
 -e "s^@initialPath@^$initialPath^g" \
 -e "s^@gcc@^$gcc^g" \
 -e "s^@param1@^$param1^g" \
 -e "s^@param2@^$param2^g" \
 -e "s^@param3@^$param3^g" \
 -e "s^@param4@^$param4^g" \
 -e "s^@param5@^$param5^g" \
 < $setup > $out/setup || exit 1