mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
ff057f0d07
svn path=/nixpkgs/branches/stdenv-updates/; revision=15233
19 lines
510 B
Bash
19 lines
510 B
Bash
source $stdenv/setup
|
|
|
|
configureFlags="$configureFlags -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
|
|
|
|
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
|
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
|
|
configureFlags="$configureFlags -Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
|
fi
|
|
|
|
configureScript=./Configure
|
|
dontAddPrefix=1
|
|
|
|
preBuild() {
|
|
# Make Cwd work on NixOS (where we don't have a /bin/pwd).
|
|
substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
|
|
}
|
|
|
|
genericBuild
|