diff options
author | stuebinm | 2023-03-22 20:11:12 +0100 |
---|---|---|
committer | stuebinm | 2023-03-22 20:12:30 +0100 |
commit | 4f387146f58fee9fd7aafabdb378019ea1786bd8 (patch) | |
tree | e7a68aee98e2a0a05f25fa494f6f71ded1c8c6cb /pkgs/typst.nix | |
parent | 7c4ce3a545fb74ab1eb35c02de9ace3c3dbae2ef (diff) |
package typst
Diffstat (limited to 'pkgs/typst.nix')
-rw-r--r-- | pkgs/typst.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/typst.nix b/pkgs/typst.nix new file mode 100644 index 0000000..0290899 --- /dev/null +++ b/pkgs/typst.nix @@ -0,0 +1,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 ]; +} |