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