{ 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 ]; }