format flake with alejandra
This commit is contained in:
parent
5c01e7157f
commit
8f574a8d39
1 changed files with 28 additions and 31 deletions
59
flake.nix
59
flake.nix
|
@ -1,37 +1,34 @@
|
|||
{
|
||||
description = "osu clone written in c++ using sfml";
|
||||
description = "osu clone written in c++ using sfml";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
...
|
||||
}: let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in {
|
||||
devShells = forEachSystem (system:
|
||||
let
|
||||
pkgs = pkgsForEach.${system};
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
name = "osu++";
|
||||
outputs = {nixpkgs, ...}: let
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in {
|
||||
devShells = forEachSystem (
|
||||
system: let
|
||||
pkgs = pkgsForEach.${system};
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
name = "osu++";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
gnumake
|
||||
# for clang-format
|
||||
clang-tools
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
gnumake
|
||||
# for clang-format
|
||||
clang-tools
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
sfml
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
buildInputs = with pkgs; [
|
||||
sfml
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue