parent
9164da55a6
commit
eeddc85c71
1
.envrc
1
.envrc
|
@ -1,2 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export NIX_CONFIG='builders = '
|
export NIX_CONFIG='builders = '
|
||||||
|
export NIXPKGS_ALLOW_UNFREE=1
|
||||||
|
|
73
flake.nix
73
flake.nix
|
@ -10,65 +10,66 @@
|
||||||
erosanix,
|
erosanix,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
{
|
let
|
||||||
|
systems = nixpkgs.lib.systems.flakeExposed;
|
||||||
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f rec {
|
||||||
|
inherit system;
|
||||||
badown = callPackage ./pkgs/badown.nix {};
|
inherit (nixpkgs.legacyPackages.${system}) pkgs lib;
|
||||||
mediafire-dl = python3Packages.callPackage ./pkgs/mediafire-dl.nix {};
|
|
||||||
|
|
||||||
inherit (callPackage ./pkgs/fetchers.nix { inherit badown mediafire-dl; })
|
|
||||||
fetchFromDrive
|
|
||||||
fetchFromMega
|
|
||||||
fetchFromMediafire;
|
|
||||||
|
|
||||||
pokemon = let
|
|
||||||
callPackage = newScope (erosanix.lib.x86_64-linux // {
|
|
||||||
wine = wineWowPackages.full;
|
|
||||||
wineArch = "win64";
|
|
||||||
inherit
|
|
||||||
fetchFromDrive
|
|
||||||
fetchFromMega
|
|
||||||
fetchFromMediafire;
|
|
||||||
});
|
});
|
||||||
in {
|
in nixpkgs.lib.recursiveUpdate {
|
||||||
|
|
||||||
|
lib = forAllSystems ({ pkgs, system, ... }: pkgs.callPackage ./pkgs/fetchers.nix {
|
||||||
|
inherit (self.packages.${system}) badown mediafire-dl;
|
||||||
|
});
|
||||||
|
|
||||||
|
packages = forAllSystems ({ pkgs, ... }: {
|
||||||
|
badown = pkgs.callPackage ./pkgs/badown.nix {};
|
||||||
|
mediafire-dl = pkgs.python3Packages.callPackage ./pkgs/mediafire-dl.nix {};
|
||||||
|
});
|
||||||
|
|
||||||
|
}{
|
||||||
# mkWindowsApp resources:
|
# mkWindowsApp resources:
|
||||||
# - https://github.com/emmanuelrosa/erosanix/tree/master/pkgs/mkwindowsapp
|
# - https://github.com/emmanuelrosa/erosanix/tree/master/pkgs/mkwindowsapp
|
||||||
# - https://github.com/emmanuelrosa/sumatrapdf-nix/blob/master/sumatrapdf.nix
|
# - https://github.com/emmanuelrosa/sumatrapdf-nix/blob/master/sumatrapdf.nix
|
||||||
|
|
||||||
infinite-fusion = callPackage ./games/infinite-fusion.nix {
|
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; let
|
||||||
|
callPackage = newScope (
|
||||||
|
{ wine = wineWowPackages.full; wineArch = "win64"; }
|
||||||
|
// self.lib.x86_64-linux
|
||||||
|
// erosanix.lib.x86_64-linux
|
||||||
|
);
|
||||||
|
in rec {
|
||||||
|
|
||||||
|
pokemon-infinite-fusion = callPackage ./games/infinite-fusion.nix {
|
||||||
legacy-version = false;
|
legacy-version = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
infinite-fusion-legacy = callPackage ./games/infinite-fusion.nix {
|
pokemon-infinite-fusion-legacy = callPackage ./games/infinite-fusion.nix {
|
||||||
legacy-version = true;
|
legacy-version = true;
|
||||||
wine = winePackages.full;
|
wine = winePackages.full;
|
||||||
wineArch = "win32";
|
wineArch = "win32";
|
||||||
};
|
};
|
||||||
|
|
||||||
project-untamed = callPackage ./games/project-untamed.nix { };
|
pokemon-project-untamed = callPackage ./games/project-untamed.nix { };
|
||||||
|
|
||||||
|
|
||||||
|
pokemon-uranium = callPackage ./games/uranium.nix { wine = winePackages.full; wineArch = "win32"; };
|
||||||
|
|
||||||
|
pokemon-clockwork = callPackage ./games/clockwork.nix { wine = winePackages.full; wineArch = "win32"; };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uranium = callPackage ./games/uranium.nix { wine = winePackages.full; wineArch = "win32"; };
|
|
||||||
|
|
||||||
clockwork = callPackage ./games/clockwork.nix { wine = winePackages.full; wineArch = "win32"; };
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
# a mkWindowsApp garbage-collect tool
|
||||||
|
|
||||||
# garbage-collect
|
|
||||||
apps.x86_64-linux.gc = {
|
apps.x86_64-linux.gc = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${erosanix.packages.x86_64-linux.mkwindowsapp-tools}/bin/mkwindows-tools-gc";
|
program = "${erosanix.packages.x86_64-linux.mkwindowsapp-tools}/bin/mkwindows-tools-gc";
|
||||||
};
|
};
|
||||||
|
|
||||||
lib.x86_64-linux = {
|
|
||||||
inherit (self.packages.x86_64-linux)
|
|
||||||
fetchFromDrive
|
|
||||||
fetchFromMega
|
|
||||||
fetchFromMediafire;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue