mirror of
https://github.com/asciinema/asciinema.git
synced 2026-05-18 05:04:50 +02:00
nixfmt
This commit is contained in:
65
flake.nix
65
flake.nix
@@ -7,36 +7,45 @@
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
outputs = inputs @ {
|
||||
flake-parts,
|
||||
rust-overlay,
|
||||
...
|
||||
}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
||||
perSystem = {
|
||||
self',
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
|
||||
in {
|
||||
formatter = pkgs.alejandra;
|
||||
outputs =
|
||||
inputs@{
|
||||
flake-parts,
|
||||
rust-overlay,
|
||||
...
|
||||
}:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
perSystem =
|
||||
{
|
||||
self',
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
|
||||
in
|
||||
{
|
||||
formatter = pkgs.alejandra;
|
||||
|
||||
_module.args = {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [(import rust-overlay)];
|
||||
_module.args = {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ (import rust-overlay) ];
|
||||
};
|
||||
};
|
||||
|
||||
devShells = pkgs.callPackages ./shell.nix { inherit pkgs packageToml self'; };
|
||||
|
||||
packages.default = pkgs.callPackage ./default.nix {
|
||||
inherit packageToml;
|
||||
rust = pkgs.rust-bin.stable.latest.minimal;
|
||||
};
|
||||
};
|
||||
|
||||
devShells = pkgs.callPackages ./shell.nix {inherit pkgs packageToml self';};
|
||||
|
||||
packages.default = pkgs.callPackage ./default.nix {
|
||||
inherit packageToml;
|
||||
rust = pkgs.rust-bin.stable.latest.minimal;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user