osuplusplus/flake.nix

31 lines
737 B
Nix
Raw Permalink 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 = pkgs.callPackage ./nix/shell.nix {};
default = osuplusplus;
}
);
packages = forEachSystem (
system: let
pkgs = pkgsForEach.${system};
in rec {
osuplusplus = pkgs.callPackage ./nix/default.nix {};
default = osuplusplus;
2024-04-18 17:19:37 +02:00
}
);
};
2024-03-18 11:25:15 +01:00
}