osuplusplus/flake.nix

35 lines
705 B
Nix
Raw Normal View History

2024-03-18 11:25:15 +01:00
{
2024-04-18 17:19:37 +02:00
description = "osu clone written in c++ using sfml";
2024-03-18 11:25:15 +01:00
2024-04-18 17:19:37 +02:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
2024-03-18 11:25:15 +01:00
2024-04-18 17:19:37 +02:00
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++";
2024-03-18 11:25:15 +01:00
2024-04-18 17:19:37 +02:00
nativeBuildInputs = with pkgs; [
gcc
gnumake
# for clang-format
clang-tools
];
2024-03-18 11:25:15 +01:00
2024-04-18 17:19:37 +02:00
buildInputs = with pkgs; [
sfml
];
};
}
);
};
2024-03-18 11:25:15 +01:00
}