style: reformat flake.nix using nixfmt-rfc-style

This commit is contained in:
Dasha Mukhina 2024-09-04 18:27:23 +04:00 committed by Victoria Brekenfeld
parent 6fc7fd2baf
commit 57eb827469

View file

@ -16,11 +16,29 @@
nix-filter.url = "github:numtide/nix-filter";
};
outputs = inputs@{ self, nixpkgs, parts, crane, rust, nix-filter, ... }:
outputs =
inputs@{
self,
nixpkgs,
parts,
crane,
rust,
nix-filter,
...
}:
parts.lib.mkFlake { inherit inputs; } {
systems = [ "aarch64-linux" "x86_64-linux" ];
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem = { self', lib, system, ... }:
perSystem =
{
self',
lib,
system,
...
}:
let
pkgs = nixpkgs.legacyPackages.${system}.extend rust.overlays.default;
rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
@ -77,7 +95,9 @@
packages.default = cosmic-comp;
devShells.default = craneLib.devShell {
LD_LIBRARY_PATH = lib.makeLibraryPath (__concatMap (d: d.runtimeDependencies) (__attrValues self'.checks));
LD_LIBRARY_PATH = lib.makeLibraryPath (
__concatMap (d: d.runtimeDependencies) (__attrValues self'.checks)
);
# include build inputs
inputsFrom = [ cosmic-comp ];