t4ccer / nix-org-export

Export org files to pdf as nix outputs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix-org-export

Use nix-org-export to export org files to PDFs using (org-latex-export-to-pdf).

Usage

Using flakes

  • Ensure you have flakes enabled
  • Add github:t4ccer/nix-org-export to your inputs
  • Call exportOrgFor "your-system" ./src "path-to-org-file

Example

Example exposes README of your project in PDF as a flake output.

{
  description = "nix-org-export example";
  inputs.nix-org-export.url = "github:t4ccer/nix-org-export";
  outputs = { nix-org-export, ... }: {
    readmeExported = nix-org-export.exportOrgFor "x86_64-linux" ./. "README.org";
  };
}

License

Copyright (C) 2022 Tomasz Maciosowski (t4ccer)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Export org files to pdf as nix outputs

License:GNU General Public License v3.0


Languages

Language:Nix 100.0%