Skip to content
Snippets Groups Projects
Commit f73ae787 authored by Millian Poquet's avatar Millian Poquet
Browse files

nix: basic setup

parent 8a118958
No related branches found
No related tags found
No related merge requests found
result
{ pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/22.05.tar.gz";
sha256 = "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik";
}) {}
}:
let
self = rec {
example = pkgs.stdenv.mkDerivation rec {
name = "report";
nativeBuildInputs = with pkgs; [
texlive.combined.scheme-full
pandoc
];
src = pkgs.lib.sourceByRegex ./. [
"irit-logo\.pdf"
".*\.md"
"latex\.template"
];
buildPhase = ''
pandoc -o example.pdf example.md --template latex.template
'';
installPhase = ''
mkdir -p $out
mv example.pdf $out/
'';
};
};
in
self
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment