mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
nixfmt
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
(makeRustPlatform {
|
||||
cargo = rust;
|
||||
rustc = rust;
|
||||
})
|
||||
.buildRustPackage {
|
||||
}).buildRustPackage
|
||||
{
|
||||
pname = packageToml.name;
|
||||
inherit (packageToml) version;
|
||||
|
||||
|
||||
19
flake.nix
19
flake.nix
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user