diff options
author | Thibault Polge <thibault@thb.lt> | 2023-02-15 18:54:50 +0100 |
---|---|---|
committer | Thibault Polge <thibault@thb.lt> | 2023-02-15 18:56:50 +0100 |
commit | e69c7f78148b97b20992ee5ab7d58c5914dc10a7 (patch) | |
tree | 1836151a18a38f32afe8c5fae0a86261c053e53a /pkgs/applications/misc/auto-multiple-choice | |
parent | 545c7a31e5dedea4a6d372712a18e00ce097d462 (diff) |
auto-multiple-choice: Use default value for $MODSDIR
Changing this value broke the program, because the variable controls the installation path of Perl modules, but the main binary uses a constant, hardcoded path.
Diffstat (limited to 'pkgs/applications/misc/auto-multiple-choice')
-rw-r--r-- | pkgs/applications/misc/auto-multiple-choice/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/misc/auto-multiple-choice/default.nix b/pkgs/applications/misc/auto-multiple-choice/default.nix index 900653633a4b0..8617e3454239b 100644 --- a/pkgs/applications/misc/auto-multiple-choice/default.nix +++ b/pkgs/applications/misc/auto-multiple-choice/default.nix @@ -42,8 +42,14 @@ stdenv.mkDerivation rec { # Relative paths. "BINDIR=/bin" "PERLDIR=/share/perl5" - "MODSDIR=/nonexistent" # AMC will test for that dir before - # defaulting to the "portable" strategy, so this test *must* fail. + "MODSDIR=/lib" # At runtime, AMC will test for that dir before + # defaulting to the "portable" strategy we use, so this test + # *must* fail. *But* this variable cannot be set to anything but + # "/lib" , because that name is hardcoded in the main executable + # and this variable controls both both the path AMC will check at + # runtime, AND the path where the actual modules will be stored at + # build-time. This has been reported upstream as + # https://project.auto-multiple-choice.net/issues/872 "TEXDIR=/tex/latex/" # what texlive.combine expects "TEXDOCDIR=/share/doc/texmf/" # TODO where to put this? "MAN1DIR=/share/man/man1" |