From 34cce365b334bdc3db189967ca14af90a0a5f319 Mon Sep 17 00:00:00 2001 From: Millian Poquet <millian.poquet@inria.fr> Date: Thu, 26 Sep 2019 01:56:14 +0200 Subject: [PATCH] [nix] keep default.nix simple --- default.nix | 48 +++++++++++------------------------------------- 1 file changed, 11 insertions(+), 37 deletions(-) diff --git a/default.nix b/default.nix index 9ae0b32..0a94414 100644 --- a/default.nix +++ b/default.nix @@ -1,42 +1,16 @@ { pkgs ? import <nixpkgs> {} }: with pkgs; -let texlive = pkgs.texlive.combine { - inherit (pkgs.texlive) - everypage - scheme-full - xkeyval - times - courier - wrapfig - xcolor - booktabs - caption - siunitx - fixme - todo - tabulary - algorithms - algorithmicx - acmart - totpages - environ - trimspaces - ncctools - comment - dirtree ; - }; - inputs = [ texlive pkgs.dia rubber ninja ]; +let + texlive = pkgs.texlive.combined.scheme-minimal; in + stdenv.mkDerivation rec { + name = "slides"; + src = ./.; + buildInputs = [ texlive pkgs.dia rubber ninja ]; + buildPhase = "make"; -stdenv.mkDerivation rec { - - name="paper"; - src = ./.; - buildPhase = "make"; - - buildInputs = inputs; - installPhase = '' - mkdir $out - cp slides.pdf $out + installPhase = '' + mkdir $out + cp slides.pdf $out ''; -} + } -- GitLab