automatically run rust tests
This commit is contained in:
parent
b5ee7a7bc8
commit
4d42ee02e7
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -57,13 +57,15 @@
|
||||||
gdb
|
gdb
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
packages = {
|
packages = pkgs.lib.mapAttrs (_: v: v {}) rustPkgs.workspace;
|
||||||
rust-template = rustPkgs.workspace.rust-template {};
|
|
||||||
};
|
|
||||||
nixosModules.default = import ./nixos {
|
nixosModules.default = import ./nixos {
|
||||||
inherit inputs system;
|
inherit inputs system;
|
||||||
};
|
};
|
||||||
hydraJobs = packages;
|
checks = pkgs.lib.mapAttrs (_: v: pkgs.rustBuilder.runTests v {}) rustPkgs.workspace;
|
||||||
|
hydraJobs = {
|
||||||
|
inherit packages checks;
|
||||||
|
};
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
# Trick renovate into working: "github:NixOS/nixpkgs/nixpkgs-unstable"
|
# Trick renovate into working: "github:NixOS/nixpkgs/nixpkgs-unstable"
|
||||||
|
|
Loading…
Reference in a new issue