From a8e609a399c475b893187c6cb105520463116272 Mon Sep 17 00:00:00 2001 From: Thibault Polge Date: Mon, 6 Feb 2023 14:02:57 +0100 Subject: [PATCH] auto-multiple-choice: change default module dir (fix #214724) AMC will look for its libraries on the nix store path if and only iff its default modules directory doesn't exist. The value for this variable was /lib/, which exists on some systems. This commit changes it to /nonexistent, the "canonical non-existent home directory" per Debian policy, which probably won't exist anywhere. --- pkgs/applications/misc/auto-multiple-choice/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/auto-multiple-choice/default.nix b/pkgs/applications/misc/auto-multiple-choice/default.nix index c34872de4cc5..900653633a4b 100644 --- a/pkgs/applications/misc/auto-multiple-choice/default.nix +++ b/pkgs/applications/misc/auto-multiple-choice/default.nix @@ -42,7 +42,8 @@ stdenv.mkDerivation rec { # Relative paths. "BINDIR=/bin" "PERLDIR=/share/perl5" - "MODSDIR=/lib/" + "MODSDIR=/nonexistent" # AMC will test for that dir before + # defaulting to the "portable" strategy, so this test *must* fail. "TEXDIR=/tex/latex/" # what texlive.combine expects "TEXDOCDIR=/share/doc/texmf/" # TODO where to put this? "MAN1DIR=/share/man/man1"