initial commit
This commit is contained in:
commit
f1b9082f4e
15 changed files with 498 additions and 0 deletions
40
tubslatex.nix
Normal file
40
tubslatex.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue