osuplusplus/flake.nix

30 lines
746 B
Nix

{
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 rec {
osuplusplus = import ./nix/shell.nix {inherit pkgs;};
default = osuplusplus;
}
);
packages = forEachSystem (
system: let
pkgs = pkgsForEach.${system};
in rec {
osuplusplus = import ./nix/default.nix {inherit (pkgs) lib stdenv sfml;};
default = osuplusplus;
}
);
};
}