This commit is contained in:
Marcin Kulik
2025-05-05 21:36:33 +02:00
parent ee074c44d1
commit 1a673358a7
2 changed files with 54 additions and 45 deletions

View File

@@ -11,8 +11,8 @@
(makeRustPlatform {
cargo = rust;
rustc = rust;
})
.buildRustPackage {
}).buildRustPackage
{
pname = packageToml.name;
inherit (packageToml) version;

View File

@@ -7,21 +7,30 @@
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ {
outputs =
inputs@{
flake-parts,
rust-overlay,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
perSystem = {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{
self',
pkgs,
system,
...
}: let
}:
let
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
in {
in
{
formatter = pkgs.alejandra;
_module.args = {