Skip to content

Commit

Permalink
Unify package recipes (#34)
Browse files Browse the repository at this point in the history
* fix: Update URLs in jq and nodejs packages to use the variable project.version

Signed-off-by: jaudiger <[email protected]>

* chore: Remove a duplicate withRunnablelink method in OpenSSL package

Signed-off-by: jaudiger <[email protected]>

---------

Signed-off-by: jaudiger <[email protected]>
  • Loading branch information
jaudiger authored Jul 2, 2024
1 parent a723176 commit 8b3e014
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jq/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const project = {

const source = std
.download({
url: `https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-${project.version}.tar.gz`,
url: `https://github.com/jqlang/jq/releases/download/jq-${project.version}/jq-${project.version}.tar.gz`,
hash: std.sha256Hash(
"478c9ca129fd2e3443fe27314b455e211e0d8c60bc8ff7df703873deeee580c2",
),
Expand Down
2 changes: 1 addition & 1 deletion packages/nodejs/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const project = {
function nodejs(): std.Recipe<std.Directory> {
let node = std
.download({
url: "https://nodejs.org/dist/v20.14.0/node-v20.14.0-linux-x64.tar.xz",
url: `https://nodejs.org/dist/v${project.version}/node-v${project.version}-linux-x64.tar.xz`,
hash: std.sha256Hash(
"fedf8fa73b6f51c4ffcc5da8f86cd1ed381bc9dceae0829832c7d683a78b8e36",
),
Expand Down
1 change: 0 additions & 1 deletion packages/openssl/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function (): std.Recipe<std.Directory> {
.workDir(source)
.toDirectory();

openssl = std.withRunnableLink(openssl, "bin/openssl");
openssl = std.setEnv(openssl, {
LIBRARY_PATH: { path: "lib" },
CPATH: { path: "include" },
Expand Down

0 comments on commit 8b3e014

Please sign in to comment.