initial commit

This commit is contained in:
Tim Schubert 2022-11-01 13:50:29 +01:00
commit f1b9082f4e
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
15 changed files with 498 additions and 0 deletions

40
tubslatex.nix Normal file
View file

@ -0,0 +1,40 @@
{ lib
, stdenvNoCC
, texlive
, unzip
, requireFile
, ...
}:
let
pname = "tubslatex";
version = "1.3.4";
tubslatexDownload = requireFile {
name = "${pname}_${version}.tds.zip";
sha256 = "18adp73l1iqn050ivzjmnp6rgpihkl1278x4ip93xjpicd7mrnlv";
url = "https://www.tu-braunschweig.de/latex-vorlagen";
};
in
stdenvNoCC.mkDerivation {
inherit version pname;
src = tubslatexDownload;
passthru.tlType = "run";
nativeBuildInputs = [ unzip texlive.combined.scheme-small ];
dontConfigure = true;
unpackPhase = ''
runHook preUnpack
unzip "$src"
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r * $out/
runHook postInstall
'';
meta = with lib; {
description = "TU Braunschweig Corporate Design";
maintainers = [ "dadada" ];
platforms = platforms.all;
license = licenses.unfree;
};
}