osuplusplus/flake.nix

31 lines
761 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 = {
2024-07-16 09:13:50 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-04-18 17:19:37 +02:00
};
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 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;
2024-04-18 17:19:37 +02:00
}
);
};
2024-03-18 11:25:15 +01:00
}