mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
24 lines
475 B
Bash
24 lines
475 B
Bash
source $stdenv/setup
|
|
|
|
export R_LIBS_SITE="$R_LIBS_SITE${R_LIBS_SITE:+:}$out/library"
|
|
|
|
|
|
if test -n "$rPreHook"; then
|
|
eval "$rPreHook"
|
|
fi
|
|
|
|
installPhase() {
|
|
runHook preInstall
|
|
mkdir -p $out/library
|
|
R CMD INSTALL -l $out/library $src
|
|
runHook postInstall
|
|
}
|
|
|
|
postFixup() {
|
|
if test -e $out/nix-support/propagated-native-build-inputs; then
|
|
ln -s $out/nix-support/propagated-native-build-inputs $out/nix-support/propagated-user-env-packages
|
|
fi
|
|
}
|
|
|
|
genericBuild
|