System/modules/games.nix

28 lines
927 B
Nix
Raw Normal View History

2022-06-03 21:05:05 -04:00
{ pkgs, nixpkgs-unstable, ... }: {
2022-04-19 20:01:28 -04:00
environment.systemPackages =
let
2022-06-01 13:02:33 -04:00
# https://github.com/Admicos/minecraft-wayland
glfw-patched = pkgs.glfw-wayland.overrideAttrs (attrs: {
2022-06-01 13:02:33 -04:00
patches = attrs.patches ++ [
../patches/minecraft/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
../patches/minecraft/0004-wayland-fix-broken-opengl-screenshots-on-mutter.patch
];
2022-04-19 20:01:28 -04:00
});
2022-06-03 21:05:05 -04:00
stable-packages = with pkgs; [
# Dwarf fortress
(dwarf-fortress-packages.dwarf-fortress-full.override {
enableFPS = true;
})
# PolyMC minecraft stuff
polymc
glfw-patched
(pkgs.callPackage ../packages/blockbench/default.nix { })
2022-06-03 21:05:05 -04:00
];
unstable-packages = with nixpkgs-unstable.legacyPackages."${pkgs.system}"; [
# Packwiz for maintaing modpacks
packwiz
];
2022-04-19 20:01:28 -04:00
in
2022-06-03 21:05:05 -04:00
stable-packages ++ unstable-packages;
2022-01-28 00:15:33 -05:00
}