about summary refs log tree commit diff stats
path: root/build/latex/letter/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'build/latex/letter/flake.nix')
-rw-r--r--build/latex/letter/flake.nix28
1 files changed, 27 insertions, 1 deletions
diff --git a/build/latex/letter/flake.nix b/build/latex/letter/flake.nix
index 4847a9c..6a21c68 100644
--- a/build/latex/letter/flake.nix
+++ b/build/latex/letter/flake.nix
@@ -18,6 +18,17 @@
         flake-utils.follows = "flake-utils";
       };
     };
+    lpm = {
+      url = "git+https://codeberg.org/bpeetz/lpm.git";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+        flake-compat.follows = "flake-compat";
+        flake-utils.follows = "flake-utils";
+        rust-overlay.follows = "rust-overlay";
+        crane.follows = "crane";
+        systems.follows = "systems";
+      };
+    };
 
     # inputs for following
     systems = {
@@ -33,6 +44,19 @@
         systems.follows = "systems";
       };
     };
+    crane = {
+      url = "github:ipetkov/crane";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+    rust-overlay = {
+      url = "github:oxalica/rust-overlay";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+        flake-utils.follows = "flake-utils";
+      };
+    };
   };
 
   outputs = {
@@ -40,6 +64,7 @@
     nixpkgs,
     flake-utils,
     treefmt-nix,
+    lpm,
     flake_version_update,
     ...
   }:
@@ -73,7 +98,7 @@
         '';
 
         installPhase = ''
-          install -D ./build/main.pdf "$out/%INIT_APPLICATION_NAME.pdf";
+          install -D "./build/%INIT_APPLICATION_NAME.pdf" "$out/%INIT_APPLICATION_NAME.pdf";
         '';
       };
     in {
@@ -91,6 +116,7 @@
           cocogitto
           reuse
           flake_version_update.packages."${system}".default
+          lpm.packages."${system}".default
           texlive
 
           zathura