mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
chore: add flake.nix
This commit is contained in:
40
flake.nix
Normal file
40
flake.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
description = "A command-line interface for browsing anime";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
# Generate packages for all supported systems
|
||||
packages = nixpkgs.lib.genAttrs nixpkgs.lib.systems.supportedSystems (system: let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in pkgs.python3Packages.buildPythonApplication {
|
||||
pname = "fastanime";
|
||||
version = "2.7.5";
|
||||
|
||||
# Path to your project source
|
||||
src = ./.;
|
||||
|
||||
# Specify runtime dependencies
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||
click, rich, inquirerpy, requests, thefuzz, plyer, fastapi,yt-dlp, mpv,dbus-python
|
||||
];
|
||||
|
||||
# CLI entry point (matches your pyproject.toml or setup.py configuration)
|
||||
# Example: Entry point defined as `console_scripts` in pyproject.toml
|
||||
entryPoints = {
|
||||
"console_scripts" = {
|
||||
fastanime = "fastanime:FastAnime";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A command-line interface for browsing anime";
|
||||
license = licenses.unlicense;
|
||||
maintainers = [ maintainers.Benex254 ];
|
||||
platforms = platforms.all; # Cross-platform compatibility
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user