Skip to content

Commit

Permalink
feat(rust-crane): expose the crane lib that is created from craneSour…
Browse files Browse the repository at this point in the history
…ce as a read-only option (#1074)
  • Loading branch information
yusdacra authored Nov 20, 2024
1 parent e118d69 commit 91bec8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/dream2nix/rust-crane/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ in {
cargo = l.mkOverride 1001 rustToolchain;
}
(l.mapAttrs (_: l.mkDefault) {
inherit crane;
craneSource = config.deps.fetchFromGitHub {
owner = "ipetkov";
repo = "crane";
Expand Down
5 changes: 5 additions & 0 deletions modules/dream2nix/rust-crane/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
t = l.types;
in {
options.deps = {
crane = l.mkOption {
type = t.attrs;
readOnly = true;
description = "The crane lib that was instantiated from `craneSource`";
};
craneSource = l.mkOption {
type = t.path;
description = "Source to use for crane functions";
Expand Down

0 comments on commit 91bec8a

Please sign in to comment.