-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This module should be used with bzlmod to install nix based toolchains. This way the main rules_haskell module does not depend on rules_nixpkgs.
- Loading branch information
Showing
11 changed files
with
466 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ tutorial | |
haskell/asterius/npm/node_modules | ||
registry | ||
rules_haskell_tests | ||
rules_haskell_nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/bazel-* | ||
/rules_haskell_tests/bazel-* | ||
/rules_haskell_nix/bazel-* | ||
.bazelrc.local | ||
*.swp | ||
*.swo | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../rules_haskell_nix/nixpkgs.bzl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import %workspace%/../.bazelrc.common | ||
import %workspace%/.bazelrc.bzlmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
common:bzlmod --experimental_enable_bzlmod | ||
common:bzlmod --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module( | ||
name = "rules_haskell_nix", | ||
version = "0.16", | ||
) | ||
|
||
bazel_dep( | ||
name = "rules_haskell", | ||
version = "0.16", | ||
) | ||
|
||
bazel_dep( | ||
name = "rules_nixpkgs_core", | ||
version = "0.9.0", | ||
) | ||
|
||
bazel_dep( | ||
name = "rules_nixpkgs_posix", | ||
version = "0.9.0", | ||
) | ||
|
||
bazel_dep( | ||
name = "platforms", | ||
version = "0.0.6", | ||
) | ||
|
||
non_module_deps = use_extension("//:non_module_deps.bzl", "non_module_deps") | ||
|
||
use_repo(non_module_deps, "os_info") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
With bzlmod, the [nix functionalities](https://api.haskell.build/haskell/nixpkgs.html) provided by rules_haskell must be | ||
accessed via `@rules_haskell_nix//:nixpkgs.bzl`. | ||
|
||
This way the main `rules_haskell` module does not have to depend on | ||
`rules_nixpkgs` when we do not intend to use nix toolchains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# This WORKSPACE file is empty because the folder is only used as a repository with bzlmod |
Oops, something went wrong.