blob: 8968adbb5e1bc6f1019915be0c6ed099dc991957 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, rustPlatform
, fetchCrate
, stdenv
, darwin
, makeWrapper
, typst
}:
rustPlatform.buildRustPackage rec {
pname = "typst-live";
version = "0.7.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-9GhrWhT0mYU2OOeoHGd5XY7BKO/S7cKTnURXi9dF+IU=";
};
cargoHash = "sha256-KGwmTXkY2nv5oWwjs5ZLz6u3bJ7YWJQPqOqJJNxKDkM=";
nativeBuildInputs = [
makeWrapper
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
postInstall = ''
wrapProgram $out/bin/typst-live \
--suffix PATH : ${lib.makeBinPath [ typst ]}
'';
meta = with lib; {
description = "Hot reloading for your typst files";
homepage = "https://github.com/ItsEthra/typst-live";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "typst-live";
};
}
|