diff --git a/flake.nix b/flake.nix index 04de325..4881026 100644 --- a/flake.nix +++ b/flake.nix @@ -1,21 +1,22 @@ { description = "LaTeX Beamer Presentation for GPUL Schools: Software Libre"; inputs = { - nixpkgs.url = github:NixOS/nixpkgs/nixos-25.05; - flake-utils.url = github:numtide/flake-utils; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; + flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { - self, - nixpkgs, - flake-utils, - }: + outputs = + { + self, + nixpkgs, + flake-utils, + }: flake-utils.lib.eachDefaultSystem ( - system: let + system: + let pkgs = nixpkgs.legacyPackages.${system}; tex = pkgs.texlive.combine { - inherit - (pkgs.texlive) + inherit (pkgs.texlive) scheme-basic latex-bin latexmk @@ -30,13 +31,21 @@ ; }; # tex = pkgs.texliveFull; - in rec { + in + rec { packages = { document = pkgs.stdenvNoCC.mkDerivation rec { name = "latex-beamer-gpul-schools-software-libre"; src = self; - buildInputs = [pkgs.coreutils tex]; - phases = ["unpackPhase" "buildPhase" "installPhase"]; + buildInputs = [ + pkgs.coreutils + tex + ]; + phases = [ + "unpackPhase" + "buildPhase" + "installPhase" + ]; buildPhase = '' export PATH="${pkgs.lib.makeBinPath buildInputs}"; env TEXMFVAR=$(mktemp -d) \ @@ -54,7 +63,7 @@ defaultPackage = packages.document; devShells.default = pkgs.mkShell { - buildInputs = packages.document.buildInputs; + buildInputs = packages.document.buildInputs ++ (with pkgs; [ texlab ]); }; } ); diff --git a/logo-fsf.org.png b/img/logo-fsf.org.png similarity index 100% rename from logo-fsf.org.png rename to img/logo-fsf.org.png diff --git a/logo-gnu.png b/img/logo-gnu.png similarity index 100% rename from logo-gnu.png rename to img/logo-gnu.png diff --git a/logo-gpul.png b/img/logo-gpul.png similarity index 100% rename from logo-gpul.png rename to img/logo-gpul.png diff --git a/logo-osi.png b/img/logo-osi.png similarity index 100% rename from logo-osi.png rename to img/logo-osi.png diff --git a/tux.png b/img/tux.png similarity index 100% rename from tux.png rename to img/tux.png diff --git a/main.tex b/main.tex index 1d2b1a3..6b92537 100644 --- a/main.tex +++ b/main.tex @@ -19,7 +19,7 @@ \date{\today} -\logo{\includegraphics[height=1cm]{logo-gpul.png}} +\logo{\includegraphics[height=1cm]{img/logo-gpul.png}} \begin{document} @@ -43,7 +43,7 @@ \vspace{0.5em} \begin{center} - \includegraphics[width=0.7\linewidth]{logo-fsf.org} + \includegraphics[width=0.7\linewidth]{img/logo-fsf.org} \end{center} \end{frame} @@ -61,7 +61,7 @@ \vspace{0.5em} \begin{center} - \includegraphics[width=0.6\linewidth]{logo-osi.png} + \includegraphics[width=0.6\linewidth]{img/logo-osi.png} \end{center} \cite{gnu_open_source} @@ -85,7 +85,7 @@ \vspace{0.5em} \begin{center} - \includegraphics[width=0.2\linewidth]{tux.png} + \includegraphics[width=0.2\linewidth]{img/tux.png} \end{center} \end{frame} @@ -107,7 +107,7 @@ \vspace{0.5em} \begin{center} - \includegraphics[width=0.2\linewidth]{logo-gnu.png} + \includegraphics[width=0.2\linewidth]{img/logo-gnu.png} \end{center} \vspace{-2em} @@ -130,4 +130,4 @@ \end{frame} -\end{document} \ No newline at end of file +\end{document}