From b912ff28ad9e21e190741b6311da9abb693fffe0 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Fri, 17 Nov 2023 13:16:50 +0100 Subject: [PATCH] Different output filename --- latex/flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latex/flake.nix b/latex/flake.nix index 0d281dd..cf7eb18 100644 --- a/latex/flake.nix +++ b/latex/flake.nix @@ -16,7 +16,7 @@ }); in { packages = rec { - document = pkgs.stdenvNoCC.mkDerivation rec { + document = pkgs.stdenvNoCC.mkDerivation rec { pname = throw "put document name here"; version = "0.0"; src = ./src; @@ -31,7 +31,7 @@ ''; installPhase = '' mkdir -p $out - cp ${texInput}.pdf $out/ + cp ${texInput}.pdf $out/${pname}.pdf ''; }; default = document;