nix-fabric/flake.nix

35 lines
854 B
Nix
Raw Permalink Normal View History

2024-10-15 23:14:48 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
{
overlays.default = final: prev: {
inherit (self.packages.${prev.system}) fabric-servers;
};
lib = import ./lib.nix;
} // flake-utils.lib.eachDefaultSystem(system:
let
pkgs = import nixpkgs {
inherit system;
};
scriptDeps = ps: with ps; [
requests
];
in
{
2024-10-18 16:18:45 +00:00
packages = {
minecraft-jars = pkgs.callPackage ./minecraft-jars.nix {};
fabric-servers = pkgs.callPackage ./fabric-servers.nix {};
};
2024-10-15 23:14:48 +00:00
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(python3.withPackages scriptDeps)
];
};
});
}