Skip to content

Commit

Permalink
Add pstack package (#145)
Browse files Browse the repository at this point in the history
* Add `pstack` package

* Clean up code in `pstack` package
  • Loading branch information
kylewlacy authored Dec 2, 2024
1 parent f95a3dc commit 6e4b7f8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/pstack/brioche.lock

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

33 changes: 33 additions & 0 deletions packages/pstack/project.bri
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as std from "std";
import { cmakeBuild } from "cmake";
import { gitCheckout } from "git";

export const project = {
name: "pstack",
version: "2.8.3",
};

const gitRef = Brioche.gitRef({
repository: "https://github.com/peadar/pstack.git",
ref: `v${project.version}`,
});

const source = gitCheckout(gitRef);

export default async function pstack(): Promise<std.Recipe<std.Directory>> {
return cmakeBuild({
source,
config: "RelWithDebInfo",
dependencies: [std.toolchain()],
set: {
VERSION_TAG: (await gitRef).commit,
},
runnable: "bin/pstack",
});
}

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

0 comments on commit 6e4b7f8

Please sign in to comment.