Skip to content
Snippets Groups Projects
Commit ecfa22a8 authored by fpamberger's avatar fpamberger
Browse files

Add typst packaging example

parent 862d7bda
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -345,7 +345,49 @@ in
$==>$ gigantic collection of nix code
== `nixpkgs` - Exampe of package
== `nixpkgs/pkgs/by-name/ty/typst/package.nix`
#columns(2,
[#text(size: 12pt,
```nix
rustPlatform.buildRustPackage rec {
pname = "typst";
version = "0.12.0";
src = fetchFromGitHub {
owner = "typst";
repo = "typst";
rev = "refs/tags/v${version}";
hash = "sha256-OfTMJ7ylVOJjL295W3Flj2upTiUQXmfkyDFSE1v8+a4=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"typst-dev-assets-0.12.0" = "sha256-YLxLuhpAUzktjyprZAhZ4GjcXEDUDdLtSzc5onzLuto=";
};
};
nativeBuildInputs = [
installShellFiles
pkg-config
];
/* omitted */
meta = {
changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";
description = "New markup-based typesetting system that is powerful and easy to learn";
homepage = "https://github.com/typst/typst";
license = lib.licenses.asl20;
mainProgram = "typst";
maintainers = with lib.maintainers; [
drupol
figsoda
kanashimia
];
};
}
```)]
)
== nixpkgs - `cache.nixos.org`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment