style: reformat flake.nix using nixfmt-rfc-style
This commit is contained in:
parent
6fc7fd2baf
commit
57eb827469
1 changed files with 24 additions and 4 deletions
28
flake.nix
28
flake.nix
|
|
@ -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 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue