Fix nix flake for nix build usage
This commit is contained in:
parent
0dee1aad7d
commit
615b07d412
1 changed files with 61 additions and 3 deletions
64
flake.nix
64
flake.nix
|
|
@ -37,7 +37,7 @@
|
|||
fontPaths = [
|
||||
# Add paths to fonts here
|
||||
# "${pkgs.roboto}/share/fonts/truetype"
|
||||
"template/resources"
|
||||
"./template/resources"
|
||||
];
|
||||
|
||||
virtualPaths = [
|
||||
|
|
@ -46,21 +46,79 @@
|
|||
# dest = "icons";
|
||||
# src = "${inputs.font-awesome}/svgs/regular";
|
||||
# }
|
||||
{
|
||||
dest = "./graphics/";
|
||||
src = ./graphics;
|
||||
}
|
||||
{
|
||||
dest = "./bibliography.bib";
|
||||
src = ./bibliography.bib;
|
||||
}
|
||||
{
|
||||
dest = "./template/";
|
||||
src = ./template;
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
};
|
||||
|
||||
unstable_typstPackages = [
|
||||
{
|
||||
name = "glossarium";
|
||||
version= "0.5.6";
|
||||
hash = "sha256-kCU2Kyz9Ywtl9IxIgyUDsHIAbIpx2HL+YV2oMd0Be+Q=";
|
||||
}
|
||||
{
|
||||
name = "cetz-plot";
|
||||
version = "0.1.1";
|
||||
hash= "sha256-w5n7gCT6gDtxMvYjDhrwrPjT0b2M69whEUDByjTYDtQ=";
|
||||
}
|
||||
|
||||
{
|
||||
name = "cetz";
|
||||
version = "0.3.4";
|
||||
hash = "sha256-5w3UYRUSdi4hCvAjrp9HslzrUw7BhgDdeCiDRHGvqd4=";
|
||||
}
|
||||
{
|
||||
name = "cetz";
|
||||
version = "0.3.2";
|
||||
hash = "sha256-3Abz+31Y61rZUnnKlXayqIsEYEOaD47BQPUMwm0i0xA=";
|
||||
}
|
||||
{
|
||||
name = "oxifmt";
|
||||
version = "0.2.1";
|
||||
hash = "sha256-8PNPa9TGFybMZ1uuJwb5ET0WGIInmIgg8h24BmdfxlU=";
|
||||
}
|
||||
{
|
||||
name = "codly";
|
||||
version = "1.3.0";
|
||||
hash = "sha256-WcqvySmSYpWW+TmZT7TgPFtbEHA+bP5ggKPll0B8fHk=";
|
||||
}
|
||||
{
|
||||
name = "codly-languages";
|
||||
version = "0.1.1";
|
||||
hash= "sha256-TSp3unFhn3NSaWhWYZb/i3rD4OolbNZNTdQeBxJ4Jfs=";
|
||||
}
|
||||
{
|
||||
name = "fletcher";
|
||||
version = "0.5.8";
|
||||
hash = "sha256-kKVp5WN/EbHEz2GCTkr8i8DRiAdqlr4R7EW6drElgWk=";
|
||||
}
|
||||
];
|
||||
|
||||
# Compile a Typst project, *without* copying the result
|
||||
# to the current directory
|
||||
build-drv = typixLib.buildTypstProject (commonArgs
|
||||
// {
|
||||
inherit src;
|
||||
inherit src unstable_typstPackages;
|
||||
});
|
||||
|
||||
# Compile a Typst project, and then copy the result
|
||||
# to the current directory
|
||||
build-script = typixLib.buildTypstProjectLocal (commonArgs
|
||||
// {
|
||||
inherit src;
|
||||
inherit src unstable_typstPackages;
|
||||
});
|
||||
|
||||
# Watch a project and recompile on changes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue