chore: format nix file
This commit is contained in:
parent
9f1f23e62b
commit
cb51cacf9a
2 changed files with 15 additions and 14 deletions
28
flake.nix
28
flake.nix
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs = {self, nixpkgs, ...}:
|
outputs = { self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
allSystems = [
|
allSystems = [
|
||||||
"x86_64-linux" # 64-bit Intel/AMD Linux
|
"x86_64-linux" # 64-bit Intel/AMD Linux
|
||||||
"aarch64-linux" # 64-bit ARM Linux
|
"aarch64-linux" # 64-bit ARM Linux
|
||||||
|
|
@ -14,15 +14,15 @@
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShell = forAllSystems ({ system, pkgs }:
|
devShell = forAllSystems ({ system, pkgs }:
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.rustup
|
pkgs.rustup
|
||||||
pkgs.wgo
|
pkgs.wgo
|
||||||
pkgs.cargo-flamegraph
|
pkgs.cargo-flamegraph
|
||||||
pkgs.cargo-udeps
|
pkgs.cargo-udeps
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ fn get_pixel(grids: &mut [grid::FlutGrid<u32>], canvas: u8, x: u16, y: u16) -> O
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn increment_counter() {
|
fn increment_counter() {
|
||||||
COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
|
COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue