don't build docs for packages by default
This commit is contained in:
parent
7245fe83e5
commit
943564da29
|
@ -20,6 +20,8 @@
|
|||
dependencies ? [],
|
||||
|
||||
tetheredInstallation ? false,
|
||||
doMainSetup ? tetheredInstallation,
|
||||
buildDocs ? tetheredInstallation,
|
||||
...
|
||||
} @ attrs: {
|
||||
name = "racket${racket.version}-" + pname + "-" + version;
|
||||
|
@ -30,6 +32,8 @@
|
|||
dontBuild = true;
|
||||
|
||||
racketTetheredInstallation = tetheredInstallation;
|
||||
racketDoMainSetup = doMainSetup;
|
||||
racketBuildDocs = buildDocs;
|
||||
|
||||
nativeBuildInputs = [
|
||||
racket
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
makeRacketEnv = self.callPackage ./make-racket-env.nix {};
|
||||
|
||||
testEnv = self.makeRacketEnv {
|
||||
packages = [self.ansi-color];
|
||||
packages = [self.ansi-color self.curly-fn-lib];
|
||||
};
|
||||
|
||||
ansi-color = self.callPackage (
|
||||
|
|
|
@ -122,12 +122,12 @@ racketInstallPhase() {
|
|||
EOF
|
||||
|
||||
echo Initializing installation layer
|
||||
if [ "$racketTetheredInstallation" == "true" ]; then
|
||||
if [ "$racketTetheredInstallation" == "1" ]; then
|
||||
racket --config $out/etc/racket/ --no-user-path -l- \
|
||||
raco setup
|
||||
else
|
||||
raco setup --no-zo
|
||||
elif [ "$racketDoMainSetup" == "1" ]; then
|
||||
racket --config $out/etc/racket/ --no-user-path -l- \
|
||||
raco setup --no-launcher
|
||||
raco setup --no-zo --no-launcher
|
||||
|
||||
rm $out/bin/mzscheme # ????
|
||||
fi
|
||||
|
@ -136,8 +136,13 @@ EOF
|
|||
echo Skipping raco pkg install
|
||||
else
|
||||
echo Running raco pkg install
|
||||
racoflags=""
|
||||
if [ "$racketBuildDocs" != "1" ]; then
|
||||
racoflags="--no-docs"
|
||||
fi
|
||||
racket --config $out/etc/racket/ --no-user-path -l- \
|
||||
raco pkg install --installation --deps fail --copy --name "$pname" "$(readlink -e .)"
|
||||
raco pkg install --installation --deps fail --copy --name "$pname" $racoflags \
|
||||
"$(readlink -e .)"
|
||||
fi
|
||||
|
||||
runHook postInstall
|
||||
|
|
Loading…
Reference in New Issue