2022-05-29 22:42:47 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
dream2nix.url = "path:../..";
|
|
|
|
src.url = "github:BurntSushi/ripgrep/13.0.0";
|
|
|
|
src.flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
dream2nix,
|
|
|
|
src,
|
2022-06-01 23:53:46 +03:00
|
|
|
} @ inp:
|
|
|
|
(dream2nix.lib.makeFlakeOutputs {
|
2022-05-29 22:42:47 +03:00
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
config.projectRoot = ./.;
|
2022-08-15 16:34:24 +03:00
|
|
|
config.modules = [
|
|
|
|
(builtins.toFile "cargo-toml-new.nix" ''
|
|
|
|
{
|
|
|
|
translators.cargo-toml-new = {
|
|
|
|
imports = ["${inp.dream2nix}/src/subsystems/rust/translators/cargo-toml"];
|
|
|
|
name = "cargo-toml-new";
|
|
|
|
subsystem = "rust";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
'')
|
2022-09-25 22:54:05 +03:00
|
|
|
(builtins.toFile "brp-new.nix" ''
|
|
|
|
{
|
|
|
|
builders.brp-new = {
|
|
|
|
imports = ["${inp.dream2nix}/src/subsystems/rust/builders/build-rust-package"];
|
|
|
|
name = "brp-new";
|
|
|
|
subsystem = "rust";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
'')
|
2022-08-15 16:34:24 +03:00
|
|
|
];
|
2022-05-29 22:42:47 +03:00
|
|
|
config.extra = {
|
|
|
|
subsystems.rust = {
|
|
|
|
discoverers.default = "${inp.dream2nix}/src/subsystems/rust/discoverers/default";
|
|
|
|
};
|
|
|
|
fetchers.crates-io = "${inp.dream2nix}/src/fetchers/crates-io";
|
|
|
|
};
|
|
|
|
source = src;
|
|
|
|
settings = [
|
|
|
|
{
|
|
|
|
builder = "brp-new";
|
|
|
|
translator = "cargo-toml-new";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
})
|
|
|
|
// {
|
|
|
|
checks.x86_64-linux.ripgrep = self.packages.x86_64-linux.ripgrep;
|
|
|
|
};
|
|
|
|
}
|