osuplusplus/flake.nix

38 lines
919 B
Nix
Raw Normal View History

2024-03-18 11:25:15 +01:00
{
description = "osu clone written in c++ using sfml";
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++";
nativeBuildInputs = with pkgs; [
gcc
gnumake
# for clang-format
clang-tools
];
buildInputs = with pkgs; [
sfml
];
};
}
);
};
}