blob: 029089908619339eb2651c120d774af9567a6272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ craneLib, fetchFromGitHub, lib, git }:
craneLib.buildPackage rec {
pname = "typst-cli";
version = "22-03-21-2";
cargoExtraArgs = "-p typst-cli";
src = fetchFromGitHub {
owner = "typst";
repo = "typst";
sha256 = "sha256-JvVuTOnonHWDkT2MSQUVUuL23dS7fRDzQhqLpHE9pZw=";
rev = version;
leaveDotGit = true;
};
# the build.rs script wants a version hash from git.
buildInputs = [ git ];
}
|