[Assignment-7] Repair Flake
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 1m0s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 31s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 9s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 9s
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 1m0s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 31s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 9s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 9s
This commit is contained in:
parent
7e62822d0c
commit
cd43a6744a
1 changed files with 26 additions and 29 deletions
55
flake.nix
55
flake.nix
|
@ -16,7 +16,7 @@
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
] (system: function {
|
] (system: function {
|
||||||
inherit system;
|
inherit system;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
||||||
});
|
});
|
||||||
|
|
||||||
forAllAssignments = function:
|
forAllAssignments = function:
|
||||||
|
@ -28,34 +28,32 @@
|
||||||
|
|
||||||
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
||||||
version = builtins.substring 0 8 lastModifiedDate;
|
version = builtins.substring 0 8 lastModifiedDate;
|
||||||
|
|
||||||
nixpkgsFor = system: import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
|
||||||
in rec {
|
in rec {
|
||||||
packages = forAllSystems({system, pkgs}: forAllAssignments(assignment: let
|
packages =
|
||||||
tex = texPackages pkgs;
|
forAllSystems({system, pkgs}: forAllAssignments(assignment: let
|
||||||
document = pkgs.stdenvNoCC.mkDerivation rec {
|
tex = texPackages pkgs;
|
||||||
name = assignment;
|
document = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
src = self;
|
name = assignment;
|
||||||
buildInputs = [ pkgs.coreutils tex ];
|
src = self;
|
||||||
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
buildInputs = [ pkgs.coreutils tex ];
|
||||||
buildPhase = ''
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
||||||
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
buildPhase = ''
|
||||||
mkdir -p .cache/texmf-var
|
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
||||||
cd "./${assignment}"
|
mkdir -p .cache/texmf-var
|
||||||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
cd "./${assignment}"
|
||||||
latexmk -interaction=nonstopmode -pdf -lualatex \
|
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||||
"./abgabe.tex"
|
latexmk -interaction=nonstopmode -pdf -lualatex \
|
||||||
'';
|
"./abgabe.tex"
|
||||||
installPhase = ''
|
'';
|
||||||
mkdir -p $out
|
installPhase = ''
|
||||||
cp *.pdf $out/
|
mkdir -p $out
|
||||||
'';
|
cp *.pdf $out/
|
||||||
};
|
'';
|
||||||
in document) // {
|
};
|
||||||
default = packages.${system}.${pkgs.lib.last assignments};
|
in document) // {
|
||||||
}) // {
|
default = packages.${system}.${pkgs.lib.last assignments};
|
||||||
"x86_64-linux"."Assignment 7" = (nixpkgsFor "x86_64-linux").signatureProxy;
|
"Assignment 7" = pkgs.signatureProxy;
|
||||||
};
|
});
|
||||||
|
|
||||||
devShells = forAllSystems({pkgs, ...}: let
|
devShells = forAllSystems({pkgs, ...}: let
|
||||||
tex = texPackages pkgs;
|
tex = texPackages pkgs;
|
||||||
|
@ -98,7 +96,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hydraJobs = packages;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue