Skip to content

Commit

Permalink
Add jj package (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy authored Jan 1, 2025
1 parent 4b7e855 commit 7ebb1fd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/jj/brioche.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions packages/jj/project.bri
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as std from "std";
import { gitCheckout } from "git";
import { cargoBuild } from "rust";
import openssl from "openssl";

export const project = {
name: "jj",
version: "0.24.0",
};

const source = gitCheckout(
Brioche.gitRef({
repository: "https://github.com/jj-vcs/jj.git",
ref: `v${project.version}`,
}),
);

export default function jj(): std.Recipe<std.Directory> {
return cargoBuild({
source,
path: "cli",
dependencies: [openssl()],
runnable: "bin/jj",
});
}

export function test() {
return std.runBash`
jj --version | tee "$BRIOCHE_OUTPUT"
`.dependencies(jj());
}

0 comments on commit 7ebb1fd

Please sign in to comment.