auto-multiple-choice: create pkgs fixpoint for texlive using mkDerivation

This commit is contained in:
Vincenzo Mantova 2023-03-11 20:57:10 +00:00
parent 7cf3bfe11c
commit a66723d4bf

View file

@ -23,14 +23,13 @@
, poppler , poppler
, auto-multiple-choice , auto-multiple-choice
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: rec {
pname = "auto-multiple-choice"; pname = "auto-multiple-choice";
version = "1.5.2"; version = "1.5.2";
src = fetchurl { src = fetchurl {
url = "https://download.auto-multiple-choice.net/${pname}_${version}_precomp.tar.gz"; url = "https://download.auto-multiple-choice.net/${pname}_${version}_precomp.tar.gz";
sha256 = "sha256-AjonJOooSe53Fww3QU6Dft95ojNqWrTuPul3nkIbctM="; sha256 = "sha256-AjonJOooSe53Fww3QU6Dft95ojNqWrTuPul3nkIbctM=";
}; };
tlType = "run";
# There's only the Makefile # There's only the Makefile
dontConfigure = true; dontConfigure = true;
@ -137,6 +136,11 @@ stdenv.mkDerivation rec {
XMLWriter XMLWriter
]); ]);
passthru = {
tlType = "run";
pkgs = [ finalAttrs.finalPackage ];
};
meta = with lib; { meta = with lib; {
description = "Create and manage multiple choice questionnaires with automated marking."; description = "Create and manage multiple choice questionnaires with automated marking.";
longDescription = '' longDescription = ''
@ -156,10 +160,7 @@ stdenv.mkDerivation rec {
auto-multiple-choice auto-multiple-choice
(texlive.combine { (texlive.combine {
inherit (pkgs.texlive) scheme-full; inherit (pkgs.texlive) scheme-full;
extra = inherit auto-multiple-choice;
{
pkgs = [ auto-multiple-choice ];
};
}) })
]; ];
</screen> </screen>
@ -172,4 +173,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.thblt ]; maintainers = [ maintainers.thblt ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })