mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
fix: fix extended examples
This commit is contained in:
parent
f1c89df1d9
commit
6871e9e560
13
examples/_d2n-extended-new-subsystem/discoverers.nix
Normal file
13
examples/_d2n-extended-new-subsystem/discoverers.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{dlib, ...}: {
|
||||
discoverers.default = {subsystem, ...}: {
|
||||
discover = {tree}: [
|
||||
(dlib.construct.discoveredProject {
|
||||
inherit subsystem;
|
||||
inherit (tree) relPath;
|
||||
name = "hello";
|
||||
translators = ["dummy"];
|
||||
subsystemInfo = {};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
{dlib, ...}: {
|
||||
subsystems.hello = {
|
||||
discoverers.default = {subsystem, ...}: {
|
||||
discover = {tree}: [
|
||||
(dlib.construct.discoveredProject {
|
||||
inherit subsystem;
|
||||
inherit (tree) relPath;
|
||||
name = "hello";
|
||||
translators = ["dummy"];
|
||||
subsystemInfo = {};
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -12,6 +12,7 @@
|
||||
config.projectRoot = ./.;
|
||||
config.extra = ./extra.nix;
|
||||
config.modules = [
|
||||
./discoverers.nix
|
||||
./translators.nix
|
||||
./builders.nix
|
||||
];
|
||||
|
@ -32,11 +32,17 @@
|
||||
};
|
||||
}
|
||||
'')
|
||||
(builtins.toFile "cargo-new.nix" ''
|
||||
{
|
||||
discoverers.cargo-new = {
|
||||
imports = ["${inp.dream2nix}/src/subsystems/rust/discoverers/cargo"];
|
||||
name = "cargo-new";
|
||||
subsystem = "rust";
|
||||
};
|
||||
}
|
||||
'')
|
||||
];
|
||||
config.extra = {
|
||||
subsystems.rust = {
|
||||
discoverers.default = "${inp.dream2nix}/src/subsystems/rust/discoverers/default";
|
||||
};
|
||||
fetchers.crates-io = "${inp.dream2nix}/src/fetchers/crates-io";
|
||||
};
|
||||
source = src;
|
||||
|
Loading…
Reference in New Issue
Block a user