2022-06-01 23:53:46 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
dream2nix.url = "path:../..";
|
|
|
|
src.url = "github:BurntSushi/ripgrep/13.0.0";
|
|
|
|
src.flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inp: let
|
2022-06-05 14:14:20 +03:00
|
|
|
l = inp.dream2nix.inputs.nixpkgs.lib // builtins;
|
2022-06-01 23:53:46 +03:00
|
|
|
|
|
|
|
allPkgs =
|
|
|
|
l.map
|
2022-06-05 14:14:20 +03:00
|
|
|
(system: inp.dream2nix.inputs.nixpkgs.legacyPackages.${system})
|
2022-06-01 23:53:46 +03:00
|
|
|
["x86_64-linux" "aarch64-linux"];
|
|
|
|
|
|
|
|
initD2N = pkgs:
|
|
|
|
inp.dream2nix.lib.init {
|
|
|
|
inherit pkgs;
|
|
|
|
config.projectRoot = ./.;
|
|
|
|
};
|
|
|
|
|
|
|
|
makeOutputs = pkgs: let
|
|
|
|
outputs = (initD2N pkgs).makeOutputs {
|
|
|
|
source = inp.src;
|
|
|
|
settings = [
|
|
|
|
{
|
|
|
|
builder = "build-rust-package";
|
|
|
|
translator = "cargo-lock";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in rec {
|
|
|
|
packages.${pkgs.system} = outputs.packages;
|
|
|
|
checks.${pkgs.system} = {
|
|
|
|
inherit (outputs.packages) ripgrep;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
allOutputs = l.map makeOutputs allPkgs;
|
|
|
|
outputs = l.foldl' l.recursiveUpdate {} allOutputs;
|
|
|
|
in
|
|
|
|
outputs;
|
|
|
|
}
|