blob: bb705c5ce96aff1a01235f2578d0afd21777c4ab (
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.6.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-8YndEqhIESC3Cbe4klQfkVqesNFeZ2g1oRd1VoVrMnE=";
};
cargoHash = "sha256-62tBefXek6W01RfdPczXBuYhrLK+wG1YQ7va7FQmAhA=";
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";
};
}
|