2023-06-15 01:41:21 +02:00
|
|
|
{
|
|
|
|
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
|
2023-06-15 22:41:31 +02:00
|
|
|
fetchFromMega
|
2023-06-15 21:26:19 +02:00
|
|
|
fetchFromMediafire;
|
2023-06-15 01:41:21 +02:00
|
|
|
|
|
|
|
pokemon = let
|
|
|
|
callPackage = newScope (erosanix.lib.x86_64-linux // {
|
|
|
|
wine = wineWowPackages.full;
|
2023-06-15 22:41:31 +02:00
|
|
|
wineArch = "win64";
|
2023-06-15 01:41:21 +02:00
|
|
|
inherit
|
|
|
|
fetchFromDrive
|
2023-06-15 22:41:31 +02:00
|
|
|
fetchFromMega
|
2023-06-15 21:26:19 +02:00
|
|
|
fetchFromMediafire;
|
2023-06-15 01:41:21 +02:00
|
|
|
});
|
|
|
|
in {
|
|
|
|
|
|
|
|
# mkWindowsApp resources:
|
|
|
|
# - https://github.com/emmanuelrosa/erosanix/tree/master/pkgs/mkwindowsapp
|
|
|
|
# - https://github.com/emmanuelrosa/sumatrapdf-nix/blob/master/sumatrapdf.nix
|
|
|
|
|
2023-06-15 22:41:31 +02:00
|
|
|
infinite-fusion = callPackage ./games/infinite-fusion.nix {
|
|
|
|
legacy-version = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
infinite-fusion-legacy = callPackage ./games/infinite-fusion.nix {
|
|
|
|
legacy-version = true;
|
|
|
|
wine = winePackages.full;
|
|
|
|
wineArch = "win32";
|
|
|
|
};
|
2023-06-15 21:26:19 +02:00
|
|
|
|
2023-06-15 01:41:21 +02:00
|
|
|
project-untamed = callPackage ./games/project-untamed.nix { };
|
|
|
|
|
2023-06-15 22:42:11 +02:00
|
|
|
clockwork = callPackage ./games/clockwork.nix { wine = winePackages.full; wineArch = "win32"; };
|
|
|
|
|
2023-06-15 01:41:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
2023-06-15 22:41:31 +02:00
|
|
|
fetchFromMega
|
2023-06-15 21:26:19 +02:00
|
|
|
fetchFromMediafire;
|
2023-06-15 01:41:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|