Some polish
This commit is contained in:
parent
2e47030987
commit
3e27cb6b22
4 changed files with 39 additions and 7 deletions
|
@ -16,13 +16,41 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
|
||||
packages = {
|
||||
default = throw "put derivation information here";
|
||||
default = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "test";
|
||||
version = "0.1";
|
||||
src = ./src;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
tinymist
|
||||
typst
|
||||
fira
|
||||
orbitron
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
typst compile main.typ \
|
||||
--font-path="${pkgs.orbitron}/share/fonts:${pkgs.fira}/share/fonts" \
|
||||
--input nixPath=$out \
|
||||
--input author=Bob \
|
||||
--input title=fiets \
|
||||
"''${pname}.pdf"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp *.pdf $out/
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(throw "put packages here")
|
||||
tinymist
|
||||
typst
|
||||
fira
|
||||
orbitron
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue