Move tubslatex package to NUR repo

This commit is contained in:
Tim Schubert 2020-04-05 17:23:35 +02:00
parent e7340ffd7e
commit d0cd323c4c
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 9 additions and 27 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "nur-packages"]
path = nur-packages
url = git@github.com:dadada/nur-packages.git

View file

@ -66,7 +66,7 @@ in
unzip
anki
bluez-tools
texlive-tubs
texlive-tubslatex
openssl
] ++ (with unstable; [
python38Packages.managesieve

1
nur-packages Submodule

@ -0,0 +1 @@
Subproject commit b6c4f79c929e5bf73451a24aaf98468857e1430d

1
overlays/dadada.nix Symbolic link
View file

@ -0,0 +1 @@
../nur-packages/overlay.nix

View file

@ -1,11 +1,9 @@
self: super:
let
tubslatex = super.callPackage ../pkgs/tubslatex.nix {};
in {
{
# Based on https://gist.github.com/clefru/9ed1186bf0b76d27e0ad20cbd9966b87
texlive-tubs = super.lib.overrideDerivation (super.texlive.combine {
texlive-tubslatex = super.lib.overrideDerivation (super.texlive.combine {
inherit (super.texlive) scheme-full;
tubslatex.pkgs = [ tubslatex ];
tubslatex.pkgs = [ super.tubslatex ];
}) (oldAttrs: {
postBuild = ''
# Save the udpmap.cfg because texlive.combine removes it.

View file

@ -1,21 +0,0 @@
{
stdenv,
fetchzip,
pkgs,
lib,
...
}:
stdenv.mkDerivation rec {
src = fetchzip {
url = https://gitlab.ibr.cs.tu-bs.de/tubslatex/tubslatex/-/jobs/116760/artifacts/raw/builds/tubslatex.tds.zip;
sha256 = "0vvgwwkd8y7nk1lkda6zsnfnzmvgda1g59yawsknmw246y8nw8ln";
stripRoot = false;
};
installPhase = ''
mkdir -p $out
cp -r * $out/
'';
pname = "tubslatex";
name = pname;
tlType = "run";
}