Skip to content

Commit

Permalink
Add rules_nixpkgs_nodejs version 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Jul 12, 2024
1 parent 083b7d4 commit 316564f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/rules_nixpkgs_nodejs/0.12.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module(
name = "rules_nixpkgs_nodejs",
version = "0.12.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.12.0")
bazel_dep(name = "platforms", version = "0.0.4")
bazel_dep(name = "rules_nodejs", version = "5.5.3")
bazel_dep(name = "bazel_skylib", version = "1.0.3")

nix_repo = use_extension("@rules_nixpkgs_core//extensions:repository.bzl", "nix_repo")
nix_repo.default(name = "nixpkgs")
use_repo(nix_repo, "nixpkgs")

nix_nodejs = use_extension("//extensions:toolchain.bzl", "nix_nodejs")
use_repo(nix_nodejs, "nixpkgs_nodejs_toolchains")
register_toolchains("@nixpkgs_nodejs_toolchains//:all")
18 changes: 18 additions & 0 deletions modules/rules_nixpkgs_nodejs/0.12.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
# XXX not fully supported yet
#- macos_arm64
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@rules_nixpkgs_nodejs//:nodejs'
- '@rules_nixpkgs_nodejs//extensions:toolchain'
5 changes: 5 additions & 0 deletions modules/rules_nixpkgs_nodejs/0.12.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/tweag/rules_nixpkgs/releases/download/v0.12.0/rules_nixpkgs-0.12.0.tar.gz",
"integrity": "sha256-GtsE3AQWkV/vQndX9CcsT32s7+zu78UPaDrsf36beHo=",
"strip_prefix": "rules_nixpkgs-0.12.0/toolchains/nodejs"
}
22 changes: 22 additions & 0 deletions modules/rules_nixpkgs_nodejs/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"homepage": "https://nix-bazel.build",
"maintainers": [
{
"email": "[email protected] ",
"github": "benradf",
"name": "Benjamin Radford"
},
{
"email": "[email protected]",
"github": "aherrmann",
"name": "Andreas Herrmann"
}
],
"repository": [
"github:tweag/rules_nixpkgs"
],
"versions": [
"0.12.0"
],
"yanked_versions": {}
}

0 comments on commit 316564f

Please sign in to comment.