Commit Graph

17 Commits

Author SHA1 Message Date
Ryan Burns
e3c4fb0018
Merge pull request #281217 from wentasah/amc-fix-lib
auto-multiple-choice: use absolute paths instead of "portable" strategy
2024-06-21 02:52:37 -07:00
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Michal Sojka
b94b15151a auto-multiple-choice: add itself to PATH in the wrapper
auto-multiple-choice (the GUI) needs to run subcommands of itself,
e.g., `auto-multiple-choice prepare ...` to work correctly. Until now,
for this to work, it was necessary to install auto-multiple-choice to
$PATH. Running it via e.g. `nix run` was not possible.

This commit changes that. It enables not only using `nix run`, but
also having multiple working AMC versions installed simultaneously.
2024-01-16 22:08:07 +01:00
Michal Sojka
9fb55f492c auto-multiple-choice: use absolute paths instead of "portable" strategy
Currently, auto-multiple-choice from nixpkgs doesn't work on systems with
/lib directory. Running auto-multiple-choice there fails with:

    Unknown action gui at /nix/store/n3cyw5ngp0v52rny9gr6z35vslh5d4vx-auto-multiple-choice-1.6.0/bin/.auto-multiple-choice-wrapped line 94.

This happens on non-NixOS systems as well as on NixOS with e.g.
nix-ld [1] enabled.

The reason is documented in the Nix expression and the problem is
reported upstream at https://project.auto-multiple-choice.net/issues/872.
However, the problem can be worked around without requiring upstream
changes, as shown in this commit. We stop using the "portable
distribution", which tries to detect the base directory at run time, and
instead hardcode all paths as absolute at build time.

[1] https://github.com/Mic92/nix-ld
2024-01-15 21:39:22 +01:00
Thibault Polge
b9f2512891
auto-multiple-choice: 1.5.2 -> 1.6.0 2023-09-14 12:15:22 +02:00
Artturin
9999bf7a21 treewide: gobject-introspection from buildInputs to nativeBuildInputs
gobject-introspection should be in nativeBuildInputs for cross to work
properly (so propagations and hook work properly)
2023-06-28 22:33:40 +03:00
Vincenzo Mantova
a66723d4bf auto-multiple-choice: create pkgs fixpoint for texlive using mkDerivation 2023-04-02 12:58:11 +01:00
Thibault Polge
e69c7f7814
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.
2023-02-15 18:56:50 +01:00
Thibault Polge
a8e609a399
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.
2023-02-06 14:10:03 +01:00
Weijia Wang
f16bbb58e1 auto-multiple-choice: fix build on darwin 2022-11-06 14:01:33 +01:00
Stig
196873f601
Merge pull request #155116 from wentasah/amc-add-oodoc
auto-multiple-choice: add OpenOfficeOODoc perl module as dependency
2022-01-27 17:37:02 +01:00
Michal Sojka
960ef9fe03 auto-multiple-choice: add OpenOfficeOODoc as dependency
Without this, AMC cannot export the results to OpenOffice. When one
presses "Reports->OpenOffice->Export", a dialog appears saying that
OpenOffice::OODoc perl module is not installed.

We switch to using makeFullPerlPath to make dependencies of
OpenOfficeOODoc also available. Without this, export complains about
missing XMLTwig.
2022-01-16 16:06:47 +01:00
Michal Sojka
3c2dc29a04 auto-multiple-choice: Fix TEXINPUTS
Without this change, LaTeX run during "Update documents" (AMC-prepare)
phase complains about not finding automultiplechoice.sty. TEXINPUTS
should match TEXDIR value specified in makeFlags.
2022-01-15 14:14:16 +01:00
R. Ryantm
f075c1c970 auto-multiple-choice: 1.5.1 -> 1.5.2 2021-12-11 22:11:56 +00:00
Thibault Polge
5b3e4e5408
auto-multiple-choice: init at 1.5.1 2021-10-28 19:17:55 +02:00