fangame-flake/flake.nix

59 lines
1.5 KiB
Nix

{
description = "A flake for running pokemon fangames, often via wine";
inputs.erosanix.url = "github:emmanuelrosa/erosanix";
inputs.erosanix.inputs.nixpkgs.follows = "nixpkgs";
outputs = {
self,
nixpkgs,
erosanix,
...
} @ inputs:
{
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
badown = callPackage ./pkgs/badown.nix {};
mediafire-dl = python3Packages.callPackage ./pkgs/mediafire-dl.nix {};
inherit (callPackage ./pkgs/fetchers.nix { inherit badown mediafire-dl; })
fetchFromDrive
fetchFromMediafire;
pokemon = let
callPackage = newScope (erosanix.lib.x86_64-linux // {
wine = wineWowPackages.full;
inherit
fetchFromDrive
fetchFromMediafire;
});
in {
# mkWindowsApp resources:
# - https://github.com/emmanuelrosa/erosanix/tree/master/pkgs/mkwindowsapp
# - https://github.com/emmanuelrosa/sumatrapdf-nix/blob/master/sumatrapdf.nix
infinite-fusion = callPackage ./games/infinite-fusion.nix { };
project-untamed = callPackage ./games/project-untamed.nix { };
};
};
# garbage-collect
apps.x86_64-linux.gc = {
type = "app";
program = "${erosanix.packages.x86_64-linux.mkwindowsapp-tools}/bin/mkwindows-tools-gc";
};
lib.x86_64-linux = {
inherit (self.packages.x86_64-linux)
fetchFromDrive
fetchFromMediafire;
};
};
}