diff --git a/packages/jujutsu/brioche.lock b/packages/jujutsu/brioche.lock new file mode 100644 index 0000000..18a1e41 --- /dev/null +++ b/packages/jujutsu/brioche.lock @@ -0,0 +1,3 @@ +{ + "dependencies": {} +} diff --git a/packages/jujutsu/project.bri b/packages/jujutsu/project.bri new file mode 100644 index 0000000..c776118 --- /dev/null +++ b/packages/jujutsu/project.bri @@ -0,0 +1,27 @@ +import * as std from "std"; +import openssl from "openssl"; +import { cargoBuild } from "rust"; + +export const project = { + name: "jujutsu", + version: "0.19.0", +}; + +const source = std + .download({ + url: `https://github.com/martinvonz/jj/archive/refs/tags/v${project.version}.tar.gz`, + hash: std.sha256Hash( + "d0b9db21894e65ec80fd7999f99023f1e65d15fa16b4ec76881247d9cd56dc55", + ), + }) + .unarchive("tar", "gzip") + .peel(); + +export default () => { + return cargoBuild({ + source, + runnable: "bin/jj", + path: "cli", + dependencies: [openssl()], + }); +};