nix-fabric/flake.nix

32 lines
766 B
Nix
Raw 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
{
packages.fabric-servers = pkgs.callPackage ./fabric-servers.nix {};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(python3.withPackages scriptDeps)
];
};
});
}